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

Translations: Where do the tooltips come from? #5523

Closed
tordans opened this issue Nov 24, 2018 · 5 comments
Closed

Translations: Where do the tooltips come from? #5523

tordans opened this issue Nov 24, 2018 · 5 comments

Comments

@tordans
Copy link
Collaborator

tordans commented Nov 24, 2018

I am referring to tooltips like this:

Predominantly houses and apartments buildings.

Where do they come from?

How can I add more of them?

I think this feature is great. I would like to extend it / contribute to it.

@hikemaniac
Copy link
Contributor

It looks like they come from the OpenStreetMap Wiki. On the wiki page about landuse=residential the short description is "Predominantly houses or apartment buildings."

@tordans
Copy link
Collaborator Author

tordans commented Nov 24, 2018

Thanks, @hikemaniac. I still wonder how it gets into iD. There is no axaj/live request, no json, no parser I could find.

{{ValueDescription
|key=landuse
|value=residential
|image=Image:Lawrenceville.jpg
|description=Predominantly houses or apartment buildings. 
…

(Link)

@hikemaniac
Copy link
Contributor

hikemaniac commented Nov 24, 2018

As far as I know, iD gets all wiki data via the Taginfo API. That's also the reason why these descriptions in iD will not update instantly, but when Taginfo refreshes its data.

@manfredbrandl
Copy link
Contributor

manfredbrandl commented Nov 24, 2018

I think it would be great if the localized/translated text would be used. Now it is always english in the tooltip but localized in the "info":
image

@tordans
Copy link
Collaborator Author

tordans commented Nov 25, 2018

Thanks for the localisation fix, that is great! (Its live on the master-preview-iD.)


The next part is for me or anyone who might google this later :).

A quick documentation about what I learned about how things work together:

So as long as there are no wiki pages for the values of fence_type, Taginfo will not show them, and iD will not show 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

3 participants