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

Christian Bartolomaeus bartolin at gmx.de
Wed Dec 6 02:29:31 CST 2006


Hi Shujun,

* On 2006-12-06 Shujun LI (ensjli at polyu.edu.hk) wrote:
> [...]
> 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?

maybe it helps to add a line like

  setlocale(LC_TIME, 'en_US');

or even

  setlocale(LC_ALL, 'en_US');

to the end of your WikiGroup.php file?

Best regards

Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20061206/7f957195/attachment.bin 


More information about the pmwiki-users mailing list