-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Quick guide to translating MathJax
Frédéric Wang edited this page Aug 5, 2013
·
11 revisions
We are working on adding MathJax to TranslateWiki. In the meantime you can send pull request to MathJax-i18n which is now used as a reference point. For your information, old instructions are available below.
If you have any questions, contact us on the issue tracker or the mathjax developer list.
Here's a quick guide to help you translate MathJax directly here on github.
- Figure out the language code -- let's call this
xx
. - Fork the MathJax repository
- Copy
/unpacked/localization/en/
to/unpacked/localization/xx
- Replace all
en
s withxx
s in all files contained in this folder. - In particular,
- rename
en.js
toxx.js
- watch out for
en
in the first and last lines of code in each file -- otherwise things won't load properly.
- rename
- In
xx.js
change theplural: function
to match the plural rules of the languagexx
. See the CLDR Language Plural Rules. - If necessary, you may also change the
number: function
to match the writing convention of numbers of the languagexx
. 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!