Translation improvements
The following changes were suggested by @ovari in https://github.com/lovasoa/whitebophir/pull/103#issuecomment-654673440 :
- [ ] Instead of having one file
translations.jsonwith all the locales, we could have one file per locale?- This would make it easier to translate as translators can copy the
en.jsonand create another file likehu.json. - It would also make it easier to see what locales are currently available as each language would have a filename.
- This would make it easier to translate as translators can copy the
- [ ] Add support for multiple locales in a single language
Colorshould beColourforen-GB
- [ ] Make the label of the
Gobutton on the main page (the one that allows creating a named private whiteboard) translatable - [ ] Keep track of the language chosen in the main page when opening a whiteboard page. However, the chosen language should not appear in the URL of the whiteboard itself, since it is what is going to be shared with other users (that may have a different preferred locale).
One file per locale
Should be pretty easy to achieve. Just update this line in templating.js to iterate over multiple files instead of reading a single file.
Support for locale variants
This may be a little bit more work. We should check that all the dependencies support that. See
- https://github.com/lovasoa/whitebophir/blob/master/server/templating.js#L34
Make Go translatable
See https://github.com/lovasoa/whitebophir/blob/master/client-data/index.html#L59
It should be translated in all currently supported languages.
An alternative is to just remove the value attribute, and the browser will display a label in the user's language.
Transvision, a tool provided by the French Mozilla community, lists locales in the Source Locale and Target Locale drop-downs.
@ovari : I don't understand. What is your point ?
Thought it might help. Unfortunately it didn't. Please disregard. Thanks
I added your point from #103 here. If you want to make pull requests to address one or several of the points above, it will be very appreciated :)