[imp] Translation cache?

Fabio Gomes flgomes at fazenda.sp.gov.br
Fri Oct 29 07:40:25 PDT 2004


Em Qui 28 Out 2004 17:15, Jan Schneider escreveu:
> Zitat von Fabio Gomes <flgomes at fazenda.sp.gov.br>:
> > Hi list,
> >
> > 	I'm getting a strange behavior of my Horde installation after update.
> > Any translation made in the .po files doesn't reflect in the system. I'm
> > using a Solaris 8 box and I compiled the .po with:
> >
> > 	msgfmt -v -o ../locale/pt_BR/LC_MESSAGES/horde.mo pt_BR.po
> >
> > 	The weird thing is that the same command still working with may horde
> > 2.0 installation. It seems the gettext is caching the translation, or
> > something about that.
>
> Exactly, this how gettext works.
>
> > 	I created a langtest.php (language test) as suggested in
> > docs/TRANSLATION. That worked fine and the updates was displayed.
> > Invoking gettext in the command line also works:
> >
> > 	# export TEXTDOMAINDIR=/usr/local/apache/htdocs/horde-2.2.7/locale
> > 	# gettext horde "Mail"
> > 	Webmail
> >
> > 	The above shows my update. I changed "Mail" translation from "Correio"
> > to "Webmail". The Apache (webserver) was restarted to see if anything
> > changes. Nothing changed.
>
> That should have worked. Other than that I don't know what to tell you.
>
> Jan.
>

Do you want to know a funny thing? Renaming horde/locale to a random name 
doesn't affect the translations. The pages still being translated. 
Is there any way to track horde and see what file it is using as source for 
its translations?


Regards,
-- 
Fábio Gomes


More information about the imp mailing list