br.js 2.3 KB

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