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

Preferred language #473

Open
Skud opened this issue Dec 12, 2014 · 1 comment
Open

Preferred language #473

Skud opened this issue Dec 12, 2014 · 1 comment

Comments

@Skud
Copy link
Contributor

Skud commented Dec 12, 2014

I should be able to choose my preferred language in my user profile. Having done so, crop names (#554 should appear in my language of choice (if available).

@CloCkWeRX
Copy link
Collaborator

CloCkWeRX commented Aug 9, 2023

https://guides.rubyonrails.org/i18n.html#setting-the-locale-from-user-preferences covers the app strings.

#554
https://github.com/shioyama/mobility seems to be the maintained choice.

Automatically sourcing translations, we have wikipedia URLs for a bunch of crops, we should flip that to wikidata ids (similar to how openstreetmap does it); and use that as the source of translations.

IE
https://en.wikipedia.org/wiki/Lettuce =
https://www.wikidata.org/wiki/Q83193

Searching via an autocomplete:

https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&origin=*&srinfo=suggestion&srlimit=10&srsearch=Lettuce

which in turn can then:

https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&formatversion=2&languages=en&origin=*&sites=enwiki&titles=Lettuce

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

No branches or pull requests

3 participants