[geeklog-devel] Fwd: locales

Heather Engineering info at heatherengineering.com
Tue Aug 7 11:51:14 EDT 2007


On 2007/08/07, at 23:26, Joe Mucchiello wrote:

> At 03:31 AM 8/7/2007, Oliver wrote:
>> Euan, I generally agree with you but I made the experience that  
>> locales are different in every operating system and there is no  
>> clear standard that is followed. Correct me if I am wrong there.
>
> No, you are right. The help page for setlocale is full of  
> exceptions for Windows and AIX. PEAR has two class trees for  
> Internationalization I18N and I18Nv2. Both are beta. But they do  
> encapsulate the differences between Unix and Windows. Someone  
> serious about adding locales to Geeklog should look into those  
> packages.

Actually, I just realised after looking at Dirk's implementation of  
the language switcher, that I can set the key of the multilanguage  
file array to whatever I like - so I can use any key (eg en_GB,  
ja_JP) that I like. Which means I can set these to my preferred  
locale strings and work from them.

That'll do me for now, as no time to look into anything else for the  
moment. Will look at PEAR though later - thanks Joe.

Cheers,

Euan.



More information about the geeklog-devel mailing list