br.js 2.3 KB

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