Adding MathJax
As mentioned at https://bugzilla.wikimedia.org/show_bug.cgi?id=35038 and https://github.com/mathjax/MathJax/issues/493, Wikipedia and MathJax developers would like to ask for the support from the translatewiki.net community.
As far as I can tell, the localisation format of MathJax is not supported by the Translate extension. An FFS should be created to make it possible, or the a supported localisation format should be adopted.
Sorry, I was not following this thread and I thought you'd comment on the MathJax issue tracker. As indicated there, Peter gave you commit access to the following repository:
https://github.com/mathjax/MathJax-i18n
which contains localization data that should be supported by TranslateWiki:
https://github.com/mathjax/MathJax-i18n/tree/master/JSON
(the only thing I was not sure is about the new lines "\n", but I was told it is not a problem)
The repository contains Python scripts to convert to/from the MathJax format.
I've just taken a look at https://github.com/mathjax/MathJax-i18n/tree/master/JSON. It looks like this file format it supported. You'll be getting an additional entry with author information, like this: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FUniversalLanguageSelector.git/HEAD/i18n%2Fde.json
OK, I've updated the JSON file last week to add this @metadata field. Please let us know what the next step is.
I've asked Nikerabbit and from his answer it seems that, based on Siebrand's comment above, you don't need to do anything more about the format, but he was not able to tell me what the next step is.
Any news on this? It's a bit strange to hear that everything is ok on our end yet nothing moves forward. If it's not possible (in general or in the next few weeks/months) that's unfortunate but ok -- we can look into alternatives. Just tell us something reliable. Thanks.
Commit that implements this: https://gerrit.wikimedia.org/r/85258
Example stats on testing site: [1]
First commit will be big as it changes the formatting slightly
Next steps:
- Siebrand should review and apply the commit
- Logo uploaded to Wikimedia Commons or here
- few sentence description for translators
- project page
- announce
I have imported the new JSON data to MathJax-i18n. MathJax requires additional data that are currently specified in a separate config file:
https://github.com/mathjax/MathJax-i18n/blob/master/config.js#L22
Especially, menuTitle is the name of the language written in that language (e.g. Deutsch). I'm assuming it would make sense to add this as a new string in the main file (e.g. de.js) so that localizers can translate it directly.
Or perhaps for this and the other config (plural, direction etc), we can use the @metadata field to share the info?
At the moment, that requires a bit of manual work each time we add a new language. Of course, this could also just be done directly on MathJax-i18n, by the MediaWiki folks.
Fred, I've added you as point of contact on Translating:MathJax. This means you're considered responsible of addressing translators' support requests on the talk page (which are also tracked via {{support}}
on several venues including your user page, with a feed for it). If you can't do this, just replace your name with the name of someone who agreed to do it. Thanks.
I'm guessing you meant https://bugzilla.wikimedia.org/show_bug.cgi?id=35038#c55. But this is now fixed.