[Potlatch-dev] [OpenStreetMap] #3674: Internationalisation problem - showing "Object object" or "nulls" on buttons
OpenStreetMap
trac at openstreetmap.org
Fri Sep 16 22:54:23 BST 2011
#3674: Internationalisation problem - showing "Object object" or "nulls" on
buttons
------------------------+---------------------------------------------------
Reporter: Zverik | Owner: potlatch-dev@…
Type: defect | Status: assigned
Priority: major | Milestone:
Component: potlatch2 | Version:
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment(by miurahr):
Core part of suggested fixes is as follows in
https://github.com/osmfj/potlatch2/commit/0ede5b82918f63d14263f65b4de45f61ff715b71
for potlatch2.mxml:
{{{
+ if (loaderInfo.parameters['locale']) {
+ var uselocale:String = loaderInfo.parameters['locale'];
+ dispatchEvent(new
LocaleEvent(LocaleEvent.LOAD_LOCALE,uselocale));
+ dispatchEvent(new LocaleEvent(LocaleEvent.LOAD_LOCALE,
'en_US'));
+ resourceManager.localeChain = [uselocale,'en_US'];
+ }
}}}
To acitivate new locale, we need to load new locale and base locale
'en_US'.
And then changing localeChain, internal event is happened and message
injection is executed.
Other parts are patches to fix minor bug and for depending on babelFX
version, build script, and message additions.
--
Ticket URL: <https://trac.openstreetmap.org/ticket/3674#comment:14>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the Potlatch-dev
mailing list