angular-locale_ru-kg.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. 'use strict';
  2. angular.module("ngLocale", [], ["$provide", function ($provide) {
  3. var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
  4. function getDecimals(n) {
  5. n = n + '';
  6. var i = n.indexOf('.');
  7. return (i == -1) ? 0 : n.length - i - 1;
  8. }
  9. function getVF(n, opt_precision) {
  10. var v = opt_precision;
  11. if (undefined === v) {
  12. v = Math.min(getDecimals(n), 3);
  13. }
  14. var base = Math.pow(10, v);
  15. var f = ((n * base) | 0) % base;
  16. return {v: v, f: f};
  17. }
  18. $provide.value("$locale", {
  19. "DATETIME_FORMATS": {
  20. "AMPMS": [
  21. "\u0414\u041f",
  22. "\u041f\u041f"
  23. ],
  24. "DAY": [
  25. "\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435",
  26. "\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a",
  27. "\u0432\u0442\u043e\u0440\u043d\u0438\u043a",
  28. "\u0441\u0440\u0435\u0434\u0430",
  29. "\u0447\u0435\u0442\u0432\u0435\u0440\u0433",
  30. "\u043f\u044f\u0442\u043d\u0438\u0446\u0430",
  31. "\u0441\u0443\u0431\u0431\u043e\u0442\u0430"
  32. ],
  33. "ERANAMES": [
  34. "\u0434\u043e \u0420\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0430 \u0425\u0440\u0438\u0441\u0442\u043e\u0432\u0430",
  35. "\u043e\u0442 \u0420\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0430 \u0425\u0440\u0438\u0441\u0442\u043e\u0432\u0430"
  36. ],
  37. "ERAS": [
  38. "\u0434\u043e \u043d. \u044d.",
  39. "\u043d. \u044d."
  40. ],
  41. "FIRSTDAYOFWEEK": 0,
  42. "MONTH": [
  43. "\u044f\u043d\u0432\u0430\u0440\u044f",
  44. "\u0444\u0435\u0432\u0440\u0430\u043b\u044f",
  45. "\u043c\u0430\u0440\u0442\u0430",
  46. "\u0430\u043f\u0440\u0435\u043b\u044f",
  47. "\u043c\u0430\u044f",
  48. "\u0438\u044e\u043d\u044f",
  49. "\u0438\u044e\u043b\u044f",
  50. "\u0430\u0432\u0433\u0443\u0441\u0442\u0430",
  51. "\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f",
  52. "\u043e\u043a\u0442\u044f\u0431\u0440\u044f",
  53. "\u043d\u043e\u044f\u0431\u0440\u044f",
  54. "\u0434\u0435\u043a\u0430\u0431\u0440\u044f"
  55. ],
  56. "SHORTDAY": [
  57. "\u0432\u0441",
  58. "\u043f\u043d",
  59. "\u0432\u0442",
  60. "\u0441\u0440",
  61. "\u0447\u0442",
  62. "\u043f\u0442",
  63. "\u0441\u0431"
  64. ],
  65. "SHORTMONTH": [
  66. "\u044f\u043d\u0432.",
  67. "\u0444\u0435\u0432\u0440.",
  68. "\u043c\u0430\u0440.",
  69. "\u0430\u043f\u0440.",
  70. "\u043c\u0430\u044f",
  71. "\u0438\u044e\u043d.",
  72. "\u0438\u044e\u043b.",
  73. "\u0430\u0432\u0433.",
  74. "\u0441\u0435\u043d\u0442.",
  75. "\u043e\u043a\u0442.",
  76. "\u043d\u043e\u044f\u0431.",
  77. "\u0434\u0435\u043a."
  78. ],
  79. "STANDALONEMONTH": [
  80. "\u044f\u043d\u0432\u0430\u0440\u044c",
  81. "\u0444\u0435\u0432\u0440\u0430\u043b\u044c",
  82. "\u043c\u0430\u0440\u0442",
  83. "\u0430\u043f\u0440\u0435\u043b\u044c",
  84. "\u043c\u0430\u0439",
  85. "\u0438\u044e\u043d\u044c",
  86. "\u0438\u044e\u043b\u044c",
  87. "\u0430\u0432\u0433\u0443\u0441\u0442",
  88. "\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c",
  89. "\u043e\u043a\u0442\u044f\u0431\u0440\u044c",
  90. "\u043d\u043e\u044f\u0431\u0440\u044c",
  91. "\u0434\u0435\u043a\u0430\u0431\u0440\u044c"
  92. ],
  93. "WEEKENDRANGE": [
  94. 5,
  95. 6
  96. ],
  97. "fullDate": "EEEE, d MMMM y '\u0433'.",
  98. "longDate": "d MMMM y '\u0433'.",
  99. "medium": "d MMM y '\u0433'. H:mm:ss",
  100. "mediumDate": "d MMM y '\u0433'.",
  101. "mediumTime": "H:mm:ss",
  102. "short": "dd.MM.y H:mm",
  103. "shortDate": "dd.MM.y",
  104. "shortTime": "H:mm"
  105. },
  106. "NUMBER_FORMATS": {
  107. "CURRENCY_SYM": "KGS",
  108. "DECIMAL_SEP": ",",
  109. "GROUP_SEP": "\u00a0",
  110. "PATTERNS": [
  111. {
  112. "gSize": 3,
  113. "lgSize": 3,
  114. "maxFrac": 3,
  115. "minFrac": 0,
  116. "minInt": 1,
  117. "negPre": "-",
  118. "negSuf": "",
  119. "posPre": "",
  120. "posSuf": ""
  121. },
  122. {
  123. "gSize": 3,
  124. "lgSize": 3,
  125. "maxFrac": 2,
  126. "minFrac": 2,
  127. "minInt": 1,
  128. "negPre": "-",
  129. "negSuf": "\u00a0\u00a4",
  130. "posPre": "",
  131. "posSuf": "\u00a0\u00a4"
  132. }
  133. ]
  134. },
  135. "id": "ru-kg",
  136. "localeID": "ru_KG",
  137. "pluralCat": function (n, opt_precision) {
  138. var i = n | 0;
  139. var vf = getVF(n, opt_precision);
  140. if (vf.v == 0 && i % 10 == 1 && i % 100 != 11) {
  141. return PLURAL_CATEGORY.ONE;
  142. }
  143. if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14)) {
  144. return PLURAL_CATEGORY.FEW;
  145. }
  146. if (vf.v == 0 && i % 10 == 0 || vf.v == 0 && i % 10 >= 5 && i % 10 <= 9 || vf.v == 0 && i % 100 >= 11 && i % 100 <= 14) {
  147. return PLURAL_CATEGORY.MANY;
  148. }
  149. return PLURAL_CATEGORY.OTHER;
  150. }
  151. });
  152. }]);