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

Manage internationalization #42

Open
ThomasG77 opened this issue Jan 25, 2015 · 4 comments
Open

Manage internationalization #42

ThomasG77 opened this issue Jan 25, 2015 · 4 comments

Comments

@ThomasG77
Copy link
Contributor

I'm interested by the topic and would like to contribute. I didn't see a reference to this feature in the code to start from something.
Do you have already ideas for managing it? I can make some search if not.

@yohanboniface
Copy link
Member

If we are talking about the UI, I would go on https://github.com/yohanboniface/Leaflet.i18n because I know it suits my taste ;)
Not sure what would be the best way to make simple for plugins to inherit from this though. I need to think about it a bit.
About the backend, I'm not sure it needs internationalisation (eg. console outputs).

@ThomasG77
Copy link
Contributor Author

Yes, only UI, end users in mind not devs: they are supposed to understand English when working IMO.

@yohanboniface
Copy link
Member

The big picture would be something like:

  • a way to compile every string to be translated from code base (maybe add a custom command, than uses Leaflet.I18n own command, but taking the kosmtik context into account to look for the right places without needing configuration)
  • expose those strings to Transifex
  • add a lang switcher somewhere on the UI (certainly on the top bar)
  • make that i18n files are loaded/reloaded dynamically according to user lang choice
  • define a sort of convention for plugins to be able to run the i18n command line and to expose their translated string (for example files go into {plugin_root}/locale/{lang_code}.json)

@kocio-pl
Copy link
Contributor

If you still plan to do it, I will make a polish translation for sure. =}

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

No branches or pull requests

4 participants