1 | /* |
---|
2 | * Portuguese/Brazil Translation by Weber Souza |
---|
3 | * 08 April 2007 |
---|
4 | * Updated by Allan Brazute Alves (EthraZa) |
---|
5 | * 06 September 2007 |
---|
6 | * Adapted to European Portuguese by Helder Batista (hbatista) |
---|
7 | * 31 January 2008 |
---|
8 | */ |
---|
9 | |
---|
10 | Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>'; |
---|
11 | |
---|
12 | if(Ext.View){ |
---|
13 | Ext.View.prototype.emptyText = ""; |
---|
14 | } |
---|
15 | |
---|
16 | if(Ext.grid.GridPanel){ |
---|
17 | Ext.grid.GridPanel.prototype.ddText = "{0} linha(s) seleccionada(s)"; |
---|
18 | } |
---|
19 | |
---|
20 | if(Ext.TabPanelItem){ |
---|
21 | Ext.TabPanelItem.prototype.closeText = "Fechar"; |
---|
22 | } |
---|
23 | |
---|
24 | if(Ext.form.Field){ |
---|
25 | Ext.form.Field.prototype.invalidText = "O valor para este campo é inválido"; |
---|
26 | } |
---|
27 | |
---|
28 | if(Ext.LoadMask){ |
---|
29 | Ext.LoadMask.prototype.msg = "Carregando..."; |
---|
30 | } |
---|
31 | |
---|
32 | Date.monthNames = [ |
---|
33 | "Janeiro", |
---|
34 | "Fevereiro", |
---|
35 | "Março", |
---|
36 | "Abril", |
---|
37 | "Maio", |
---|
38 | "Junho", |
---|
39 | "Julho", |
---|
40 | "Agosto", |
---|
41 | "Setembro", |
---|
42 | "Outubro", |
---|
43 | "Novembro", |
---|
44 | "Dezembro" |
---|
45 | ]; |
---|
46 | |
---|
47 | Date.dayNames = [ |
---|
48 | "Domingo", |
---|
49 | "Segunda", |
---|
50 | "Terça", |
---|
51 | "Quarta", |
---|
52 | "Quinta", |
---|
53 | "Sexta", |
---|
54 | "Sábado" |
---|
55 | ]; |
---|
56 | |
---|
57 | if(Ext.MessageBox){ |
---|
58 | Ext.MessageBox.buttonText = { |
---|
59 | ok : "OK", |
---|
60 | cancel : "Cancelar", |
---|
61 | yes : "Sim", |
---|
62 | no : "Não" |
---|
63 | }; |
---|
64 | } |
---|
65 | |
---|
66 | if(Ext.util.Format){ |
---|
67 | Ext.util.Format.date = function(v, format){ |
---|
68 | if(!v) return ""; |
---|
69 | if(!(v instanceof Date)) v = new Date(Date.parse(v)); |
---|
70 | return v.dateFormat(format || "d/m/Y"); |
---|
71 | }; |
---|
72 | } |
---|
73 | |
---|
74 | if(Ext.DatePicker){ |
---|
75 | Ext.apply(Ext.DatePicker.prototype, { |
---|
76 | todayText : "Hoje", |
---|
77 | minText : "Esta data é anterior à menor data", |
---|
78 | maxText : "Esta data é posterior à maior data", |
---|
79 | disabledDaysText : "", |
---|
80 | disabledDatesText : "", |
---|
81 | monthNames : Date.monthNames, |
---|
82 | dayNames : Date.dayNames, |
---|
83 | nextText : 'Próximo Mês (Control+Direita)', |
---|
84 | prevText : 'Mês Anterior (Control+Esquerda)', |
---|
85 | monthYearText : 'Escolha um Mês (Control+Cima/Baixo para mover entre os anos)', |
---|
86 | todayTip : "{0} (Espaço)", |
---|
87 | format : "d/m/Y", |
---|
88 | okText : " OK ", |
---|
89 | cancelText : "Cancelar", |
---|
90 | startDay : 0 |
---|
91 | }); |
---|
92 | } |
---|
93 | |
---|
94 | if(Ext.PagingToolbar){ |
---|
95 | Ext.apply(Ext.PagingToolbar.prototype, { |
---|
96 | beforePageText : "Página", |
---|
97 | afterPageText : "de {0}", |
---|
98 | firstText : "Primeira Página", |
---|
99 | prevText : "Página Anterior", |
---|
100 | nextText : "Próxima Página", |
---|
101 | lastText : "Última Página", |
---|
102 | refreshText : "Atualizar", |
---|
103 | displayMsg : "<b>{0} à {1} de {2} registo(s)</b>", |
---|
104 | emptyMsg : 'Sem registos para exibir' |
---|
105 | }); |
---|
106 | } |
---|
107 | |
---|
108 | if(Ext.form.TextField){ |
---|
109 | Ext.apply(Ext.form.TextField.prototype, { |
---|
110 | minLengthText : "O tamanho mínimo para este campo é {0}", |
---|
111 | maxLengthText : "O tamanho máximo para este campo é {0}", |
---|
112 | blankText : "Este campo é obrigatório.", |
---|
113 | regexText : "", |
---|
114 | emptyText : null |
---|
115 | }); |
---|
116 | } |
---|
117 | |
---|
118 | if(Ext.form.NumberField){ |
---|
119 | Ext.apply(Ext.form.NumberField.prototype, { |
---|
120 | minText : "O valor mínimo para este campo é {0}", |
---|
121 | maxText : "O valor máximo para este campo é {0}", |
---|
122 | nanText : "{0} não é um número válido" |
---|
123 | }); |
---|
124 | } |
---|
125 | |
---|
126 | if(Ext.form.DateField){ |
---|
127 | Ext.apply(Ext.form.DateField.prototype, { |
---|
128 | disabledDaysText : "Desabilitado", |
---|
129 | disabledDatesText : "Desabilitado", |
---|
130 | minText : "A data deste campo deve ser posterior a {0}", |
---|
131 | maxText : "A data deste campo deve ser anterior a {0}", |
---|
132 | invalidText : "{0} não é uma data válida - deve ser usado o formato {1}", |
---|
133 | format : "d/m/Y" |
---|
134 | }); |
---|
135 | } |
---|
136 | |
---|
137 | if(Ext.form.ComboBox){ |
---|
138 | Ext.apply(Ext.form.ComboBox.prototype, { |
---|
139 | loadingText : "Carregando...", |
---|
140 | valueNotFoundText : undefined |
---|
141 | }); |
---|
142 | } |
---|
143 | |
---|
144 | if(Ext.form.VTypes){ |
---|
145 | Ext.apply(Ext.form.VTypes, { |
---|
146 | emailText : 'Este campo deve ser um endereço de e-mail válido, no formato "utilizador@dominio.com"', |
---|
147 | urlText : 'Este campo deve ser um URL no formato "http:/'+'/www.dominio.com"', |
---|
148 | alphaText : 'Este campo deve conter apenas letras e _', |
---|
149 | alphanumText : 'Este campo deve conter apenas letras, números e _' |
---|
150 | }); |
---|
151 | } |
---|
152 | |
---|
153 | if(Ext.form.HtmlEditor){ |
---|
154 | Ext.apply(Ext.form.HtmlEditor.prototype, { |
---|
155 | createLinkText : 'Por favor, entre com o URL do link:', |
---|
156 | buttonTips : { |
---|
157 | bold : { |
---|
158 | title: 'Negrito (Ctrl+B)', |
---|
159 | text: 'Deixa o texto seleccionado em negrito.', |
---|
160 | cls: 'x-html-editor-tip' |
---|
161 | }, |
---|
162 | italic : { |
---|
163 | title: 'Italico (Ctrl+I)', |
---|
164 | text: 'Deixa o texto seleccionado em italico.', |
---|
165 | cls: 'x-html-editor-tip' |
---|
166 | }, |
---|
167 | underline : { |
---|
168 | title: 'Sublinhado (Ctrl+U)', |
---|
169 | text: 'Sublinha o texto seleccionado.', |
---|
170 | cls: 'x-html-editor-tip' |
---|
171 | }, |
---|
172 | increasefontsize : { |
---|
173 | title: 'Aumentar Texto', |
---|
174 | text: 'Aumenta o tamanho da fonte.', |
---|
175 | cls: 'x-html-editor-tip' |
---|
176 | }, |
---|
177 | decreasefontsize : { |
---|
178 | title: 'Diminuir Texto', |
---|
179 | text: 'Diminui o tamanho da fonte.', |
---|
180 | cls: 'x-html-editor-tip' |
---|
181 | }, |
---|
182 | backcolor : { |
---|
183 | title: 'Cor de Fundo', |
---|
184 | text: 'Muda a cor do fundo do texto seleccionado.', |
---|
185 | cls: 'x-html-editor-tip' |
---|
186 | }, |
---|
187 | forecolor : { |
---|
188 | title: 'Cor da Fonte', |
---|
189 | text: 'Muda a cor do texto seleccionado.', |
---|
190 | cls: 'x-html-editor-tip' |
---|
191 | }, |
---|
192 | justifyleft : { |
---|
193 | title: 'Alinhar à Esquerda', |
---|
194 | text: 'Alinha o texto à esquerda.', |
---|
195 | cls: 'x-html-editor-tip' |
---|
196 | }, |
---|
197 | justifycenter : { |
---|
198 | title: 'Centrar Texto', |
---|
199 | text: 'Centra o texto no editor.', |
---|
200 | cls: 'x-html-editor-tip' |
---|
201 | }, |
---|
202 | justifyright : { |
---|
203 | title: 'Alinhar à Direita', |
---|
204 | text: 'Alinha o texto à direita.', |
---|
205 | cls: 'x-html-editor-tip' |
---|
206 | }, |
---|
207 | insertunorderedlist : { |
---|
208 | title: 'Lista com Marcadores', |
---|
209 | text: 'Inicia uma lista com marcadores.', |
---|
210 | cls: 'x-html-editor-tip' |
---|
211 | }, |
---|
212 | insertorderedlist : { |
---|
213 | title: 'Lista Numerada', |
---|
214 | text: 'Inicia uma lista numerada.', |
---|
215 | cls: 'x-html-editor-tip' |
---|
216 | }, |
---|
217 | createlink : { |
---|
218 | title: 'Hyperligação', |
---|
219 | text: 'Transforma o texto selecionado num hyperlink.', |
---|
220 | cls: 'x-html-editor-tip' |
---|
221 | }, |
---|
222 | sourceedit : { |
---|
223 | title: 'Editar Fonte', |
---|
224 | text: 'Troca para o modo de edição de código fonte.', |
---|
225 | cls: 'x-html-editor-tip' |
---|
226 | } |
---|
227 | } |
---|
228 | }); |
---|
229 | } |
---|
230 | |
---|
231 | if(Ext.grid.GridView){ |
---|
232 | Ext.apply(Ext.grid.GridView.prototype, { |
---|
233 | sortAscText : "Ordem Ascendente", |
---|
234 | sortDescText : "Ordem Descendente", |
---|
235 | lockText : "Bloquear Coluna", |
---|
236 | unlockText : "Desbloquear Coluna", |
---|
237 | columnsText : "Colunas" |
---|
238 | }); |
---|
239 | } |
---|
240 | |
---|
241 | if(Ext.grid.PropertyColumnModel){ |
---|
242 | Ext.apply(Ext.grid.PropertyColumnModel.prototype, { |
---|
243 | nameText : "Nome", |
---|
244 | valueText : "Valor", |
---|
245 | dateFormat : "d/m/Y" |
---|
246 | }); |
---|
247 | } |
---|
248 | |
---|
249 | if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ |
---|
250 | Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, { |
---|
251 | splitTip : "Arraste para redimensionar.", |
---|
252 | collapsibleSplitTip : "Arraste para redimensionar. Duplo clique para esconder." |
---|
253 | }); |
---|
254 | } |
---|