|
**update: The information below is obsolete. If you wish to add or update translations of MathJax, please do it directly on [TranslateWiki](https://translatewiki.net/w/i.php?title=Special:Translate&group=out-mathjax-0-all). Thank you!**
|
|
If you wish to add or update translations of MathJax, please do it on [TranslateWiki](https://translatewiki.net/w/i.php?title=Special:Translate&group=out-mathjax-0-all) (and while you're there you can help other open source projects, too!).
|
|
|
|
|
|
***
|
|
Thank you!
|
|
Here's a quick guide to help you translate MathJax directly here on github.
|
|
|
|
|
|
|
|
* Figure out the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) -- let's call this `xx`. (Note: it could also be a `xx-yy` style language tag.)
|
|
|
|
* Fork [the MathJax i18n repository](https://github.com/mathjax/MathJax-i18n)
|
|
|
|
* Copy `/JSON/en/` to `/JSON/xx`
|
|
|
|
* Replace all `en`s with `xx`s in all files contained in this folder.
|
|
|
|
* In particular,
|
|
|
|
* rename `en.js` to `xx.js`
|
|
|
|
* watch out for `en` in the first and last lines of code in each file -- otherwise things won't load properly.
|
|
|
|
* In `xx.js` change the `plural: function` to match the plural rules of the language `xx`. See the [CLDR Language Plural Rules](http://www.unicode.org/cldr/charts/supplemental/language_plural_rules.html).
|
|
|
|
* If necessary, you may also change the `number: function` to match the writing convention of numbers of the language `xx`. For example German and French use a comma instead of a dot.
|
|
|
|
* Translate the strings in all files.
|
|
|
|
* Test the translation.
|
|
|
|
* Create a pull request to our repository so that we can review your code.
|
|
|
|
* Get a big **Thank you! You're awesome** from the MathJax team! |
|
|
|
\ No newline at end of file |
|
|