[rt-users] Localization Help Needed

Jesse Vincent jesse at bestpractical.com
Wed Nov 10 23:00:43 EST 2004


On Nov 11, 2004, at 1:30 AM, Stephen Turner wrote:

>
> I'm puzzling over why some of my localizations aren't working. My 
> local en.po has code to replace the word "Organization" with 
> "Department". My tests using a perl script show that these two 
> statements give different results:
>
> $CurrentUser->loc( "Organization" );    # returns "Department"
> $CurrentUser->loc( "[_1]", "Organization" );    # returns 
> "Organization"
>

[_#] are for variable interpolations.


> $CurrentUser->loc( "[_1]", $CurrentUser->loc( "Organization") );    # 
> returns "Organization"

would do what you mean

> As far as I can tell, these statements should both return 
> "Department". Can anyone give me a hint why the second one doesn't do 
> what I expect?
>
> Thanks,
> Steve
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT wiki at http://wiki.bestpractical.com
>




More information about the rt-users mailing list