Bug #66265 [Com]: gettext is not working anymore
| From: | sirio3mil at gmail dot com | Date: | Wed, 29 Apr 2015 22:29:19 +0000 |
| Subject: | Bug #66265 [Com]: gettext is not working anymore | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192416@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66265&edit=1
ID: 66265
Comment by: sirio3mil at gmail dot com
Reported by: roeycohen at gmail dot com
Summary: gettext is not working anymore
Status: Closed
Type: Bug
Package: Gettext related
Operating System: windows
PHP Version: 5.5.7
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Hi, I have same problem with PHP 5.6.6 and 5.6.7 both TS x64 running on Apache over Windows Server
2008 R2 and Windows 10 TP.
I get only the translations to the default system lamguage (Control Panel) Temporary I change
location from all my .mo files to this folders and change domain to get correct translations.
Previous Comments:
------------------------------------------------------------------------
[2015-03-06 11:51:16] alvaro at demogracia dot com
Is there a new ticket for TS builds?
------------------------------------------------------------------------
[2014-11-26 16:21:28] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=56fac96bec882ac59a7fc298c98407bf4a17629d
Log: partially fixed bug #66265
------------------------------------------------------------------------
[2014-11-21 13:17:07] ab@php.net
I want to gratefully thank everyone who reported here and kindly ask to test this or later NTS
snapshot http://windows.php.net/downloads/snaps/php-5.5/rf2e33dc/
.
Yes, TS builds are still not fixed and there is no certainty they can be fixed, that's why i
reopen this. Even I'd rather mark this ticket as solved and move the remaining issue to another
one. As locale is not thread safe (for instance see bug #65769). Fortunately gettext isn't
really based on the locale functionality but on the exported vars, like LANGUAGE, LANG, LC_ALL or
LC_CTYPE. It might be also that the libintl will have to be patched once more to support TS builds.
It also seems that something has changed from VC9 to VC11 so then it affects the behaviour of the
libintl.
One note though about the snippets brought here so far, the following won't work on windows
setlocale(LC_ALL, 'de_DE');
de_DE isn't a valid locale on Windows, so the former should look like
setlocale(LC_ALL, 'de_DE', 'de-de');
and actually it could contain any number of locale names. While setlocale on windows wont directly
affect the gettext behaviour, merely it's an environment varibale as mentioned before.
Thanks.
------------------------------------------------------------------------
[2014-11-21 09:25:36] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=56fac96bec882ac59a7fc298c98407bf4a17629d
Log: partially fixed bug #66265
------------------------------------------------------------------------
[2014-11-18 19:08:05] goozak at gmail dot com
Bug still present in PHP 5.5.19.
(Wondering if assigned user ab is still working on this, he hasn't commented since 2013.)
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=66265
--
Edit this bug report at https://bugs.php.net/bug.php?id=66265&edit=1