New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature labels are based on generic name:zh tag when using Traditional or Simplified Chinese locale #10219
Comments
The labeling code prefers whatever the localizer module considers to be the current language code, which is for the localization that iD’s UI is being displayed in: Lines 183 to 184 in 25d98b1
The code to choose a UI localization is a bit convoluted: Lines 111 to 131 in 25d98b1
But one thing we seem to have overlooked is that modern browsers generally report locale codes such as Compounding the matter, the labeling code above only chooses the We could add some special cases to both these areas of the codebase, though more robust language code matching would help not only Chinese but also other languages that frequently use more complex locale codes in the database, such as Serbian and Portuguese. /ref #8739 |
Description
Currently, neither
name:zh-Hant
norname:zh-Hans
are supported to be displayed on the map, but only the ambiguousname:zh
, which is either traditional or simplified, is displayed.Screenshots
No response
The text was updated successfully, but these errors were encountered: