[pmwiki-users] A Problem with i18n: $XLLangs vs. $TimeFmt

Patrick R. Michaud pmichaud at pobox.com
Wed Dec 6 10:39:42 CST 2006


On Wed, Dec 06, 2006 at 01:05:33PM +0800, Shujun LI wrote:
> Hi all,
> 
> (This message was sent yesterday, but didn't get any attention.)
> 
> I installed a Chinese version of PmWiki and want one WikiGroup to use English interface again.
> Then, I use the following command in this WikiGroup's local configure file:
> 
> $XLLangs = array('en');
> $TimeFmt = '%B %d, %Y, at %I:%M %p';
> 
> Though the first command successfully change all Chinese settings back into English ones, the second command still outputs Chinese characters for %B and %p.
> Does anyone know how to fix this problem?

In the wikigroup's customization file, also add:

    setlocale(LC_ALL, 'en_US');

This will "undo" the XLPage settings for that group.

Pm




More information about the pmwiki-users mailing list