Skip to content
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

List local multilingual name languages first #6712

Closed
jidanni opened this issue Aug 1, 2019 · 9 comments
Closed

List local multilingual name languages first #6712

jidanni opened this issue Aug 1, 2019 · 9 comments
Assignees
Labels
field An issue with a field in the user interface
Milestone

Comments

@jidanni
Copy link
Contributor

jidanni commented Aug 1, 2019

Usually places are likely to have only one or two multilingual name language possibilities.
Therefore perhaps put e.g.,

French
English
--------
Abbziphian
Amaranthailian
Aproprolalian
...

based on where we are first. Lest the user be forced to dig way down each time.

X6

(In fact maybe always list English at the end of the priority list, when not in English speaking countries anyway.)

@quincylvania quincylvania added the field An issue with a field in the user interface label Aug 2, 2019
@DujaOSM
Copy link

DujaOSM commented Aug 2, 2019

+1. The standard in Serbia is to fill Serbian Cyrillic, Serbian Latin and English names, and populating those via the standard UI is so time-consuming that I keep a raw-text-tag list template on side, ready for copying. English appears in the list only after you type "en", and there are "helpful" Ænglisc and eʋegbe to choose from. This could really use some improvement, being a very frequently used feature. Perhaps pull the list of languages somewhere from user preferences (like Wikidata does for descriptions, except that I can't figure out where it's configured)?

I didn't check in v3 preview, can selection of name tags be part of user-defined presets, or is that something orthogonal_

@1ec5
Copy link
Collaborator

1ec5 commented Aug 3, 2019

like Wikidata does for descriptions, except that I can't figure out where it's configured

MediaWiki’s ULS extension is what enables Wikidata to display descriptions in the relevant languages and enables Wikipedia to list interwiki links in the relevant languages. (There are also user preferences to override the default.)

ULS ultimately gets its language data from CLDR. #6702 introduced a subset of CLDR for the translated language names. A similar mechanism could pull in the language-territory table. If there are any gaps in coverage, we could supplement the table with a cached index of default_language tags on administrative boundaries, using either Overpass or Sophox.

@jidanni
Copy link
Contributor Author

jidanni commented Aug 4, 2019 via email

@quincylvania
Copy link
Collaborator

@1ec5 Thanks for the tip on CLDR! I found the matching info in the cldr-core module that iD now uses. It'd be easy to read this.

Or simply remember the last few recent languages the user has picked,
and put them up front in the choices...

@jidanni Sure this could supplement. We could also prioritize languages tagged on nearby features, similar to how iD recommends address field values.

@DujaOSM
Copy link

DujaOSM commented Aug 5, 2019

While I'm at it, by a local convention Serbian Latin names have been tagged with sr-Latn rather than sr_Latn as it's spelled in CLDR. There's currently 74000 objects marked with one, and there's even a JOSM extension which supports its population. It might easily be the only lang-sublang identifier in widespread use (although I might easily be wrong), so please consider accommodating it.

@quincylvania
Copy link
Collaborator

While I'm at it, by a local convention Serbian Latin names have been tagged with sr-Latn rather than sr_Latn as it's spelled in CLDR.

Our integration with CLDR accounts for this 👍

@quincylvania quincylvania self-assigned this Aug 8, 2019
@quincylvania quincylvania added this to the 2.15.5 milestone Aug 8, 2019
@quincylvania
Copy link
Collaborator

I did this using the CLDR list. I also made it so iD's locale language (presumably the user's language) is first in the list.

Editing in the US (en-US locale):

Screen Shot 2019-08-08 at 4 22 21 PM

Editing in India (en-US locale):

Screen Shot 2019-08-08 at 4 23 02 PM

Supplementing with nearby name tag languages or recently used languages can be further work.

@DujaOSM
Copy link

DujaOSM commented Aug 14, 2019

Thanks for the quick implementation, @quincylvania. It worked great for sr-Latn; alas, for Serbian (Cyrillic) iD v3 generated name:sr-Cyrl rather than bare name:sr here. I understand that the current convention is somewhat asymmetric, but it is what it is and we have to accommodate it.

quincylvania added a commit that referenced this issue Aug 23, 2019
@quincylvania
Copy link
Collaborator

It worked great for sr-Latn; alas, for Serbian (Cyrillic) iD v3 generated name:sr-Cyrl rather than bare name:sr

@DujaOSM Thanks for the heads up. I made it account for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
field An issue with a field in the user interface
Projects
None yet
Development

No branches or pull requests

4 participants