ext-lang-pt.js 9.0 KB

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