PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Feb 24, 2020 9:31 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Locale PHP bugs
PostPosted: Tue Dec 27, 2011 9:18 am 
Offline
Forum Newbie

Joined: Sat Jan 16, 2010 3:16 pm
Posts: 4
Does anyone know of some list of all locale bugs? Or some tutorial how to use locales safely? Or maybe you know of some PHP version where locale actually works?

I'm trying to use gettext, which require locales but encountered like 4 PHP bugs so far...


The typical tutorial says something like that:

putenv("LC_ALL=$language");
setlocale(LC_ALL, $language);
bindtextdomain("messages", "./locale");
textdomain("messages");

But usage of LC_ALL is a suicide, if you try to use it with Turkish language all fuctions with "I" in the function name will become "non existant", like half languages will break all floats calculations (',' and '.' difference). GD library stops working with some locales, etc, etc.

Do you know by any chance of a minimal setting of locales, just enough to make gettext work?


Top
 Profile  
 
 Post subject: Re: Locale PHP bugs
PostPosted: Tue Dec 27, 2011 5:53 pm 
Offline
DevNet Resident

Joined: Sun Jun 14, 2009 3:13 pm
Posts: 1146
Isn't this machine dependent and it depends on what locales are installed? You probably have to install the locales-all package...but this is just my guess I don't work with PHP locales.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group