[ic] Why am I always getting the default translation?

Stefan Hornburg racke at linuxia.de
Thu Aug 14 13:20:51 EDT 2003


On 14 Aug 2003 10:40:55 +0100
Marc Brevoort <marc.brevoort at armazemdedados.com> wrote:

> On Wed, 2003-08-13 at 21:13, John Matecsa wrote:
> > > In a page I have a line saying
> > > [LC][getlocale][en_US]About Us[/en_US][pt_PT]Quem somos[/pt_PT][/LC]
> 
> Most likely the problem was caused by LC working before the page is
> parsed rather than during the parse. Adding persist=1 to the setlocale
> ended up showing the correct translation, however only after reloading
> the page. 

Yes, [LC] and [L] are parsed first before any other tags, so setlocale
doesn't influence the results on the current page (you can call
setlocale from Autoload if you like though).

> 
> John Mateca writes
> 
> > To get things in the templates directory to translate I had to 
> > resort to this.
> > [if scratch mv_locale eq "fr_FR"]
> > Favoris Globaux
> > [else]
> > Global Favourites
> > [/else]
> > [/if]
> 
> Racke suggested to this
> 
> > Try instead Locale fr_FR readfile 1 in your catalog.cfg and use the
> > standard [L] etc. tags.
> 
> I tried, this, but things still didn't seem to work out. 

You might post your locale configuration ...
You're using 4.8 or 4.9 ?

Ciao
	Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



More information about the interchange-users mailing list