Closed (fixed)
Project:
String Overrides
Version:
5.x-1.5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2008 at 12:41 UTC
Updated:
20 May 2008 at 20:12 UTC
After I installed the latest released version of the 5 branch my overrides all stopped working. I backed it out and they are all fine again. I think it is because the locale is getting set to 'en' in the newer version, which conflicts with this test in the t() function:
if (function_exists('locale') && $locale != 'en') {
$string = locale($string);
}
In other words, the locale function of string overrides never gets called if the locale is en.
Comments
Comment #1
alfaguru commentedI see that the locale is set to 'xx' rather than 'en' in the latest version of the module in the repository. I'll patch my copy accordingly but the latest release needs to be fixed, too.
Comment #2
robloachDoes changing it back to 'xx' fix the problem? I've been waiting for confirmation on this until a new release is made. I haven't been able to replicate the problem in either case....
Comment #3
bcn commentedI also replied in the other thread (http://drupal.org/node/248284#comment-833761), but yes, changing 'en' back to 'xx' does fix the problem for me.
Comment #4
robloach5.x-1.6 released. We'll have to find another solution to the lang fix.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.