mathjax / MathJax-i18n

MathJax localization
Apache License 2.0
16 stars 10 forks source link

add new languages for v2.4 #3

Closed pkra closed 10 years ago

pkra commented 10 years ago

Some languages are not listed in config.js. We should add those that will make it into v2.4.

From TranslateWiki.net on 2014-04-10, threshold of 40% completed

pkra commented 10 years ago

ast is already in config.js, just commented out.

pkra commented 10 years ago

Using GWT documentation

    "ca": {
      menuTitle: "català",
      plural: function(n) {
        if (n === 1) {return 1} // one
        return 2; // other
      },
      number: function(n) {
        return String(n).replace(".", ","); // replace dot by comma
      }
    },

    "cz": {
      menuTitle: "čeština",
      plural: function(n) {
        if (n === 1) {return 1} // one
        if (n === 2 || n === 3 || n === 4) {return 2} // two--four
        return 3; // other
      },
      number: function(n) {
        return String(n).replace(".", ","); // replace dot by comma
      }
    },

    "so": {
      menuTitle: "scots",
      plural: function(n) {
        if (n === 1) {return 1} // one
        return 2; // other
      },
      number: function(n) {
        return n;
      }
    },

    "kn": {
      menuTitle: "ಕನ್ನಡ",
      plural: function(n) {
        return 1; // other
      },
      number: function(n) {
        return n;
      }
    },
dpvc commented 10 years ago

Good work. I glanced through the config.js file and think there is a problem with the Polish plural function, as it returns 0, 1, and 2 rather than 1, 2, and 3, as I think it should. (The return value minus one is used as an index into the list of plural forms, and so it should start at 1 not 0.)

pkra commented 10 years ago

Thanks. I'll look into the Polish config.

pkra commented 10 years ago

For the record. I noticed that the latest twn update dropped Scots again. I'm guessing because I fixed "MathsJax", "MathsML" etc (see #6 ) and the changes haven't been reviewed. I did not update config.js (only did it manually when I generated the locales for v2.4