-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fallback chain for language selection of website (P856) #331
Comments
For most part we do try to first pick English then a local language (example). The query that might need some tuning would be https://github.com/govdirectory/website/blob/main/queries/organization-optional.rq#L54 |
For labels, yes. As the title suggests, I was thinking specifically for the website. |
Could we set a language in the VALUES in
Sure, it will only be one language per country (and for some countries this might be important), but it is perhaps an improvement anyway. |
I'm thinking we make it a comma separated list |
Oh, yes. At least that is putting them in the conversation. I guess in some countries, the order might be debatable and contentious, but that is one step closer. |
The feature
Right now, we just take the first language available, but we could choose which language a bit smarter. We need to discuss which order it should be, though. Until we have a fully multilingual website, I suggest the following selection chain.
However, for 1. we need to do it dynamically, so perhaps we should just start with 2-4.
Why?
So that we serve the users more relevant links.
Examples and inspiration
On German Wikivoyage, they have Module:GetP856 to select language. They have this selection chain:
So obviously, they have some logic to be inspired by.
The text was updated successfully, but these errors were encountered: