-
Notifications
You must be signed in to change notification settings - Fork 819
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
Beneficial to have the function for language selection available in Lua Script? #4091
Comments
See also #803. |
For example I have in lua in nodes:
It would make sense to make this language agnostic. Working on a quick import now to demo, I will upload snapshots when it's complete |
Idea was extended upon from https://www.openstreetmap.org/user/demonshreder/diary/43956 |
If we want to put it into the Lua file then it should be enabled by a global variable to switch it on. I'd rather do the language conversion at generation time than when loading. Doing it when loading rules out rendering multiple languages from the one DB. |
I'm going to close it for this reason. I'd like an easier solution to changing the rendered language for forks and other deployments, but I don't think it can involve setting the language at import time. |
Would it be beneficial to have the ability to select language for tags be easily available in the openstreetmap-carto base repository?
All that's needed is something like in the appropriate places:
different_name = nil # or "name:en" if different_name then if keyvalues[different_name] and keyvalues["name"] then if keyvalues["name"] ~= keyvalues[different_name] then keyvalues["name"] = keyvalues["name"].."\n("..keyvalues[different_name]..")" end end end
Or is it preferred to keep this repo tidy? I see this as an often requested thing so I can see either way
The text was updated successfully, but these errors were encountered: