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

use local language for names on the map #664

Closed
matkoniecz opened this issue Oct 26, 2017 · 5 comments · Fixed by #745
Closed

use local language for names on the map #664

matkoniecz opened this issue Oct 26, 2017 · 5 comments · Fixed by #745

Comments

@matkoniecz
Copy link
Member

Passing current language set on phone to https://github.com/westnordost/StreetComplete/blob/master/app/src/main/assets/cinnabar-style-8.0.0.yaml#L24 would result in displaying names on the map in the local language (except low zoom as result of tilezen/vector-datasource#977 )

According to #659 (comment) ideal app version would include a dynamic map style, so it may be a good first step.

@matkoniecz
Copy link
Member Author

@ENT8R @westnordost Do you know is it possible to dynamically modify style in tangram-es?

@westnordost
Copy link
Member

westnordost commented Nov 7, 2017

Yes. I am doing this for the quests.

Though, what exactly needs to be changed on the style to change the language of the labels is different for each style? Or is this independent of which style is used?

@matkoniecz
Copy link
Member Author

matkoniecz commented Nov 7, 2017

Depends on style - for example see https://github.com/ENT8R/streetcomplete-mapstyle/blob/master/global.yaml#L24 where source of names (later reused) is defined. With language defined in section above (for example in https://github.com/ENT8R/streetcomplete-mapstyle/blob/master/global.yaml#L18 - like path_outline) this specific language would be preferred and used if available.

So http://www.openstreetmap.org/node/25248662 is currently displayed on map as 北京市, with language set to en it would be Beijing (and with language set to de it would be Peking).

With Cinnabar it is also possible to set it somewhere, I would need to check variable name.

@matkoniecz
Copy link
Member Author

@matkoniecz
Copy link
Member Author

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

Successfully merging a pull request may close this issue.

2 participants