我只想 运行 一行没有 t() 的代码

I want just to run a line of code without t()

没有这个 t() 我如何 运行 这行代码 ??

$severity_options[$severity] = t('@description', array('@description' => drupal_ucfirst($severity),

您只需要删除t功能并添加check_plain

@description 变量替换为 drupal_ucfirst($severity),因此您只能对特殊字符进行编码。

$severity_options[$severity] =  check_plain(drupal_ucfirst($severity))