ext-locale-pt.js 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. /**
  2. * Portuguese/Brazil Translation by Weber Souza
  3. * 08 April 2007
  4. * Updated by Allan Brazute Alves (EthraZa)
  5. * 06 September 2007
  6. * Adapted to European Portuguese by Helder Batista (hbatista)
  7. * 31 January 2008
  8. */
  9. Ext.onReady(function() {
  10. if (Ext.Date) {
  11. Ext.Date.monthNames = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
  12. Ext.Date.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
  13. }
  14. if (Ext.util && Ext.util.Format) {
  15. Ext.apply(Ext.util.Format, {
  16. thousandSeparator: '.',
  17. decimalSeparator: ',',
  18. currencySign: '\u20ac',
  19. // Portugese Euro
  20. dateFormat: 'd/m/Y'
  21. });
  22. }
  23. });
  24. Ext.define("Ext.locale.pt.view.View", {
  25. override: "Ext.view.View",
  26. emptyText: ""
  27. });
  28. Ext.define("Ext.locale.pt.grid.plugin.DragDrop", {
  29. override: "Ext.grid.plugin.DragDrop",
  30. dragText: "{0} linha(s) seleccionada(s)"
  31. });
  32. Ext.define("Ext.locale.pt.tab.Tab", {
  33. override: "Ext.tab.Tab",
  34. closeText: "Fechar"
  35. });
  36. Ext.define("Ext.locale.pt.form.field.Base", {
  37. override: "Ext.form.field.Base",
  38. invalidText: "O valor para este campo é inválido"
  39. });
  40. // changing the msg text below will affect the LoadMask
  41. Ext.define("Ext.locale.pt.view.AbstractView", {
  42. override: "Ext.view.AbstractView",
  43. loadingText: "Carregando..."
  44. });
  45. Ext.define("Ext.locale.pt.picker.Date", {
  46. override: "Ext.picker.Date",
  47. todayText: "Hoje",
  48. minText: "Esta data é anterior à menor data",
  49. maxText: "Esta data é posterior à maior data",
  50. disabledDaysText: "",
  51. disabledDatesText: "",
  52. nextText: 'Próximo Mês (Control+Direita)',
  53. prevText: 'Mês Anterior (Control+Esquerda)',
  54. monthYearText: 'Escolha um Mês (Control+Cima/Baixo para mover entre os anos)',
  55. todayTip: "{0} (Espaço)",
  56. format: "d/m/Y",
  57. startDay: 0
  58. });
  59. Ext.define("Ext.locale.pt.picker.Month", {
  60. override: "Ext.picker.Month",
  61. okText: " OK ",
  62. cancelText: "Cancelar"
  63. });
  64. Ext.define("Ext.locale.pt.toolbar.Paging", {
  65. override: "Ext.PagingToolbar",
  66. beforePageText: "Página",
  67. afterPageText: "de {0}",
  68. firstText: "Primeira Página",
  69. prevText: "Página Anterior",
  70. nextText: "Próxima Página",
  71. lastText: "Última Página",
  72. refreshText: "Atualizar",
  73. displayMsg: "<b>{0} &agrave; {1} de {2} registo(s)</b>",
  74. emptyMsg: 'Sem registos para exibir'
  75. });
  76. Ext.define("Ext.locale.pt.form.field.Text", {
  77. override: "Ext.form.field.Text",
  78. minLengthText: "O tamanho m&iacute;nimo para este campo &eacute; {0}",
  79. maxLengthText: "O tamanho m&aacute;ximo para este campo &eacute; {0}",
  80. blankText: "Este campo &eacute; obrigat&oacute;rio.",
  81. regexText: "",
  82. emptyText: null
  83. });
  84. Ext.define("Ext.locale.pt.form.field.Number", {
  85. override: "Ext.form.field.Number",
  86. minText: "O valor m&iacute;nimo para este campo &eacute; {0}",
  87. maxText: "O valor m&aacute;ximo para este campo &eacute; {0}",
  88. nanText: "{0} n&atilde;o &eacute; um n&uacute;mero v&aacute;lido"
  89. });
  90. Ext.define("Ext.locale.pt.form.field.Date", {
  91. override: "Ext.form.field.Date",
  92. disabledDaysText: "Desabilitado",
  93. disabledDatesText: "Desabilitado",
  94. minText: "A data deste campo deve ser posterior a {0}",
  95. maxText: "A data deste campo deve ser anterior a {0}",
  96. invalidText: "{0} n&atilde;o &eacute; uma data v&aacute;lida - deve ser usado o formato {1}",
  97. format: "d/m/Y"
  98. });
  99. Ext.define("Ext.locale.pt.form.field.ComboBox", {
  100. override: "Ext.form.field.ComboBox",
  101. valueNotFoundText: undefined
  102. }, function() {
  103. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  104. loadingText: "Carregando..."
  105. });
  106. });
  107. Ext.define("Ext.locale.pt.form.field.VTypes", {
  108. override: "Ext.form.field.VTypes",
  109. emailText: 'Este campo deve ser um endere&ccedil;o de e-mail v&aacute;lido, no formato "utilizador@dominio.com"',
  110. urlText: 'Este campo deve ser um URL no formato "http:/' + '/www.dominio.com"',
  111. alphaText: 'Este campo deve conter apenas letras e _',
  112. alphanumText: 'Este campo deve conter apenas letras, n&uacute;meros e _'
  113. });
  114. Ext.define("Ext.locale.pt.form.field.HtmlEditor", {
  115. override: "Ext.form.field.HtmlEditor",
  116. createLinkText: 'Por favor, entre com o URL do link:'
  117. }, function() {
  118. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  119. buttonTips: {
  120. bold: {
  121. title: 'Negrito (Ctrl+B)',
  122. text: 'Deixa o texto seleccionado em negrito.',
  123. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  124. },
  125. italic: {
  126. title: 'Italico (Ctrl+I)',
  127. text: 'Deixa o texto seleccionado em italico.',
  128. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  129. },
  130. underline: {
  131. title: 'Sublinhado (Ctrl+U)',
  132. text: 'Sublinha o texto seleccionado.',
  133. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  134. },
  135. increasefontsize: {
  136. title: 'Aumentar Texto',
  137. text: 'Aumenta o tamanho da fonte.',
  138. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  139. },
  140. decreasefontsize: {
  141. title: 'Diminuir Texto',
  142. text: 'Diminui o tamanho da fonte.',
  143. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  144. },
  145. backcolor: {
  146. title: 'Cor de Fundo',
  147. text: 'Muda a cor do fundo do texto seleccionado.',
  148. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  149. },
  150. forecolor: {
  151. title: 'Cor da Fonte',
  152. text: 'Muda a cor do texto seleccionado.',
  153. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  154. },
  155. justifyleft: {
  156. title: 'Alinhar &agrave; Esquerda',
  157. text: 'Alinha o texto &agrave; esquerda.',
  158. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  159. },
  160. justifycenter: {
  161. title: 'Centrar Texto',
  162. text: 'Centra o texto no editor.',
  163. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  164. },
  165. justifyright: {
  166. title: 'Alinhar &agrave; Direita',
  167. text: 'Alinha o texto &agrave; direita.',
  168. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  169. },
  170. insertunorderedlist: {
  171. title: 'Lista com Marcadores',
  172. text: 'Inicia uma lista com marcadores.',
  173. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  174. },
  175. insertorderedlist: {
  176. title: 'Lista Numerada',
  177. text: 'Inicia uma lista numerada.',
  178. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  179. },
  180. createlink: {
  181. title: 'Hyperliga&ccedil;&atilde;o',
  182. text: 'Transforma o texto selecionado num hyperlink.',
  183. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  184. },
  185. sourceedit: {
  186. title: 'Editar Fonte',
  187. text: 'Troca para o modo de edi&ccedil;&atilde;o de c&oacute;digo fonte.',
  188. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  189. }
  190. }
  191. });
  192. });
  193. Ext.define("Ext.locale.pt.grid.header.Container", {
  194. override: "Ext.grid.header.Container",
  195. sortAscText: "Ordem Ascendente",
  196. sortDescText: "Ordem Descendente",
  197. lockText: "Bloquear Coluna",
  198. unlockText: "Desbloquear Coluna",
  199. columnsText: "Colunas"
  200. });
  201. Ext.define("Ext.locale.pt.grid.PropertyColumnModel", {
  202. override: "Ext.grid.PropertyColumnModel",
  203. nameText: "Nome",
  204. valueText: "Valor",
  205. dateFormat: "d/m/Y"
  206. });
  207. Ext.define("Ext.locale.pt.window.MessageBox", {
  208. override: "Ext.window.MessageBox",
  209. buttonText: {
  210. ok: "OK",
  211. cancel: "Cancelar",
  212. yes: "Sim",
  213. no: "N&atilde;o"
  214. }
  215. });
  216. // This is needed until we can refactor all of the locales into individual files
  217. Ext.define("Ext.locale.pt.Component", {
  218. override: "Ext.Component"
  219. });