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