Re: [PHP-DEV] PHP 4.0 Bug #10058 Updated: Gettext doesn't react when I change the language From: Alexander Bokovoy (ab <email protected>)
Date: 03/29/01

On Thu, Mar 29, 2001 at 03:45:39PM -0000, bogdan <email protected> wrote:
> ID: 10058
> User Update by: bogdan <email protected>
> Status: Open
> Bug Type: Gettext related
> Description: Gettext doesn't react when I change the language
>
> 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.
Use setlocale() instead.

-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project    | ALT  Linux  Team | Minsk Linux Users Group
 www.midgard-project.org | www.altlinux.ru  |    www.minsk-lug.net 
-- Elevators smell different to midgets.

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>