grid.locale-pt.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /**
  2. * @license jqGrid Portuguese Translation
  3. * Tradução da jqGrid em Portugues por Frederico Carvalho, http://www.eyeviewdesign.pt
  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: "View {0} - {1} of {2}",
  40. emptyrecords: "No records to view",
  41. loadtext: "A carregar...",
  42. pgtext: "Página {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: "A guardar..."
  50. },
  51. search: {
  52. caption: "Busca...",
  53. Find: "Procurar",
  54. Reset: "Limpar",
  55. odata: [
  56. { oper: "eq", text: "equal" },
  57. { oper: "ne", text: "not equal" },
  58. { oper: "lt", text: "less" },
  59. { oper: "le", text: "less or equal" },
  60. { oper: "gt", text: "greater" },
  61. { oper: "ge", text: "greater or equal" },
  62. { oper: "bw", text: "begins with" },
  63. { oper: "bn", text: "does not begin with" },
  64. { oper: "in", text: "is in" },
  65. { oper: "ni", text: "is not in" },
  66. { oper: "ew", text: "ends with" },
  67. { oper: "en", text: "does not end with" },
  68. { oper: "cn", text: "contains" },
  69. { oper: "nc", text: "does not contain" },
  70. { oper: "nu", text: "is null" },
  71. { oper: "nn", text: "is not null" }
  72. ],
  73. groupOps: [
  74. { op: "AND", text: "all" },
  75. { op: "OR", text: "any" }
  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: "Adicionar Registo",
  86. editCaption: "Modificar Registo",
  87. bSubmit: "Submeter",
  88. bCancel: "Cancelar",
  89. bClose: "Fechar",
  90. saveData: "Data has been changed! Save changes?",
  91. bYes: "Yes",
  92. bNo: "No",
  93. bExit: "Cancel",
  94. msg: {
  95. required: "Campo obrigatório",
  96. number: "Por favor, introduza um numero",
  97. minValue: "O valor deve ser maior ou igual que",
  98. maxValue: "O valor deve ser menor ou igual a",
  99. email: "Não é um endereço de email válido",
  100. integer: "Por favor, introduza um numero inteiro",
  101. url: "is not a valid URL. Prefix required ('http://' or 'https://')",
  102. nodefined: " is not defined!",
  103. novalue: " return value is required!",
  104. customarray: "Custom function should return array!",
  105. customfcheck: "Custom function should be present in case of custom checking!"
  106. }
  107. },
  108. view: {
  109. caption: "View Record",
  110. bClose: "Close"
  111. },
  112. del: {
  113. caption: "Eliminar",
  114. msg: "Deseja eliminar o(s) registo(s) seleccionado(s)?",
  115. bSubmit: "Eliminar",
  116. bCancel: "Cancelar"
  117. },
  118. nav: {
  119. edittext: "",
  120. edittitle: "Modificar registo seleccionado",
  121. addtext: "",
  122. addtitle: "Adicionar novo registo",
  123. deltext: "",
  124. deltitle: "Eliminar registo seleccionado",
  125. searchtext: "",
  126. searchtitle: "Procurar",
  127. refreshtext: "",
  128. refreshtitle: "Actualizar",
  129. alertcap: "Aviso",
  130. alerttext: "Por favor, seleccione um registo",
  131. viewtext: "",
  132. viewtitle: "View selected row",
  133. savetext: "",
  134. savetitle: "Save row",
  135. canceltext: "",
  136. canceltitle: "Cancel row editing"
  137. },
  138. col: {
  139. caption: "Mostrar/Ocultar Colunas",
  140. bSubmit: "Enviar",
  141. bCancel: "Cancelar"
  142. },
  143. errors: {
  144. errcap: "Erro",
  145. nourl: "Não especificou um url",
  146. norecords: "Não existem dados para processar",
  147. model: "Tamanho do colNames <> colModel!"
  148. },
  149. formatter: {
  150. integer: { thousandsSeparator: " ", defaultValue: "0" },
  151. number: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "0.00" },
  152. currency: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: "0.00" },
  153. date: {
  154. dayNames: [
  155. "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb",
  156. "Domingo", "Segunda-Feira", "Terça-Feira", "Quarta-Feira", "Quinta-Feira", "Sexta-Feira", "Sábado"
  157. ],
  158. monthNames: [
  159. "Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez",
  160. "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
  161. ],
  162. AmPm: ["am", "pm", "AM", "PM"],
  163. S: function (j) {
  164. return j < 11 || j > 13 ? ["º", "º", "º", "º"][Math.min((j - 1) % 10, 3)] : "º";
  165. },
  166. srcformat: "Y-m-d",
  167. newformat: "d/m/Y",
  168. masks: {
  169. ShortDate: "n/j/Y",
  170. LongDate: "l, F d, Y",
  171. FullDateTime: "l, F d, Y g:i:s A",
  172. MonthDay: "F d",
  173. ShortTime: "g:i A",
  174. LongTime: "g:i:s A",
  175. YearMonth: "F, Y"
  176. }
  177. }
  178. }
  179. };
  180. $.jgrid = $.jgrid || {};
  181. $.extend(true, $.jgrid, {
  182. defaults: {
  183. locale: "pt"
  184. },
  185. locales: {
  186. // In general the property name is free, but it's recommended to use the names based on
  187. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  188. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  189. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  190. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  191. pt: $.extend({}, locInfo, { name: "Português", nameEnglish: "Portuguese" }),
  192. "pt-PT": $.extend({}, locInfo, { name: "português (Portugal)", nameEnglish: "Portuguese (Portugal)" })
  193. }
  194. });
  195. }));