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

Multilinguality #68

Open
pnorman opened this issue Nov 15, 2024 · 2 comments
Open

Multilinguality #68

pnorman opened this issue Nov 15, 2024 · 2 comments
Milestone

Comments

@pnorman
Copy link
Contributor

pnorman commented Nov 15, 2024

Multilinguality is an important goal and we should support it.

The use cases I see for multi-lingual names are

  • displaying a label in the user's language
  • displaying a label in a language the user is more likely to understand than the local language (e.g. English is better than Chinese for someone who only understands Latin scripts)
  • adding glosses (e.g. "Aachen (Aix-la-Chapelle)") to labels

It will be up to the tileset authors which languages they want to support. This will gracefully degrade because not supporting a language is the same as that language not being on an object.

We do not want to include all possible languages on every feature - for example, a tileset with English and German would include 会津若松市 as the name and Aizuwakamatsu as the English name with nothing as the German name, even though Germans would generally prefer the English name over the Japanese one.

@pnorman pnorman added this to the 1.1 milestone Nov 15, 2024
@pnorman
Copy link
Contributor Author

pnorman commented Nov 15, 2024

My preferred approach is to extend what we're doing with English and German to other languages. Have name_<code> attributes for each language on an object that the tileset supports.

@russss
Copy link

russss commented Nov 19, 2024

For what it's worth, this is also what's currently stopping me from switching to Shortbread for the OpenInfraMap basemap, as I select label languages based on browser language. (I could tweak the schema myself, but I haven't quite had the energy to do that yet.)

I think the tricky part is deciding which languages to support, because we probably don't want to include all of them...

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

No branches or pull requests

2 participants