grid.locale-gl.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. /**
  2. * @license jqGrid Galician Translation
  3. * Translated by Jorge Barreiro <yortx.barry@gmail.com>
  4. * Dual licensed under the MIT and GPL licenses:
  5. * http://www.opensource.org/licenses/mit-license.php
  6. * http://www.gnu.org/licenses/gpl.html
  7. **/
  8. /*jslint white: true */
  9. /*global jQuery, module, require */
  10. (function (factory) {
  11. "use strict";
  12. if (typeof define === "function" && define.amd) {
  13. // AMD. Register as an anonymous module.
  14. define(["jquery"], factory);
  15. } else if (typeof module === "object" && module.exports) {
  16. // Node/CommonJS
  17. module.exports = function (root, $) {
  18. if ($ === undefined) {
  19. // require("jquery") returns a factory that requires window to
  20. // build a jQuery instance, we normalize how we use modules
  21. // that require this pattern but the window provided is a noop
  22. // if it's defined (how jquery works)
  23. $ = typeof window !== "undefined" ?
  24. require("jquery") :
  25. require("jquery")(root || window);
  26. }
  27. factory($);
  28. return $;
  29. };
  30. } else {
  31. // Browser globals
  32. factory(jQuery);
  33. }
  34. }(function ($) {
  35. "use strict";
  36. var locInfo = {
  37. isRTL: false,
  38. defaults: {
  39. recordtext: "Amosando {0} - {1} de {2}",
  40. emptyrecords: "Sen rexistros que amosar",
  41. loadtext: "Cargando...",
  42. pgtext: "Páxina {0} de {1}",
  43. pgfirst: "First Page",
  44. pglast: "Last Page",
  45. pgnext: "Next Page",
  46. pgprev: "Previous Page",
  47. pgrecs: "Records per Page",
  48. showhide: "Toggle Expand Collapse Grid",
  49. savetext: "Gardando..."
  50. },
  51. search: {
  52. caption: "Búsqueda...",
  53. Find: "Buscar",
  54. Reset: "Limpar",
  55. odata: [
  56. { oper: "eq", text: "igual " },
  57. { oper: "ne", text: "diferente a" },
  58. { oper: "lt", text: "menor que" },
  59. { oper: "le", text: "menor ou igual que" },
  60. { oper: "gt", text: "maior que" },
  61. { oper: "ge", text: "maior ou igual a" },
  62. { oper: "bw", text: "empece por" },
  63. { oper: "bn", text: "non empece por" },
  64. { oper: "in", text: "está en" },
  65. { oper: "ni", text: "non está en" },
  66. { oper: "ew", text: "termina por" },
  67. { oper: "en", text: "non termina por" },
  68. { oper: "cn", text: "contén" },
  69. { oper: "nc", text: "non contén" },
  70. { oper: "nu", text: "is null" },
  71. { oper: "nn", text: "is not null" }
  72. ],
  73. groupOps: [
  74. { op: "AND", text: "todo" },
  75. { op: "OR", text: "calquera" }
  76. ],
  77. addGroupTitle: "Add subgroup",
  78. deleteGroupTitle: "Delete group",
  79. addRuleTitle: "Add rule",
  80. deleteRuleTitle: "Delete rule",
  81. operandTitle: "Click to select search operation.",
  82. resetTitle: "Reset Search Value"
  83. },
  84. edit: {
  85. addCaption: "Engadir rexistro",
  86. editCaption: "Modificar rexistro",
  87. bSubmit: "Gardar",
  88. bCancel: "Cancelar",
  89. bClose: "Pechar",
  90. saveData: "Modificáronse os datos, quere gardar os cambios?",
  91. bYes: "Si",
  92. bNo: "Non",
  93. bExit: "Cancelar",
  94. msg: {
  95. required: "Campo obrigatorio",
  96. number: "Introduza un número",
  97. minValue: "O valor debe ser maior ou igual a ",
  98. maxValue: "O valor debe ser menor ou igual a ",
  99. email: "non é un enderezo de correo válido",
  100. integer: "Introduza un valor enteiro",
  101. date: "Introduza unha data correcta ",
  102. url: "non é unha URL válida. Prefixo requerido ('http://' ou 'https://')",
  103. nodefined: " non está definido.",
  104. novalue: " o valor de retorno é obrigatorio.",
  105. customarray: "A función persoalizada debe devolver un array.",
  106. customfcheck: "A función persoalizada debe estar presente no caso de ter validación persoalizada."
  107. }
  108. },
  109. view: {
  110. caption: "Consultar rexistro",
  111. bClose: "Pechar"
  112. },
  113. del: {
  114. caption: "Eliminar",
  115. msg: "Desexa eliminar os rexistros seleccionados?",
  116. bSubmit: "Eliminar",
  117. bCancel: "Cancelar"
  118. },
  119. nav: {
  120. edittext: "",
  121. edittitle: "Modificar a fila seleccionada",
  122. addtext: "",
  123. addtitle: "Engadir unha nova fila",
  124. deltext: "",
  125. deltitle: "Eliminar a fila seleccionada",
  126. searchtext: "",
  127. searchtitle: "Buscar información",
  128. refreshtext: "",
  129. refreshtitle: "Recargar datos",
  130. alertcap: "Aviso",
  131. alerttext: "Seleccione unha fila",
  132. viewtext: "",
  133. viewtitle: "Ver fila seleccionada",
  134. savetext: "",
  135. savetitle: "Save row",
  136. canceltext: "",
  137. canceltitle: "Cancel row editing"
  138. },
  139. col: {
  140. caption: "Mostrar/ocultar columnas",
  141. bSubmit: "Enviar",
  142. bCancel: "Cancelar"
  143. },
  144. errors: {
  145. errcap: "Erro",
  146. nourl: "Non especificou unha URL",
  147. norecords: "Non hai datos para procesar",
  148. model: "As columnas de nomes son diferentes das columnas de modelo"
  149. },
  150. formatter: {
  151. integer: { thousandsSeparator: ".", defaultValue: "0" },
  152. number: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: "0,00" },
  153. currency: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: "0,00" },
  154. date: {
  155. dayNames: [
  156. "Do", "Lu", "Ma", "Me", "Xo", "Ve", "Sa",
  157. "Domingo", "Luns", "Martes", "Mércoles", "Xoves", "Vernes", "Sábado"
  158. ],
  159. monthNames: [
  160. "Xan", "Feb", "Mar", "Abr", "Mai", "Xuñ", "Xul", "Ago", "Set", "Out", "Nov", "Dec",
  161. "Xaneiro", "Febreiro", "Marzo", "Abril", "Maio", "Xuño", "Xullo", "Agosto", "Setembro", "Outubro", "Novembro", "Decembro"
  162. ],
  163. AmPm: ["am", "pm", "AM", "PM"],
  164. S: function (j) {
  165. return j < 11 || j > 13 ? ["st", "nd", "rd", "th"][Math.min((j - 1) % 10, 3)] : "th";
  166. },
  167. srcformat: "Y-m-d",
  168. newformat: "d-m-Y",
  169. masks: {
  170. ShortDate: "n/j/Y",
  171. LongDate: "l, F d, Y",
  172. FullDateTime: "l, F d, Y g:i:s A",
  173. MonthDay: "F d",
  174. ShortTime: "g:i A",
  175. LongTime: "g:i:s A",
  176. YearMonth: "F, Y"
  177. }
  178. }
  179. }
  180. };
  181. $.jgrid = $.jgrid || {};
  182. $.extend(true, $.jgrid, {
  183. defaults: {
  184. locale: "gl"
  185. },
  186. locales: {
  187. // In general the property name is free, but it's recommended to use the names based on
  188. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  189. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  190. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  191. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  192. gl: $.extend({}, locInfo, { name: "galego", nameEnglish: "Galician" }),
  193. "gl-ES": $.extend({}, locInfo, { name: "galego (galego)", nameEnglish: "Galician (Galician)" })
  194. }
  195. });
  196. }));