Edit report at http://bugs.php.net/bug.php?id=49349&edit=1
ID: 49349 Comment by: jasonsmith at yahoo dot com Reported by: raulsalitrero at gmail dot com Summary: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors) Status: Assigned Type: Bug Package: Gettext related Operating System: win32 only - windows xp sp3 PHP Version: 5.3.0 Assigned To: pajoye New Comment: Is there a release date for 5.3.3? Previous Comments: ------------------------------------------------------------------------ [2010-05-12 06:46:16] xxxxviii at iinet dot net dot au Windows Server 2008 R2 x64 with IIS 7.5 PHP 5.3.0, 5.3.2 Locale is English (Australian). Trying to get English (United States) to work. have ./locale/en_AU/LC_MESSAGES/messages.mo ./locale/en_US/LC_MESSAGES/messages.mo Always get the default (Australian) You stated: "The work around is explained in this report." So, but this escapes me. Where is the workaround? I have read this thread several times. Question: why does _SERVER["HTTP_ACCEPT_LANGUAGE"] have en-AU and not en_AU??? Or is this just a silly Winblows thing. ------------------------------------------------------------------------ [2010-05-06 09:20:47] paj...@php.net The work around is explained in this report. And yes, there will be a 5.3.3 which will have the fix in the library used by gettext. ------------------------------------------------------------------------ [2010-05-06 06:00:32] scott at etw dot ca Is there a release date for 5.3.3? Spent the last few months building a project in 5.3 and my final steps was to add language support which i cant do with gettext due to this bug, and to revert to 5.2x would require other major code changes.... ------------------------------------------------------------------------ [2010-05-05 12:12:39] sjake_it at hotmail dot com Same problem here with Windows Server 2003 SP2. This bug prevents me from upgrading to php 5.3.x It's been 8 months now so I hope this bug will be fixed quickly now. ------------------------------------------------------------------------ [2010-04-19 02:00:08] egorinsk at gmail dot com Hi, the same problem here with Windows XP SP2 and PHP 5.3.1 . In PHP 5.2, setlocale() call failed, but gettext() used information from LANG, LC_ALL and LANGUAGE variables. That was good, because I could use putenv() to change gettext() language on Windows and setlocale() on Linux. But now setlocale() on Windows fails, and gettext() always uses system locale, and messages are not translated. Actually, I don't need locales, they only bring problems, I'd prefer to always set it to POSIX locale to get consistent behaviour independent from server setup, but gettext() requires to use it :( ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=49349 -- Edit this bug report at http://bugs.php.net/bug.php?id=49349&edit=1