可能重复:
drupal中的@(at符号)
我知道有时它与错误抑制有关,但我正在看Drupal代码,我无法识别语法:
例1:
$batch = array(
'operations' => $operations,
'finished' => '_install_profile_batch_finished',
'title' => st('Installing @drupal', array('@drupal' => drupal_install_profile_name())),
'error_message' => st('The installation has encountered an error.'),
);
Run Code Online (Sandbox Code Playgroud)
例2:
drupal_set_title(st('@drupal installation complete', array('@drupal' => drupal_install_profile_name())));
Run Code Online (Sandbox Code Playgroud)
例3:
$output .= '<p>'. (isset($messages['error']) ? st('Please review the messages above before continuing on to <a href="@url">your new site</a>.', array('@url' => url(''))) : st('You may now visit <a href="@url">your new site</a>.', array('@url' => url('')))) .'</p>';
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
244 次 |
| 最近记录: |