bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext problem - translation fails


From: Petr Vandrovec
Subject: Re: gettext problem - translation fails
Date: Mon, 31 Mar 2003 18:35:45 +0100

On 31 Mar 03 at 12:16, Eneko Lacunza wrote:
> El lun, 31 de 03 de 2003 a las 12:57, Petr Vandrovec escribiˇ:
> > On 31 Mar 03 at 11:44, Eneko Lacunza wrote:
> > >     I'm having some problems with gettext and apache+php. The problem
> > > starts when I update .mo files some PHP programs are using. Sometimes
> > > (not everytime) gettext starts failing to traslate strings. When this
> > > starts, gettext will translate about 1/4 of pages generated from PHP.
> > You are installing .mo files wrong way. Please use 'install' program
> > to install them, and restart apache afterwards. Do not install .mo
> > files with 'cp' or 'cat'... .mo files should be treated same way as
> > shared libraries.
>
>     Does this mean that the problem I'm suffering is "normal"? This would
> make gettext almost unusable for real purposes in such environments 8(
>
>     Would it help if I first remove old .mo files?

Yes, it will fix partial translations or core dumps. But apache will
start using new files only after you restart it :-(

Unfortunately according to my checks there is no way to invalidate
this caching, glibc will always use already existing item from cache
for same pair of values you pass to bindtextdomain(). So you have to either
change domain name or locale path in your php code after each update
of .mo files, or you have to restart apache.
                                            Petr Vandrovec






reply via email to

[Prev in Thread] Current Thread [Next in Thread]