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

Re: [ic] Default language


Hiya!

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.


Elver

On 3/8/06, Gert van der Spoel <suppressed> 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
> suppressed
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.