[ic] Default language

Elver Loho elver.loho at gmail.com
Wed Mar 8 11:14:08 EST 2006


catalog.cfg has the following:

# Last locale specified is the default.
Locale          en_US LC_CTYPE C
Locale en_US currency_symbol
LocaleDatabase  locale
DefaultLocale en_US
ScratchDefault mv_locale en_US

Situation: The language variable is set to 'rus'. On the page there
exists [L code]blah[/L] In the database for the entry 'code' we have
en_US='foobar' but no 'rus'.

What we want: It should fall back to the en_US field for 'code' and
therefore display 'foobar'.

What it does: Is fall back to the string between the L tags and it
displays 'blah'.

I hope that was more clear.


On 3/8/06, Gert van der Spoel <ic at 3edge.com> wrote:
> Elver Loho writes:
> > In our i18n/locale database we have several languages. Let's call them
> > en_US ('default', came with the install), eng, est, rus.
> >
> > We're using L tags. [L code]something[/L]
> >
> > Suppose the current language is 'rus'. And suppose the 'rus' field is
> > missing from the database.
> >
> > How can we tell it to use the 'en_US' field instead and not the part
> > between the L tags? ('something')
> >
> >
> > Elver
> Adding :
> DefaultLocale en_US
> to the catalog.cfg would do it... The default install I think has this as
> default anyway ...
> Or am I missing what you mean to say?
> CU,
> Gert
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users

More information about the interchange-users mailing list