Internationalisation problem - showing "Object object" or "nulls" on buttons #3674
Comments
Author: TomH When was this? Only I thought I fixed that last week... |
Author: TomH I've just set my language to russian (this is a language triggered issue) and it is working fine so I think this must have happened during the brief period when we were using the broken en_US locale as the fallback in Potlatch 2. We're using the (working) en_GB locale now so I don't think this will be happening anymore. |
Author: Zverik Today this bug was reported by another user (see screenshot). Did that "brief period of using broken locale" happen again? I can ask the user to gather any info you need. |
Author: Nop I observe the same problem. I have set the locale to "de_DE" explicitly, but P2 remains in English and the [Object] shows. P2 and locales were freshly updated from randomdev and show g106bbd1. |
Author: Diomas I have the same problem. OSM site shows me GUI in Russian, but Potlatch 2 is in English and shows [object Object] instead of GPX traces. Potlatch version: 2.2-6-gaa899ca |
Author: Nop also see discussion in Ticket #3687 |
Author: openstreetmap[at]firefishy.com I've added cache expiry headers for osm.org potlatch2 instance as I suspect old locally cached locale files may be causing this bug. Now to see if it helps... |
Author: Andy Allan I'm going to make this more obvious in order to help people searching trac, so I've updated the summary. There is a problem with the internationalisation in p2, where it doesn't work for some people. Internally, p2 thinks the locale is loaded, when actually it's not. We don't know what causes this. We don't know how to fix it. We don't know how to recreate it. So far nobody has stepped forward to help pin down exactly what combination of browser / operating system / locale / browser locale / whatever leads it to happen. |
Author: miurahr I take this and make work it. |
Author: miurahr Need review; https://github.com/osmfj/potlatch2/commits/i18n working fine with Ubuntu linux natty 64bit FF6.0.2 and Midori; You can easily test at default configuration(en_GB): Japanese configuration: |
Author: miurahr Sorry wrongly assigned me. revert. |
Author: miurahr Core part of suggested fixes is as follows in osmfj/potlatch2@0ede5b8 for potlatch2.mxml:
To acitivate new locale, we need to load new locale and base locale 'en_US'. Other parts are patches to fix minor bug and for depending on babelFX version, build script, and message additions. |
Author: miurahr it is still reproduced on HEAD of systemed branch: v2.3 when adding args["locale"]="de_DE"; in resource/potlatch2.html see attachment. http://trac.openstreetmap.org/attachment/ticket/3674/potlatch2_systemed_HEAD_localize_fail.png compile on Ubuntu Linux 11.04 (64bit) with flex-sdk 4.5.0 |
Author: miurahr It works fine that merged proposal patch on top of v2.3, top of systemed tree. https://github.com/osmfj/potlatch2/tree/i18n-flex4 that includes #4010 feature. |
Author: TomH Andy is working on sorting out the BabelFX stuff - see his discussion with the developers here: http://support.babelfx.org/discussions/problems/35-error-compatibility-version-has-already-been-read |
Author: miurahr The issue that Tom pointing out seems to be an issue for develop or runtime environmental one. Replying to [comment:17 TomH]:
and it is not reproduced on my environment(ubuntu linux 11.04(amd64), firefox7.0.1,debug flash plugin Flash 10.2 r159 that is bundled with flex-sdk 4.5.1) on Andy's tree. I need to fix 2 issues in order to compile andy's tree successfully with flex 4.5.1. Following is a log by flash debugger(fdb) of flex-sdk 4.5.1 on andy-i18n branch.
|
Author: post[at]guttormflatabo.com This bug is still there, and pretty debilitating. Latest Firefox, Chrome and Opera on latest stable Ubuntu using Openstreetmap.org (Version: 2.3 Build: 2.3-136-g81ae8fd Locale: en_US). (It has also been reported in the forums and on mailing lists.) If I use the en_GB locale instead, there's no problem. It thus seems that the only short term change that is needed is to make the en_GB the default english locale, at least the default fallback locale. |
Author: Richard Fixed in systemed/potlatch2@c79b527 . |
Reporter: Zverik
[Submitted to the original trac issue database at 1.12pm, Sunday, 10th April 2011]
A user failed to enable GPS tracks display, because he didn't find the button. The reason? It is called [object Object].
Windows XP Pro SP3, Opera 10.10.1893, Flash 10.1.85.3
The text was updated successfully, but these errors were encountered: