I18N not working in P2 (custom instance) #3687
Comments
Author: Andy Allan I see "GPS-Daten" "Meine Tracks" and "Clear" on your instance, as I would expect. Also only some parts of the interface have been i18n-ised, so I would expect much of it to be in English. Let's use this ticket to figure out why you are seeing [Object object] and I am not. Do you see the same thing on a different browser / machine? Is it a caching issue (try flushing your flash cache)? |
Author: Andy Allan Thinking about it, I think this might be the "default locale" issue, since it's likely that Nop's flash player will have de_DE as its default in the same way that mine has en_US. There's a bug in the i18n library where it thinks it has loaded the bundle for the default_locale and never actually requests it. This would manifest itself as button labels falling back to english and the GPS menu screwing up. |
Author: Nop If forgot to mention: Yes, I cleared the browser cache and the flash cache, no difference. To test the theory above, I set the locale to "fr_FR", but it does not change anything, remains english/[object]. So I assume it is not a confusion with the default locale. |
Author: Nop Replying to [comment:1 Andy Allan]:
Any ideas about possible reasons why I only see the english version? I even tried IE with the same result. However, I noted that for a split second, GPS-Data is shown, but then it is overwritten by [object]. |
Author: Nop I had a friend check the P2 instance independently on another machine. It appears english/broken there too. I have no idea why Andy saw a German translation. |
Author: Andy Allan Duplicate of #3674 |
Reporter: Nop
[Submitted to the original trac issue database at 2.47pm, Thursday, 14th April 2011]
P2 does not switch to assigned locale, but shows english/broken text.
I copied the locale/ subdir into the P2 folder and set fo.addVariable("locale", "de_DE") using osm.org as a template.
P2 remains partially in English, partially broken: The GPS data menu is filled with [Object object]. Tried it with the version from random.dev... and osm.org. g07a59e4. Browser is FF, link to P2 instance is http://www.wanderreitkarte.de/edit/edit.php?lon=11.3933&lat=49.6757&zoom=18
The text was updated successfully, but these errors were encountered: