ext-lang-pt_PT.js 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. /**
  2. * Portuguese/Portugal (pt_PT) Translation
  3. * by Nuno Franco da Costa - francodacosta.com
  4. * translated from ext-lang-en.js
  5. */
  6. Ext.onReady(function() {
  7. var cm = Ext.ClassManager,
  8. exists = Ext.Function.bind(cm.get, cm);
  9. if (Ext.Updater) {
  10. Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">A carregar...</div>';
  11. }
  12. Ext.define("Ext.locale.pt_PT.view.View", {
  13. override: "Ext.view.View",
  14. emptyText: ""
  15. });
  16. Ext.define("Ext.locale.pt_PT.grid.Panel", {
  17. override: "Ext.grid.Panel",
  18. ddText: "{0} linha(s) seleccionada(s)"
  19. });
  20. Ext.define("Ext.locale.pt_PT.TabPanelItem", {
  21. override: "Ext.TabPanelItem",
  22. closeText: "Fechar aba"
  23. });
  24. // changing the msg text below will affect the LoadMask
  25. Ext.define("Ext.locale.pt_PT.view.AbstractView", {
  26. override: "Ext.view.AbstractView",
  27. msg: "A carregar..."
  28. });
  29. if (Ext.Date) {
  30. Ext.Date.monthNames = ["Janeiro", "Fevereiro", "Mar&ccedil;o", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
  31. Ext.Date.getShortMonthName = function(month) {
  32. return Ext.Date.monthNames[month].substring(0, 3);
  33. };
  34. Ext.Date.monthNumbers = {
  35. Jan: 0,
  36. Feb: 1,
  37. Mar: 2,
  38. Apr: 3,
  39. May: 4,
  40. Jun: 5,
  41. Jul: 6,
  42. Aug: 7,
  43. Sep: 8,
  44. Oct: 9,
  45. Nov: 10,
  46. Dec: 11
  47. };
  48. Ext.Date.getMonthNumber = function(name) {
  49. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  50. };
  51. Ext.Date.dayNames = ["Domingo", "Segunda", "Ter&ccedil;a", "Quarta", "Quinta", "Sexta", "Sabado"];
  52. Ext.Date.getShortDayName = function(day) {
  53. return Ext.Date.dayNames[day].substring(0, 3);
  54. };
  55. }
  56. if (Ext.MessageBox) {
  57. Ext.MessageBox.buttonText = {
  58. ok: "OK",
  59. cancel: "Cancelar",
  60. yes: "Sim",
  61. no: "N&atilde;o"
  62. };
  63. }
  64. if (exists('Ext.util.Format')) {
  65. Ext.apply(Ext.util.Format, {
  66. thousandSeparator: '.',
  67. decimalSeparator: ',',
  68. currencySign: '\u20ac',
  69. // Portugese Euro
  70. dateFormat: 'Y/m/d'
  71. });
  72. }
  73. Ext.define("Ext.locale.pt_PT.picker.Date", {
  74. override: "Ext.picker.Date",
  75. todayText: "Hoje",
  76. minText: "A data &eacute; anterior ao m&iacute;nimo definido",
  77. maxText: "A data &eacute; posterior ao m&aacute;ximo definido",
  78. disabledDaysText: "",
  79. disabledDatesText: "",
  80. monthNames: Ext.Date.monthNames,
  81. dayNames: Ext.Date.dayNames,
  82. nextText: 'M&ecirc;s Seguinte (Control+Right)',
  83. prevText: 'M&ecirc;s Anterior (Control+Left)',
  84. monthYearText: 'Escolha um m&ecirc;s (Control+Up/Down ava&ccedil;ar/recuar anos)',
  85. todayTip: "{0} (barra de espa&ccedil;o)",
  86. format: "y/m/d",
  87. startDay: 0
  88. });
  89. Ext.define("Ext.locale.pt_PT.picker.Month", {
  90. override: "Ext.picker.Month",
  91. okText: "&#160;OK&#160;",
  92. cancelText: "Cancelar"
  93. });
  94. Ext.define("Ext.locale.pt_PT.toolbar.Paging", {
  95. override: "Ext.PagingToolbar",
  96. beforePageText: "P&aacute;gina",
  97. afterPageText: "de {0}",
  98. firstText: "Primeira P&aacute;gina",
  99. prevText: "P&aacute;gina Anterior",
  100. nextText: "Pr%oacute;xima P&aacute;gina",
  101. lastText: "&Uacute;ltima P&aacute;gina",
  102. refreshText: "Recaregar",
  103. displayMsg: "A mostrar {0} - {1} de {2}",
  104. emptyMsg: 'Sem dados para mostrar'
  105. });
  106. Ext.define("Ext.locale.pt_PT.form.field.Base", {
  107. override: "Ext.form.field.Base",
  108. invalidText: "O valor deste campo &eacute; inv&aacute;lido"
  109. });
  110. Ext.define("Ext.locale.pt_PT.form.field.Text", {
  111. override: "Ext.form.field.Text",
  112. minLengthText: "O comprimento m&iacute;nimo deste campo &eaute; {0}",
  113. maxLengthText: "O comprimento m&aacute;ximo deste campo &eaute; {0}",
  114. blankText: "Este campo &eacute; de preenchimento obrigat&oacute;rio",
  115. regexText: "",
  116. emptyText: null
  117. });
  118. Ext.define("Ext.locale.pt_PT.form.field.Number", {
  119. override: "Ext.form.field.Number",
  120. minText: "O valor m&iacute;nimo deste campo &eaute; {0}",
  121. maxText: "O valor m&aacute;ximo deste campo &eaute; {0}",
  122. nanText: "{0} n&atilde;o &eacute; um numero"
  123. });
  124. Ext.define("Ext.locale.pt_PT.form.field.Date", {
  125. override: "Ext.form.field.Date",
  126. disabledDaysText: "Desabilitado",
  127. disabledDatesText: "Desabilitado",
  128. minText: "A data deste campo deve ser posterior a {0}",
  129. maxText: "A data deste campo deve ser anterior a {0}",
  130. invalidText: "{0} n&atilde;o &eacute; uma data v&aacute;lida - deve estar no seguinte formato{1}",
  131. format: "y/m/d",
  132. altFormats: "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
  133. });
  134. Ext.define("Ext.locale.pt_PT.form.field.ComboBox", {
  135. override: "Ext.form.field.ComboBox",
  136. valueNotFoundText: undefined
  137. }, function() {
  138. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  139. loadingText: "A Carregar..."
  140. });
  141. });
  142. if (exists('Ext.form.field.VTypes')) {
  143. Ext.apply(Ext.form.field.VTypes, {
  144. emailText: 'Este campo deve ser um endere&ccedil;o de email no formato "utilizador@dominio.com"',
  145. urlText: 'Este campo deve ser um URL no formato "http:/' + '/www.dominio.com"',
  146. alphaText: 'Este campo deve conter apenas letras e _',
  147. alphanumText: 'Este campo deve conter apenas letras, n&uacute;meros e _'
  148. });
  149. }
  150. Ext.define("Ext.locale.pt_PT.form.field.HtmlEditor", {
  151. override: "Ext.form.field.HtmlEditor",
  152. createLinkText: 'Indique o endere&ccedil;o do link:'
  153. }, function() {
  154. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  155. buttonTips: {
  156. bold: {
  157. title: 'Negrito (Ctrl+B)',
  158. text: 'Transforma o texto em Negrito.',
  159. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  160. },
  161. italic: {
  162. title: 'It&aacute;lico (Ctrl+I)',
  163. text: 'Transforma o texto em it&aacute;lico.',
  164. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  165. },
  166. underline: {
  167. title: 'Sublinhar (Ctrl+U)',
  168. text: 'Sublinha o texto.',
  169. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  170. },
  171. increasefontsize: {
  172. title: 'Aumentar texto',
  173. text: 'Aumenta o tamanho da fonte.',
  174. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  175. },
  176. decreasefontsize: {
  177. title: 'Encolher texto',
  178. text: 'Diminui o tamanho da fonte.',
  179. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  180. },
  181. backcolor: {
  182. title: 'C&ocirc;r de fundo do texto',
  183. text: 'Altera a c&ocirc;r de fundo do texto.',
  184. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  185. },
  186. forecolor: {
  187. title: 'C&ocirc;r do texo',
  188. text: 'Altera a a&ocirc;r do texo.',
  189. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  190. },
  191. justifyleft: {
  192. title: 'ALinhar &agrave; esquerda',
  193. text: 'ALinha o texto &agrave; esquerda.',
  194. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  195. },
  196. justifycenter: {
  197. title: 'Centrar',
  198. text: 'Centra o texto.',
  199. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  200. },
  201. justifyright: {
  202. title: 'ALinhar &agrave; direita',
  203. text: 'ALinha o texto &agravce; direita.',
  204. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  205. },
  206. insertunorderedlist: {
  207. title: 'Lista',
  208. text: 'Inicia uma lista.',
  209. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  210. },
  211. insertorderedlist: {
  212. title: 'Lista Numerada',
  213. text: 'Inicia uma lista numerada.',
  214. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  215. },
  216. createlink: {
  217. title: 'Hyperlink',
  218. text: 'Transforma o texto num hyperlink.',
  219. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  220. },
  221. sourceedit: {
  222. title: 'Editar c&oacute;digo',
  223. text: 'Alterar para o modo de edi&ccedil;&atilde;o de c&oacute;digo.',
  224. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  225. }
  226. }
  227. });
  228. });
  229. Ext.define("Ext.locale.pt_PT.form.Basic", {
  230. override: "Ext.form.Basic",
  231. waitTitle: "Por favor espere..."
  232. });
  233. Ext.define("Ext.locale.pt_PT.grid.header.Container", {
  234. override: "Ext.grid.header.Container",
  235. sortAscText: "Ordena&ccedil;&atilde;o Crescente",
  236. sortDescText: "Ordena&ccedil;&atilde;o Decrescente",
  237. lockText: "Fixar Coluna",
  238. unlockText: "Libertar Coluna",
  239. columnsText: "Colunas"
  240. });
  241. Ext.define("Ext.locale.pt_PT.grid.GroupingFeature", {
  242. override: "Ext.grid.GroupingFeature",
  243. emptyGroupText: '(Nenhum)',
  244. groupByText: 'Agrupar por este campo',
  245. showGroupsText: 'Mostrar nos Grupos'
  246. });
  247. Ext.define("Ext.locale.pt_PT.grid.PropertyColumnModel", {
  248. override: "Ext.grid.PropertyColumnModel",
  249. nameText: "Nome",
  250. valueText: "Valor",
  251. dateFormat: "Y/j/m"
  252. });
  253. });