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