Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

I18N not working in P2 (custom instance) #3687

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 6 comments
Closed

I18N not working in P2 (custom instance) #3687

openstreetmap-trac opened this issue Jul 23, 2021 · 6 comments

Comments

@openstreetmap-trac
Copy link

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

@openstreetmap-trac
Copy link
Author

Author: Andy Allan
[Added to the original trac issue at 1.20pm, Friday, 15th April 2011]

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)?

@openstreetmap-trac
Copy link
Author

Author: Andy Allan
[Added to the original trac issue at 1.46pm, Friday, 15th April 2011]

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.

@openstreetmap-trac
Copy link
Author

Author: Nop
[Added to the original trac issue at 3.57pm, Friday, 15th April 2011]

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.

@openstreetmap-trac
Copy link
Author

Author: Nop
[Added to the original trac issue at 7.14pm, Friday, 15th April 2011]

Replying to [comment:1 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)?

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].

@openstreetmap-trac
Copy link
Author

Author: Nop
[Added to the original trac issue at 6.48pm, Saturday, 16th April 2011]

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.

@openstreetmap-trac
Copy link
Author

Author: Andy Allan
[Added to the original trac issue at 4.46pm, Wednesday, 6th July 2011]

Duplicate of #3674

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant