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

i18n #138

Open
ddittmar opened this issue Jan 24, 2016 · 3 comments
Open

i18n #138

ddittmar opened this issue Jan 24, 2016 · 3 comments

Comments

@ddittmar
Copy link

The labels are hard coded into the HTML. It would be great to have some kind of internationalization (i18n).

@ddittmar
Copy link
Author

I'm not an experienced Python programmer but it looks like I can solve this myself.

I see two possible solutions:

  • Server-Side: Python will resolve the labels to the specified language.
  • Client-Side: JQuery will resolve the labels to the specified language.

The language code (like 'de') is set in the plugin settings.

What would you prefer?

@kingosticks
Copy link
Member

I think client-side makes the most sense. Each client can chose the language they want and perhaps persist the selection via a browser cookie.

@adamcik
Copy link

adamcik commented Jan 29, 2016

https://docs.python.org/2/library/gettext.html and/or http://tornadokevinlee.readthedocs.org/en/latest/locale.html#tornado.locale.load_gettext_translations might also make sense. But it might be better to at least have this eventually happen in Mopidy itself so directory names and other things backends expose can be translated as well.

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