ext-locale-pt_PT.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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. if (Ext.Date) {
  8. Ext.Date.monthNames = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
  9. Ext.Date.defaultFormat = 'Y/m/d';
  10. Ext.Date.defaultTimeFormat = 'H:i';
  11. Ext.Date.getShortMonthName = function(month) {
  12. return Ext.Date.monthNames[month].substring(0, 3);
  13. };
  14. Ext.Date.monthNumbers = {
  15. Jan: 0,
  16. Feb: 1,
  17. Mar: 2,
  18. Apr: 3,
  19. May: 4,
  20. Jun: 5,
  21. Jul: 6,
  22. Aug: 7,
  23. Sep: 8,
  24. Oct: 9,
  25. Nov: 10,
  26. Dec: 11
  27. };
  28. Ext.Date.getMonthNumber = function(name) {
  29. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  30. };
  31. Ext.Date.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
  32. Ext.Date.getShortDayName = function(day) {
  33. return Ext.Date.dayNames[day].substring(0, 3);
  34. };
  35. }
  36. if (Ext.util && Ext.util.Format) {
  37. Ext.apply(Ext.util.Format, {
  38. thousandSeparator: '.',
  39. decimalSeparator: ',',
  40. currencySign: '\u20ac',
  41. // Portugese Euro
  42. dateFormat: 'Y/m/d'
  43. });
  44. }
  45. });
  46. Ext.define('Ext.locale.pt_PT.Panel', {
  47. override: 'Ext.Panel',
  48. config: {
  49. standardButtons: {
  50. ok: {
  51. text: 'OK'
  52. },
  53. abort: {
  54. text: 'Abortar'
  55. },
  56. retry: {
  57. text: 'Tentar novamente'
  58. },
  59. ignore: {
  60. text: 'Ignorar'
  61. },
  62. yes: {
  63. text: 'Sim'
  64. },
  65. no: {
  66. text: 'Não'
  67. },
  68. cancel: {
  69. text: 'Cancelar'
  70. },
  71. apply: {
  72. text: 'Aplicar'
  73. },
  74. save: {
  75. text: 'Salvar'
  76. },
  77. submit: {
  78. text: 'Enviar'
  79. },
  80. help: {
  81. text: 'Ajuda'
  82. },
  83. close: {
  84. text: 'Fechar'
  85. }
  86. },
  87. closeToolText: 'Fechar Painel'
  88. }
  89. });
  90. Ext.define('Ext.locale.pt_PT.picker.Date', {
  91. override: 'Ext.picker.Date',
  92. config: {
  93. doneButton: 'Disponível',
  94. monthText: 'Mês',
  95. dayText: 'Dia',
  96. yearText: 'Ano'
  97. }
  98. });
  99. Ext.define('Ext.locale.pt_PT.picker.Picker', {
  100. override: 'Ext.picker.Picker',
  101. config: {
  102. doneButton: 'Completo',
  103. cancelButton: 'Cancelar'
  104. }
  105. });
  106. Ext.define('Ext.locale.pt_PT.panel.Date', {
  107. override: 'Ext.panel.Date',
  108. config: {
  109. nextText: 'Proximo Mês (Control+Direita)',
  110. prevText: 'Mês Anterior (Control+Esquerda)',
  111. buttons: {
  112. footerTodayButton: {
  113. text: "Hoje"
  114. }
  115. }
  116. }
  117. });
  118. Ext.define('Ext.locale.pt_PT.panel.Collapser', {
  119. override: 'Ext.panel.Collapser',
  120. config:{
  121. collapseToolText: "Recolher painel",
  122. expandToolText: "Expandir painel"
  123. }
  124. });
  125. Ext.define('Ext.locale.pt_PT.field.Field', {
  126. override: 'Ext.field.Field',
  127. config: {
  128. requiredMessage: 'Este campo é necessário',
  129. validationMessage: 'Está com formato errado'
  130. }
  131. });
  132. Ext.define('Ext.locale.pt_PT.field.Number', {
  133. override: 'Ext.field.Number',
  134. decimalsText: 'O valor máximo de decimais é {0}',
  135. minValueText: 'O valor mínimo para esse campo é {0}',
  136. maxValueText: 'O valor máximo para esse campo é {0}',
  137. badFormatMessage: 'Valor não é um número válido'
  138. });
  139. Ext.define('Ext.locale.pt_PT.field.Text', {
  140. override: 'Ext.field.Text',
  141. badFormatMessage: 'Valor não está no formato desejado',
  142. config: {
  143. requiredMessage: 'Este campo é necessário',
  144. validationMessage: 'Está com formato errado'
  145. }
  146. });
  147. Ext.define('Ext.locale.pt_PT.Dialog', {
  148. override: 'Ext.Dialog',
  149. config: {
  150. maximizeTool: {
  151. tooltip: "Maximizar para tela cheia"
  152. },
  153. restoreTool: {
  154. tooltip: "Restaurar para o tamanho original"
  155. }
  156. }
  157. });
  158. Ext.define("Ext.locale.pt_PT.field.FileButton", {
  159. override: "Ext.field.FileButton",
  160. config:{
  161. text: 'Squeaky toy...'
  162. }
  163. });
  164. Ext.define('Ext.locale.pt_PT.dataview.List', {
  165. override: 'Ext.dataview.List',
  166. config:{
  167. loadingText: 'Carregando...'
  168. }
  169. });
  170. Ext.define('Ext.locale.pt_PT.dataview.EmptyText', {
  171. override: 'Ext.dataview.EmptyText',
  172. config: {
  173. html: 'Sem dados para mostrar'
  174. }
  175. });
  176. Ext.define('Ext.locale.pt_PT.dataview.Abstract', {
  177. override: 'Ext.dataview.Abstract',
  178. config:{
  179. loadingText: 'Carregando...'
  180. }
  181. });
  182. Ext.define("Ext.locale.pt_PT.LoadMask", {
  183. override: "Ext.LoadMask",
  184. config:{
  185. message: 'Carregando...'
  186. }
  187. });
  188. Ext.define('Ext.locale.pt_PT.dataview.plugin.ListPaging', {
  189. override: 'Ext.dataview.plugin.ListPaging',
  190. config: {
  191. loadMoreText: 'Carregar mais...',
  192. noMoreRecordsText: 'Sem mais dados'
  193. }
  194. });
  195. Ext.define("Ext.locale.pt_PT.dataview.DataView", {
  196. override: "Ext.dataview.DataView",
  197. config:{
  198. emptyText: ""
  199. }
  200. });
  201. Ext.define('Ext.locale.pt_PT.field.Date', {
  202. override: 'Ext.field.Date',
  203. minDateMessage: 'A data neste campo deve ser igual ou posterior à {0}',
  204. maxDateMessage: 'A data neste campo deve ser igual ou anterior à {0}'
  205. });
  206. Ext.define("Ext.locale.pt_PT.grid.menu.SortAsc", {
  207. override: "Ext.grid.menu.SortAsc",
  208. config:{
  209. text: "Ordenar crescente"
  210. }
  211. });
  212. Ext.define("Ext.locale.pt_PT.grid.menu.SortDesc", {
  213. override: "Ext.grid.menu.SortDesc",
  214. config:{
  215. text: "Ordenar decrescente"
  216. }
  217. });
  218. Ext.define("Ext.locale.pt_PT.grid.menu.GroupByThis", {
  219. override: "Ext.grid.menu.GroupByThis",
  220. config:{
  221. text: "Agrupar por este campo"
  222. }
  223. });
  224. Ext.define("Ext.locale.pt_PT.grid.menu.ShowInGroups", {
  225. override: "Ext.grid.menu.ShowInGroups",
  226. config:{
  227. text: "Mostrar em grupos"
  228. }
  229. });
  230. Ext.define("Ext.locale.pt_PT.grid.menu.Columns", {
  231. override: "Ext.grid.menu.Columns",
  232. config:{
  233. text: "Colunas"
  234. }
  235. });
  236. Ext.define('Ext.locale.pt_PT.data.validator.Presence',{
  237. override: 'Ext.data.validator.Presence',
  238. config:{
  239. message: 'Este campo é necessário'
  240. }
  241. });
  242. Ext.define('Ext.locale.pt_PT.data.validator.Format', {
  243. override: 'Ext.data.validator.Format',
  244. config:{
  245. message: 'Está com formato errado'
  246. }
  247. });
  248. Ext.define('Ext.locale.pt_PT.data.validator.Email', {
  249. override: 'Ext.data.validator.Email',
  250. config:{
  251. message: 'Não é um e-mail válido'
  252. }
  253. });
  254. Ext.define('Ext.locale.pt_PT.data.validator.Phone', {
  255. override: 'Ext.data.validator.Phone',
  256. config:{
  257. message: 'Não é um telefone válido'
  258. }
  259. });
  260. Ext.define('Ext.locale.pt_PT.data.validator.Number', {
  261. override: 'Ext.data.validator.Number',
  262. config:{
  263. message: 'Não é um número válido'
  264. }
  265. });
  266. Ext.define('Ext.locale.pt_PT.data.validator.Url', {
  267. override: 'Ext.data.validator.Url',
  268. config:{
  269. message: 'Não é uma URL válida'
  270. }
  271. });
  272. Ext.define('Ext.locale.pt_PT.data.validator.Range', {
  273. override: 'Ext.data.validator.Range',
  274. config: {
  275. nanMessage: 'Deve ser numérico',
  276. minOnlyMessage: 'Deve ser pelo menos {0}',
  277. maxOnlyMessage: 'Não deve ser mais que {0}',
  278. bothMessage: 'Deve estar entre {0} e {1}'
  279. }
  280. });
  281. Ext.define('Ext.locale.pt_PT.data.validator.Bound', {
  282. override: 'Ext.data.validator.Bound',
  283. config: {
  284. emptyMessage: 'Deve estar presente',
  285. minOnlyMessage: 'O valor deve ser maior do que {0}',
  286. maxOnlyMessage: 'O valor deve ser inferior a {0}',
  287. bothMessage: 'O valor deve estar entre {0} e {1}'
  288. }
  289. });
  290. Ext.define('Ext.locale.pt_PT.data.validator.CIDRv4', {
  291. override: 'Ext.data.validator.CIDRv4',
  292. config: {
  293. message: 'Não é um bloco CIDR válido'
  294. }
  295. });
  296. Ext.define('Ext.locale.pt_PT.data.validator.CIDRv6', {
  297. override: 'Ext.data.validator.CIDRv6',
  298. config: {
  299. message: 'Não é um bloco CIDR válido'
  300. }
  301. });
  302. Ext.define('Ext.locale.pt_PT.data.validator.Currency', {
  303. override: 'Ext.data.validator.Currency',
  304. config: {
  305. message: 'Não é um valor monetário válido'
  306. }
  307. });
  308. Ext.define('Ext.locale.pt_PT.data.validator.DateTime', {
  309. override: 'Ext.data.validator.DateTime',
  310. config: {
  311. message: 'Não é uma data e hora válida'
  312. }
  313. });
  314. Ext.define('Ext.locale.pt_PT.data.validator.Exclusion', {
  315. override: 'Ext.data.validator.Exclusion',
  316. config: {
  317. message: 'É um valor que foi excluído'
  318. }
  319. });
  320. Ext.define('Ext.locale.pt_PT.data.validator.IPAddress', {
  321. override: 'Ext.data.validator.IPAddress',
  322. config: {
  323. message: 'Não é um endereço IP válido'
  324. }
  325. });
  326. Ext.define('Ext.locale.pt_PT.data.validator.Inclusion', {
  327. override: 'Ext.data.validator.Inclusion',
  328. config: {
  329. message: 'Não está na lista de valores válidos'
  330. }
  331. });
  332. Ext.define('Ext.locale.pt_PT.data.validator.Time', {
  333. override: 'Ext.data.validator.Time',
  334. config: {
  335. message: 'Não é um momento válido'
  336. }
  337. });
  338. Ext.define('Ext.locale.pt_PT.data.validator.Date', {
  339. override: 'Ext.data.validator.Date',
  340. config: {
  341. message: "Não é uma data válida"
  342. }
  343. });
  344. Ext.define('Ext.locale.pt_PT.data.validator.Length', {
  345. override: 'Ext.data.validator.Length',
  346. config:{
  347. minOnlyMessage: 'Tamanho deve ser pelo menos {0}',
  348. maxOnlyMessage: 'Tamanho deve ser menor que {0}',
  349. bothMessage: 'Tamanho deve estar entre {0} e {1}'
  350. }
  351. });
  352. // This is needed until we can refactor all of the locales into individual files
  353. Ext.define("Ext.locale.pt_PT.Component", {
  354. override: "Ext.Component"
  355. });