grid.locale-bg.js 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /**
  2. * @license jqGrid Bulgarian Translation
  3. * Tony Tomov tony@trirand.com
  4. * http://trirand.com/blog/
  5. * Dual licensed under the MIT and GPL licenses:
  6. * http://www.opensource.org/licenses/mit-license.php
  7. * http://www.gnu.org/licenses/gpl.html
  8. **/
  9. /*jslint white: true */
  10. /*global jQuery, module, require */
  11. (function (factory) {
  12. "use strict";
  13. if (typeof define === "function" && define.amd) {
  14. // AMD. Register as an anonymous module.
  15. define(["jquery"], factory);
  16. } else if (typeof module === "object" && module.exports) {
  17. // Node/CommonJS
  18. module.exports = function (root, $) {
  19. if ($ === undefined) {
  20. // require("jquery") returns a factory that requires window to
  21. // build a jQuery instance, we normalize how we use modules
  22. // that require this pattern but the window provided is a noop
  23. // if it's defined (how jquery works)
  24. $ = typeof window !== "undefined" ?
  25. require("jquery") :
  26. require("jquery")(root || window);
  27. }
  28. factory($);
  29. return $;
  30. };
  31. } else {
  32. // Browser globals
  33. factory(jQuery);
  34. }
  35. }(function ($) {
  36. "use strict";
  37. var locInfo = {
  38. isRTL: false,
  39. defaults: {
  40. recordtext: "{0} - {1} от {2}",
  41. emptyrecords: "Няма запис(и)",
  42. loadtext: "Зареждам...",
  43. pgtext: "Стр. {0} от {1}",
  44. pgfirst: "Първа Стр.",
  45. pglast: "Последна Стр.",
  46. pgnext: "Следваща Стр.",
  47. pgprev: "Предишна Стр.",
  48. pgrecs: "Брой записи на Стр.",
  49. showhide: "Свиване/Разтягане на таблицата",
  50. savetext: "Записване..."
  51. },
  52. search: {
  53. caption: "Търсене...",
  54. Find: "Намери",
  55. Reset: "Изчисти",
  56. odata: [
  57. { oper: "eq", text: "равно" },
  58. { oper: "ne", text: "различно" },
  59. { oper: "lt", text: "по-малко" },
  60. { oper: "le", text: "по-малко или=" },
  61. { oper: "gt", text: "по-голямо" },
  62. { oper: "ge", text: "по-голямо или =" },
  63. { oper: "bw", text: "започва с" },
  64. { oper: "bn", text: "не започва с" },
  65. { oper: "in", text: "се намира в" },
  66. { oper: "ni", text: "не се намира в" },
  67. { oper: "ew", text: "завършва с" },
  68. { oper: "en", text: "не завършава с" },
  69. { oper: "cn", text: "съдържа" },
  70. { oper: "nc", text: "не съдържа" },
  71. { oper: "nu", text: "е NULL" },
  72. { oper: "nn", text: "не е NULL" }
  73. ],
  74. groupOps: [
  75. { op: "AND", text: " И " },
  76. { op: "OR", text: "ИЛИ" }
  77. ],
  78. addGroupTitle: "Add subgroup",
  79. deleteGroupTitle: "Delete group",
  80. addRuleTitle: "Add rule",
  81. deleteRuleTitle: "Delete rule",
  82. operandTitle: "Натисни за избор на операнд.",
  83. resetTitle: "Изчисти стойността"
  84. },
  85. edit: {
  86. addCaption: "Нов Запис",
  87. editCaption: "Редакция Запис",
  88. bSubmit: "Запиши",
  89. bCancel: "Изход",
  90. bClose: "Затвори",
  91. saveData: "Данните са променени! Да съхраня ли промените?",
  92. bYes: "Да",
  93. bNo: "Не",
  94. bExit: "Отказ",
  95. msg: {
  96. required: "Полето е задължително",
  97. number: "Въведете валидно число!",
  98. minValue: "стойността трябва да е по-голяма или равна от",
  99. maxValue: "стойността трябва да е по-малка или равна от",
  100. email: "не е валиден ел. адрес",
  101. integer: "Въведете валидно цяло число",
  102. date: "Въведете валидна дата",
  103. url: "e невалиден URL. Изискава се префикс('http://' или 'https://')",
  104. nodefined: " е недефинирана!",
  105. novalue: " изисква връщане на стойност!",
  106. customarray: "Потреб. Функция трябва да върне масив!",
  107. customfcheck: "Потребителска функция е задължителна при този тип елемент!"
  108. }
  109. },
  110. view: {
  111. caption: "Преглед запис",
  112. bClose: "Затвори"
  113. },
  114. del: {
  115. caption: "Изтриване",
  116. msg: "Да изтрия ли избраният запис?",
  117. bSubmit: "Изтрий",
  118. bCancel: "Отказ"
  119. },
  120. nav: {
  121. edittext: "",
  122. edittitle: "Редакция избран запис",
  123. addtext: "",
  124. addtitle: "Добавяне нов запис",
  125. deltext: "",
  126. deltitle: "Изтриване избран запис",
  127. searchtext: "",
  128. searchtitle: "Търсене запис(и)",
  129. refreshtext: "",
  130. refreshtitle: "Обнови таблица",
  131. alertcap: "Предупреждение",
  132. alerttext: "Моля, изберете запис",
  133. viewtext: "",
  134. viewtitle: "Преглед избран запис",
  135. savetext: "",
  136. savetitle: "Съхрани запис",
  137. canceltext: "",
  138. canceltitle: "Отказ редакция"
  139. },
  140. col: {
  141. caption: "Избери колони",
  142. bSubmit: "Ок",
  143. bCancel: "Изход"
  144. },
  145. errors: {
  146. errcap: "Грешка",
  147. nourl: "Няма посочен url адрес",
  148. norecords: "Няма запис за обработка",
  149. model: "Модела не съответства на имената!"
  150. },
  151. formatter: {
  152. integer: { thousandsSeparator: " ", defaultValue: "0" },
  153. number: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "0.00" },
  154. currency: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix: " лв.", defaultValue: "0.00" },
  155. date: {
  156. dayNames: [
  157. "Нед", "Пон", "Вт", "Ср", "Чет", "Пет", "Съб",
  158. "Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"
  159. ],
  160. monthNames: [
  161. "Яну", "Фев", "Мар", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Нов", "Дек",
  162. "Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"
  163. ],
  164. AmPm: ["", "", "", ""],
  165. S: function (j) {
  166. if (j === 7 || j === 8 || j === 27 || j === 28) {
  167. return "ми";
  168. }
  169. return ["ви", "ри", "ти"][Math.min((j - 1) % 10, 2)];
  170. },
  171. srcformat: "Y-m-d",
  172. newformat: "d/m/Y",
  173. masks: {
  174. ShortDate: "n/j/Y",
  175. LongDate: "l, F d, Y",
  176. FullDateTime: "l, F d, Y g:i:s A",
  177. MonthDay: "F d",
  178. ShortTime: "g:i A",
  179. LongTime: "g:i:s A",
  180. YearMonth: "F, Y"
  181. }
  182. }
  183. }
  184. };
  185. $.jgrid = $.jgrid || {};
  186. $.extend(true, $.jgrid, {
  187. defaults: {
  188. locale: "bg"
  189. },
  190. locales: {
  191. // In general the property name is free, but it's recommended to use the names based on
  192. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  193. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  194. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  195. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  196. bg: $.extend({}, locInfo, { name: "български", nameEnglish: "Bulgarian" }),
  197. "bg-BG": $.extend({}, locInfo, { name: "български (България)", nameEnglish: "Bulgarian (Bulgaria)" })
  198. }
  199. });
  200. }));