ext-lang-pt_BR.js 9.7 KB

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