You should always include the <major> territorial code when you use a
<major>_<Minor> variant of it. So include 'en' with 'en_*', 'es' with
'es_*' and 'fr' with any 'fr_*' you are using.

The reason is the standard fall-back lookup chain that is used when you
request the translation of a string. The fall-back chain is always
<major>_<Minor> => <major> => C. So if you set the current locale to
"en_US" and then request a translation lookup for some key, the key is
first looked up in the "en_US" .po mappings. If the key is not available
or has no translation, lookup is tried in the "en" database, and if not
found there in the C locale. You should maintain your .po files in this
sense.

HTH,
T.

> I am trying to specify the language and locale that my application is to
> support using "json.config":
>
>  "let" :
>   {
>             "LOCALES"      : [ "en_AU", "en_CA", "en_GB", "en_US",
> "es_US",
> "fr_CA" ],
>    }
>
> However, after running "generate.py translation" to obtain the .po files,
> translating them and running "generate.py source"  I get the following
> messages:
>
>       - Warning: Base locale en not specified, trying to add it.
>       - Warning: Base locale es not specified, trying to add it.
>       - Warning: Base locale fr not specified, trying to add it.
>
> And when running it now shows the additional locales that I didn't specify
> in the config file.  Does anyone have an explanation of what is going on?
>
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Localization-Help-tp7583926.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to