File: localization.rst

package info (click to toggle)
mathjax-docs 2.7+20171212-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,100 kB
  • sloc: sh: 22; python: 19; makefile: 8
file content (47 lines) | stat: -rw-r--r-- 2,094 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.. _localization:

********************
MathJax Localization
********************

As of version 2.2, MathJax's user interface (including its contextual
menu, its help and about dialog boxes, and its warning messages) can
all be localized to appear in languages other than English. For the 
available language options, see the `TranslateWiki.net interface
<https://translatewiki.net/wiki/Translating:MathJax>`_.

The language used by MathJax can be selected using the MathJax
contextual menu.  It includes a `Language` submenu that lists the
available languages; selecting one will change the MathJax user
interface to use that language.

.. The list includes those languages that are provided by MathJax, but
   third party developers may produce translations that have not yet
   been incorporated into an official MathJax release.  If you know
   the location of such a translation, you can use the `Load from
   URL...` item at the bottom of the language menu to provide a URL
   for the data file for that language (this will be supplied by the
   third party).

Page authors can select a default language for MathJax so that, for
example, a page that is written in French will have MathJax's user
interface also in French.  To do this, add ``&locale=XX`` after the
configuration file in the ``<script>`` tag that loads the MathJax.js
file, where ``XX`` is the two-letter code for the language. For 
example:

.. code-block:: html

    <script src="https://example.com/MathJax.js?config=TeX-AMS_HTML&locale=fr"></script>

will load MathJax using the French language.  Users can still override
this setting using the `Language` submenu of the MathJax contextual
menu.  This submenu can be disabled, however, using the
:ref:`MathMenu configuration options <configure-MathMenu>`.

If you want to help in the translation process, please visit the 
`TranslateWiki.net interface
<https://translatewiki.net/wiki/Translating:MathJax>`_.  The page
`localization.html
<https://github.com/mathjax/MathJax/blob/master/test/localization.html>`_
is a convenient way to check the different translations.