ce.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/ce/ce.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("ce",null,{
  23. menuTitle: "\u041D\u043E\u0445\u0447\u0438\u0439\u043D \u043C\u043E\u0442\u0442",
  24. version: "2.5.0",
  25. isLoaded: true,
  26. domains: {
  27. "_": {
  28. version: "2.5.0",
  29. isLoaded: true,
  30. strings: {
  31. MathProcessingError: "\u041C\u0430\u0442\u0435\u043C\u0430\u0442\u0438\u043A\u0438\u043D \u043A\u0435\u0447\u0434\u0430\u0440\u0430\u043D \u0433\u04C0\u0430\u043B\u0430\u0442",
  32. MathError: "\u041C\u0430\u0442\u0435\u043C\u0430\u0442\u0438\u043A\u0438\u043D \u0433\u04C0\u0430\u043B\u0430\u0442",
  33. LoadFile: "\u0427\u0443\u0439\u043E\u043B\u0443\u0448 %1",
  34. Loading: "\u0427\u0443\u0439\u043E\u043B\u0443\u0448",
  35. LoadFailed: "\u0427\u0443\u044F\u043A\u043A\u0445\u0430 \u0446\u0430\u0435\u043B\u0438\u0440\u0430: %1",
  36. ProcessMath: "\u041C\u0430\u0442\u0435\u043C\u0430\u0442\u0438\u043A\u0430 \u043A\u0435\u0447\u044F\u0440: %1%%",
  37. Processing: "\u041A\u0435\u0447\u0434\u0430\u0440"
  38. }
  39. },
  40. "FontWarnings": {},
  41. "HTML-CSS": {},
  42. "HelpDialog": {},
  43. "MathML": {},
  44. "MathMenu": {},
  45. "TeX": {}
  46. },
  47. plural: function (n) {
  48. if (n % 10 === 1 && n % 100 !== 11) return 1; // one
  49. if (2 <= n % 10 && n % 10 <= 4 && 12 <= n % 100 && n % 100 <= 14) return 2; // few
  50. if (n % 10 === 0 || (5 <= n % 10 && n % 10 <= 9) ||
  51. (11 <= n % 100 && n % 100 <= 14)) return 2; // many
  52. return 3; // other
  53. },
  54. number: function (n) {
  55. return n;
  56. }
  57. });
  58. MathJax.Ajax.loadComplete("[MathJax]/localization/ce/ce.js");