audreyt / ethercalc

Node.js port of Multi-user SocialCalc
https://ethercalc.net
Other
2.96k stars 539 forks source link

UI Internationalization #230

Open turtleizzy opened 9 years ago

turtleizzy commented 9 years ago

Currently I am working on translating the user interface of ethercalc into Chinese. It will be very convenient for translators if UI strings are saved in a separate file. User can therefore choose their favorite interface language. Any gettext-like i18n libraries may be suitable to handle this function, and I personally recommend i18next (i18next.com).

By the way I am more than willing to participate in this translation project.

Update: I didn't notice /l10n/ directory. Sorry for disturbance.

audreyt commented 9 years ago

No problem. Please feel free to open a pull request for zh-CN.json — perhaps starting with a sketch in http://opencc.byvoid.com/ based on the existing zh-TW.json — thanks!

turtleizzy commented 9 years ago

It seems strings in player-graph.js are not integrated into /l10n/ strings library.

audreyt commented 9 years ago

Yes. Help welcome to factor them from line 6-27 out into l10n/en.json — we should also have some way of falling back to en.json for strings not defined in the local JSON files, please create a ticket for that too if you'd like to work on it; the relevant code is index.html line 34.