Using Locale

26 views
Skip to first unread message

diego

unread,
May 5, 2012, 7:45:42 AM5/5/12
to openscales-dev
Hi all.

I'm trying to set the language to spanish using the Locale class. This
is what I'm doing after creationComplete:

this.theMap.map.locale = Locale.getLocaleByKey ('es').localeKey;

After this, the map is still in english. I'm assuming that OpenScales
has the spanish texts in place. Is that so? Is there anything else I
should do to make this work?

TIA

Diego Marrero

Simon Lopez

unread,
May 28, 2012, 10:09:53 PM5/28/12
to opensca...@googlegroups.com, diego
Hi,
Openscales does not provide spanish translation yet.

If you want spanish translation just do this:
translate this in spanish: https://bitbucket.org/gis/openscales/raw/102923aab85b/openscales-core/src/main/flex/assets/i18n/EN.json
(if you're a nice man, you can contribute this translation :) )
then in your application do this:

[Embed(source="/assets/SP.json", mimeType="application/octet-stream")]
private const SPLocale:Cl

ass;

then :
I18nJSONProvider.addTranslation(SPLocale);
this.theMap.map.locale = "es";

this should work.

Regards,
Simon L.

Simon Lopez

unread,
May 28, 2012, 9:54:47 PM5/28/12
to opensca...@googlegroups.com, diego
Hi,
Openscales does not provide spanish translation yet.

If you want spanish translation just do this:
translate this in spanish: https://bitbucket.org/gis/openscales/raw/102923aab85b/openscales-core/src/main/flex/assets/i18n/EN.json
(if you're a nice man, you can contribute this translation :) )
then in your application do this:

[Embed(source="/assets/SP.json", mimeType="application/octet-stream")]
private const SPLocale:Cl
ass;

then :
I18nJSONProvider.addTranslation(SPLocale);
this.theMap.map.locale = "es";

this should work.

Regards,
Simon L.

Le 05/05/2012 13:45, diego a écrit :
Reply all
Reply to author
Forward
0 new messages