br.js (2396B)
1 /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ 2 /* vim: set ts=2 et sw=2 tw=80: */ 3 4 /************************************************************* 5 * 6 * MathJax/localization/br/br.js 7 * 8 * Copyright (c) 2009-2015 The MathJax Consortium 9 * 10 * Licensed under the Apache License, Version 2.0 (the "License"); 11 * you may not use this file except in compliance with the License. 12 * You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, software 17 * distributed under the License is distributed on an "AS IS" BASIS, 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 * See the License for the specific language governing permissions and 20 * limitations under the License. 21 * 22 */ 23 24 MathJax.Localization.addTranslation("br",null,{ 25 menuTitle: "brezhoneg", 26 version: "2.6.0", 27 isLoaded: true, 28 domains: { 29 "_": { 30 version: "2.6.0", 31 isLoaded: true, 32 strings: { 33 MathProcessingError: "Fazi o treta\u00F1 ar formulenn", 34 MathError: "Fazi er formulenn", 35 LoadFile: "O karga\u00F1 %1", 36 Loading: "O karga\u00F1", 37 LoadFailed: "N'eus ket bet gallet karga\u00F1 %1", 38 ProcessMath: "Treta\u00F1 ar formulenno\u00F9 : %1%%", 39 Processing: "O treta\u00F1", 40 TypesetMath: "Aoza\u00F1 formulenno\u00F9 : %1%%", 41 Typesetting: "Aoza\u00F1", 42 MathJaxNotSupported: "Ne c'hall ket ho merdeer ober gant MathJax" 43 } 44 }, 45 "FontWarnings": {}, 46 "HTML-CSS": {}, 47 "HelpDialog": {}, 48 "MathML": {}, 49 "MathMenu": {}, 50 "TeX": {} 51 }, 52 plural: function (n) { 53 if (n % 10 === 1 && !(n % 100 === 11 || n % 100 === 71 || 54 n % 100 === 91)) {return 1} // one 55 if (n % 10 === 2 && !(n % 100 === 12 || n % 100 === 72 || 56 n % 100 === 92)) {return 2} // two 57 if ((n % 10 === 3 || n % 10 === 4 || n % 10 === 9) && 58 !(10 <= n % 100 && n % 100 <= 19 || 59 70 <= n % 100 && n % 100 <= 79 || 60 90 <= n % 100 && n % 100 <= 99)) {return 3} // few 61 if (n !== 0 && n % 1000000 === 0) {return 4} // other 62 return 5; 63 }, 64 number: function (n) { 65 return n; 66 } 67 }); 68 69 MathJax.Ajax.loadComplete("[MathJax]/localization/br/br.js");