Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Wiki
  • Localization Proposal

Localization Proposal · Changes

Page history
Updated Localization Proposal (markdown) authored Feb 05, 2013 by dpvc's avatar dpvc
Hide whitespace changes
Inline Side-by-side
Localization-Proposal.md
View page @ 06c88051
......@@ -170,7 +170,7 @@ The methods in `MathJax.Localization` include:
<dl>
<dt>locale</dt>
<dd>the currently selected locale, e.g., <code>"fr"</code></dd>
<dd>The currently selected locale, e.g., <code>"fr"</code>. This is set by the <code>setLocale()</code> method, and should not be modified by hand.</dd>
<dt>directory</dt>
<dd>The URL for the localization data files. This can be overridden for individual languages or domains (see below). The default is <code>[MathJax]/localization</code>.</dd>
......@@ -180,4 +180,39 @@ The methods in `MathJax.Localization` include:
</dl>
### Translation Data ###
Each language has its own data in the `MathJax.Localization.strings` structure. This structure holds data about the translation, plus the translated string for each domain.
A typical example might be
fr: {
version: "1.0",
directory: "[MathJax]/localization/fr", // optional
file: "fr.js", // optional
isLoaded: true, // set when loaded
font: "...", // optional
meta: {
translator: "...", // other metadata could be added
},
domains: {
hub: {
version: "1.0",
file: "http://somecompany.com/MathJax/localization/fr/hub.js", // optional
strings: {
fnf: "File '%1' not found",
fl: ["%1 file loaded","%1 files loaded"],
...
}
},
TeX: {
...
},
"*": {
...
},
...
}
## The Translation Files ##
Clone repository

MathJax Wiki

  • Contributing
  • Development
    • Development Process
      • Release Process Checklist
      • Hotfix Release Process
      • Documentation Update Process
      • Source Control Policies
    • Design Documents
      • MathJax Roadmap
      • CDN Hosting
        • Managing Rackspace Cloud Files & CDN
        • Directory Structure
        • .htaccess settings
        • Managing Amazon Cloudfront
      • Performance Discussion
      • Profiling and Diagnostics Tools
      • Configuration Options
      • Documentation generation guide
      • Testing
        • Platforms supported
        • Test Machines
  • MathJax web presence
  • Drafts