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

Add translator #96

Open
AydinHassan opened this issue Feb 9, 2016 · 2 comments
Open

Add translator #96

AydinHassan opened this issue Feb 9, 2016 · 2 comments

Comments

@AydinHassan
Copy link
Member

If we support multi-language we will no doubt have to translate all the output. We will need to write a translator or pull in a 3rd party library (my preference) and run all output through the translators. We shouldn't translate actual exercises, just stuff like exercise names, menu buttons, rendering information and so on.

We will need to decide how we store translations and we will need to shift all existing output to en translations to this medium.

@tdutrion
Copy link

tdutrion commented Oct 3, 2017

Any preference regarding the third party library?

I usually work with Zend i18n but I'm slightly worried it comes with useless classes for this use case (filters, view helpers) and therefore it would be interesting to use Symfony translation.

In terms of storage, flat PHP files (arrays) might be a good fit in terms of performances.

Also, having the project on a platform such as poeditor.com would help with translations.

Also, I am interested in helping with this issue!

@mikeymike
Copy link
Member

hey @tdutrion thanks for getting involved 😄

Currently no preference on the library to use, Symfony's looks nice and comes with the array loader so we could have it in a flat PHP file like you mentioned.

Poeditor looks good, I guess this would need to be workshop specific and maybe down to the maintainers of them to do to make the their workshop translatable.

I'd assume the workshop framework will contain a bunch of translations with placeholders for any dynamic content though, so that would likely be the first step. Then we'd probably need a way for the workshop to define what languages it supports.

I'm not sure if / how we can handle RTL languages though 🤔 would likely need some alterations to be made in cli-menu package.

Let me know your thoughts 👍

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

3 participants