Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
String Drupal字符串重写和HTML_String_Drupal_Overriding - Fatal编程技术网

String Drupal字符串重写和HTML

String Drupal字符串重写和HTML,string,drupal,overriding,String,Drupal,Overriding,我试图覆盖由持久性_登录模块输出的错误错误消息,因此: $conf['locale_custom_strings_en'] = array( '<p><b>SECURITY ALERT!</b></p><p>You previously logged in to this site and checked the <em>Remember me</em> box. At that time, this s

我试图覆盖由持久性_登录模块输出的错误错误消息,因此:

$conf['locale_custom_strings_en'] = array(
   '<p><b>SECURITY ALERT!</b></p><p>You previously logged in to this site and checked the <em>Remember me</em> box.  At that time, this site stored a "login cookie" on your web browser that it uses to identify you each time you return....'
);
$conf['locale\u custom\u strings\u en']=array(
“安全警报!

您以前登录过此网站并选中了“记住我”框。当时,此网站在您的web浏览器上存储了一个“登录cookie”,用于在每次返回时识别您…” );
我知道重写正在工作,因为我可以针对其他字符串,但这一个拒绝被重写。不知道为什么-与HTML有关?持久登录模块正在通过
t()
传递此字符串,因此应该可以覆盖它


有什么想法吗?

我认为您无法覆盖错误消息。但是,如果这是一个生产站点,最好只禁用错误消息。作为开发人员,您可以查看看门狗的错误。

我认为您无法覆盖错误消息。但是,如果这是一个生产站点,最好只禁用错误消息。作为开发人员,您可以从watchdog查看错误。

谢谢-这不是标准的错误消息,它称为drupal\u set\u消息。最后,我只是覆盖了hook\u status\u消息。不过谢谢。谢谢-这不是标准的错误消息,它调用drupal\u set\u消息。最后,我只是覆盖了hook\u status\u消息。谢谢你。