Bug #66265 [Asn->Fbk]: gettext is not working anymore
From: ab@php.net Date: Wed, 11 Dec 2013 18:14:58 +0000 Subject: Bug #66265 [Asn->Fbk]: gettext is not working anymore References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-183238@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
Updated by: ab@php.net
Reported by: roeycohen at gmail dot com
Summary: gettext is not working anymore
-Status: Assigned
+Status: Feedback
Type: Bug
Package: Gettext related
Operating System: windows
PHP Version: 5.5.6
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Hi,
I can't confirm the behavior you describe, works fine here with 5.5.5 and 5.5.6
Please check and post the following
- you've restarted the webserver
- the .mo file is present and is correct
- the .mo file is under locale\en_US\LC_MESSAGES\domain.mo
There must be something else otherwise in your environment, if this doesn't help.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2013-12-11 16:42:18] roeycohen at gmail dot com
Description:
------------
as simple as that, a code that used to work perfect now doesn't.
switching back to version 5.4.8 solves the problem.
i've made sure that in the php.ini the gettext extension is on
and also tried turning off OPCache, but it didn't help.
as a matter of fact, i've compared both php.ini to make sure that most options are the same.
Test script:
---------------
$domain = 'domain';
putenv("LC_ALL=en_US");
setlocale(LC_ALL, 'en_US');
$path = realpath('./locale');
bindtextdomain($domain, $path);
bind_textdomain_codeset($domain, "UTF-8");
textdomain($domain);
echo _('hello');
Expected result:
----------------
the text hello will be replaced with the string within the mo file.
Actual result:
--------------
the original string is returned.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66265&edit=1
Thread (33 messages)
- Bug #66265 [Asn->Fbk]: gettext is not working anymore
- Bug #66265 [Fbk->Asn]: gettext is not working anymore
- Bug #66265 [Asn]: gettext is not working anymore
- Bug #66265 [Asn]: gettext is not working anymore
- Bug #66265 [Asn->Fbk]: gettext is not working anymore
- Bug #66265 [Fbk]: gettext is not working anymore
- Bug #66265 [Fbk->Asn]: gettext is not working anymore
- Bug #66265 [Asn->Fbk]: gettext is not working anymore
- Bug #66265 [Fbk->Asn]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Asn->Csd]: gettext is not working anymore
- Bug #66265 [Csd->ReO]: gettext is not working anymore
- Bug #66265 [ReO->Csd]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
- Bug #66265 [Com]: gettext is not working anymore
| « previous | php.bugs (#183238) | next » |
|---|