Opened 11 minutes ago
#25151 new enhancement
Support Montenegrin language tags (cnr, cnr-Latn, cnr-Cyrl)
| Reported by: | Alex T. | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
Hello JOSM developers,
I would like to propose improving the recognition and display of Montenegrin language tags.
Background
The language code cnr is officially assigned to Montenegrin.
The Library of Congress published a technical notice on December 21, 2017, confirming the approval of cnr as the language code for Montenegrin.
Reference:
https://www.loc.gov/marc/tn171221.html
Current behavior
JOSM's I18n.getLocalizedLanguageName() uses Java's Locale.getDisplayLanguage() to obtain language names.
However, Java does not currently return a localized language name for cnr. Instead, it returns the language code itself.
Additionally, the script identifier Cyrl is not currently included in JOSM's recognized script list.
Proposed behavior
| OSM key | Expected display name |
|---|---|
name:cnr | Montenegrin |
name:cnr-Latn | Montenegrin (Latin) |
name:cnr-Cyrl | Montenegrin (Cyrillic) |
Questions
- Would JOSM accept an explicit language-name mapping for
cnrtoMontenegrin? - Would adding
Cyrlto the recognized script identifiers be appropriate? - Is there a preferred implementation approach for language codes that Java's locale database does not recognize?
The intention is only to improve the recognition and display of existing OSM language tags, without changing any OSM data or tag semantics.
Thank you.


