php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10058 Gettext doesn't react when I change the language
Submitted: 2001-03-29 10:43 UTC Modified: 2002-01-28 10:39 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: bogdan at itconsulting dot ro Assigned:
Status: No Feedback Package: Gettext related
PHP Version: 4.0.4pl1 OS: Windows 2000
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2001-03-29 10:43 UTC] bogdan at itconsulting dot ro
I set the language with this:

putenv ("LC_ALL=ro");

and the translation is ok.
if I change it to:

putenv ("LC_ALL=de");

and reload the page nothing happens.
But if I restart the Apache, and reload again the page evething is ok.
Oh, and is not a cache problem, because I'm sending expiry, and no chache headers.

with putenv ("LANG=ro"); I get the same result.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-29 10:45 UTC] bogdan at itconsulting dot ro
I set the language with this:

putenv ("LC_ALL=ro");

and the translation is ok.
if I change it to:

putenv ("LC_ALL=de");

and reload the page nothing happens.
But if I restart the Apache, and reload again the page evething is ok.
Oh, and is not a cache problem, because I'm sending expiry, and no cache headers.

with putenv ("LANG=ro"); I get the same result.

 [2001-03-29 10:58 UTC] bogdan at itconsulting dot ro
Nope.
If I use only setlocale("LC_ALL","ro") - I tried other thing too like "LC_MESSAGES" or "ro_RO", changed the names of diretories - it doesn't work anymore, and if I use it together with putenv I go back to the old problem.
 [2002-01-07 10:38 UTC] lobbin@php.net
Are you sure this is nothing but a pagecache problem?
 [2002-01-28 10:39 UTC] sander@php.net
No feedback.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Dec 17 02:01:26 2018 UTC