grid.locale-pt-br.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /**
  2. * @license jqGrid Brazilian-Portuguese Translation
  3. * Sergio Righi sergio.righi@gmail.com
  4. * http://curve.com.br
  5. *
  6. * Updated by Jonnas Fonini
  7. * http://fonini.net
  8. *
  9. *
  10. * Updated by Fabio Ferreira da Silva fabio_ferreiradasilva@yahoo.com.br
  11. *
  12. *
  13. * Updated by Anderson Pimentel anderson.pimentel[at]gmail.com
  14. *
  15. *
  16. * Dual licensed under the MIT and GPL licenses:
  17. * http://www.opensource.org/licenses/mit-license.php
  18. * http://www.gnu.org/licenses/gpl.html
  19. **/
  20. /*jslint white: true */
  21. /*global jQuery, module, require */
  22. (function (factory) {
  23. "use strict";
  24. if (typeof define === "function" && define.amd) {
  25. // AMD. Register as an anonymous module.
  26. define(["jquery"], factory);
  27. } else if (typeof module === "object" && module.exports) {
  28. // Node/CommonJS
  29. module.exports = function (root, $) {
  30. if ($ === undefined) {
  31. // require("jquery") returns a factory that requires window to
  32. // build a jQuery instance, we normalize how we use modules
  33. // that require this pattern but the window provided is a noop
  34. // if it's defined (how jquery works)
  35. $ = typeof window !== "undefined" ?
  36. require("jquery") :
  37. require("jquery")(root || window);
  38. }
  39. factory($);
  40. return $;
  41. };
  42. } else {
  43. // Browser globals
  44. factory(jQuery);
  45. }
  46. }(function ($) {
  47. "use strict";
  48. var locInfo = {
  49. name: "Português (Brasil)",
  50. nameEnglish: "Portuguese (Brazil)",
  51. isRTL: false,
  52. defaults: {
  53. recordtext: "Ver {0} - {1} de {2}",
  54. emptyrecords: "Nenhum registro para visualizar",
  55. loadtext: "Carregando...",
  56. pgtext: "Página {0} de {1}",
  57. pgfirst: "Primeira Página",
  58. pglast: "Última Página",
  59. pgnext: "Próxima Página",
  60. pgprev: "Página Anterior",
  61. pgrecs: "Registros por Página",
  62. showhide: "Exibir/Ocultar Grid",
  63. savetext: "Salvando..."
  64. },
  65. search: {
  66. caption: "Procurar...",
  67. Find: "Procurar",
  68. Reset: "Limpar",
  69. odata: [
  70. { oper: "eq", text: "igual" },
  71. { oper: "ne", text: "diferente" },
  72. { oper: "lt", text: "menor" },
  73. { oper: "le", text: "menor ou igual" },
  74. { oper: "gt", text: "maior" },
  75. { oper: "ge", text: "maior ou igual" },
  76. { oper: "bw", text: "inicia com" },
  77. { oper: "bn", text: "não inicia com" },
  78. { oper: "in", text: "está em" },
  79. { oper: "ni", text: "não está em" },
  80. { oper: "ew", text: "termina com" },
  81. { oper: "en", text: "não termina com" },
  82. { oper: "cn", text: "contém" },
  83. { oper: "nc", text: "não contém" },
  84. { oper: "nu", text: "nulo" },
  85. { oper: "nn", text: "não nulo" }
  86. ],
  87. groupOps: [
  88. { op: "AND", text: "todos" },
  89. { op: "OR", text: "qualquer um" }
  90. ],
  91. addGroupTitle: "Add subgroup",
  92. deleteGroupTitle: "Delete group",
  93. addRuleTitle: "Add rule",
  94. deleteRuleTitle: "Delete rule",
  95. operandTitle: "Clique para escolher a operação de pesquisa.",
  96. resetTitle: "Limpar valor da pesquisa"
  97. },
  98. edit: {
  99. addCaption: "Incluir",
  100. editCaption: "Alterar",
  101. bSubmit: "Enviar",
  102. bCancel: "Cancelar",
  103. bClose: "Fechar",
  104. saveData: "Os dados foram alterados! Salvar alterações?",
  105. bYes: "Sim",
  106. bNo: "Não",
  107. bExit: "Cancelar",
  108. msg: {
  109. required: "Campo obrigatório",
  110. number: "Por favor, informe um número válido",
  111. minValue: "valor deve ser igual ou maior que ",
  112. maxValue: "valor deve ser menor ou igual a",
  113. email: "este e-mail não é válido",
  114. integer: "Por favor, informe um valor inteiro",
  115. date: "Por favor, informe uma data válida",
  116. url: "não é uma URL válida. Prefixo obrigatório ('http://' or 'https://')",
  117. nodefined: " não está definido!",
  118. novalue: " um valor de retorno é obrigatório!",
  119. customarray: "Função customizada deve retornar um array!",
  120. customfcheck: "Função customizada deve estar presente em caso de validação customizada!"
  121. }
  122. },
  123. view: {
  124. caption: "Ver Registro",
  125. bClose: "Fechar"
  126. },
  127. del: {
  128. caption: "Apagar",
  129. msg: "Apagar registro(s) selecionado(s)?",
  130. bSubmit: "Apagar",
  131. bCancel: "Cancelar"
  132. },
  133. nav: {
  134. edittext: "",
  135. edittitle: "Alterar registro selecionado",
  136. addtext: "",
  137. addtitle: "Incluir novo registro",
  138. deltext: "",
  139. deltitle: "Apagar registro selecionado",
  140. searchtext: "",
  141. searchtitle: "Procurar registros",
  142. refreshtext: "",
  143. refreshtitle: "Recarregar tabela",
  144. alertcap: "Aviso",
  145. alerttext: "Por favor, selecione um registro",
  146. viewtext: "",
  147. viewtitle: "Ver linha selecionada",
  148. savetext: "",
  149. savetitle: "Salvar linha",
  150. canceltext: "",
  151. canceltitle: "Cancelar edição da linha"
  152. },
  153. col: {
  154. caption: "Mostrar/Esconder Colunas",
  155. bSubmit: "Enviar",
  156. bCancel: "Cancelar"
  157. },
  158. errors: {
  159. errcap: "Erro",
  160. nourl: "Nenhuma URL definida",
  161. norecords: "Sem registros para exibir",
  162. model: "Comprimento de colNames <> colModel!"
  163. },
  164. formatter: {
  165. integer: { thousandsSeparator: " ", defaultValue: "0" },
  166. number: { decimalSeparator: ",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "0,00" },
  167. currency: { decimalSeparator: ",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "R$ ", suffix: "", defaultValue: "0,00" },
  168. date: {
  169. dayNames: [
  170. "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb",
  171. "Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"
  172. ],
  173. monthNames: [
  174. "Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez",
  175. "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
  176. ],
  177. AmPm: ["am", "pm", "AM", "PM"],
  178. S: function (j) {
  179. return j < 11 || j > 13 ? ["º", "º", "º", "º"][Math.min((j - 1) % 10, 3)] : "º";
  180. },
  181. srcformat: "Y-m-d",
  182. newformat: "d/m/Y",
  183. masks: {
  184. ShortDate: "n/j/Y",
  185. LongDate: "l, F d, Y",
  186. FullDateTime: "l, F d, Y g:i:s A",
  187. MonthDay: "F d",
  188. ShortTime: "g:i A",
  189. LongTime: "g:i:s A",
  190. YearMonth: "F, Y"
  191. }
  192. }
  193. }
  194. };
  195. $.jgrid = $.jgrid || {};
  196. $.extend(true, $.jgrid, {
  197. defaults: {
  198. locale: "pt-BR"
  199. },
  200. locales: {
  201. // In general the property name is free, but it's recommended to use the names based on
  202. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  203. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  204. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  205. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  206. "pt-BR": locInfo
  207. }
  208. });
  209. }));