3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
10 * 04-10-2007, 11:25 AM
11 * Updated by Federico Grilli 21/12/2007
14 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Caricamento in corso...</div>';
17 Ext.View.prototype.emptyText = "";
20 if(Ext.grid.GridPanel){
21 Ext.grid.GridPanel.prototype.ddText = "{0} righe selezionate";
25 Ext.TabPanelItem.prototype.closeText = "Chiudi pannello";
29 Ext.form.Field.prototype.invalidText = "Valore non valido";
33 Ext.LoadMask.prototype.msg = "Caricamento in corso...";
51 Date.getShortMonthName = function(month) {
52 return Date.monthNames[month].substring(0, 3);
70 Date.getMonthNumber = function(name) {
71 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
84 Date.getShortDayName = function(day) {
85 return Date.dayNames[day].substring(0, 3);
89 Ext.MessageBox.buttonText = {
98 Ext.util.Format.date = function(v, format){
100 if(!(v instanceof Date)) v = new Date(Date.parse(v));
101 return v.dateFormat(format || "d/m/Y");
106 Ext.apply(Ext.DatePicker.prototype, {
108 minText : "Data precedente alla data minima",
109 maxText : "Data successiva alla data massima",
110 disabledDaysText : "",
111 disabledDatesText : "",
112 monthNames : Date.monthNames,
113 dayNames : Date.dayNames,
114 nextText : 'Mese successivo (Ctrl+Destra)',
115 prevText : 'Mese precedente (Ctrl+Sinistra)',
116 monthYearText : 'Scegli un mese (Ctrl+Su/Giu per cambiare anno)',
117 todayTip : "{0} (Barra spaziatrice)",
119 cancelText : "Annulla",
120 okText : " OK ",
125 if(Ext.PagingToolbar){
126 Ext.apply(Ext.PagingToolbar.prototype, {
127 beforePageText : "Pagina",
128 afterPageText : "di {0}",
129 firstText : "Prima pagina",
130 prevText : "Pagina precedente",
131 nextText : "Pagina successiva",
132 lastText : "Ultima pagina",
133 refreshText : "Aggiorna",
134 displayMsg : "Record {0} - {1} di {2}",
135 emptyMsg : 'Nessun dato da mostrare'
139 if(Ext.form.TextField){
140 Ext.apply(Ext.form.TextField.prototype, {
141 minLengthText : "La lunghezza minima \u00E8 {0}",
142 maxLengthText : "La lunghezza massima \u00E8 {0}",
143 blankText : "Campo obbligatorio",
149 if(Ext.form.NumberField){
150 Ext.apply(Ext.form.NumberField.prototype, {
151 minText : "Il valore minimo \u00E8 {0}",
152 maxText : "Il valore massimo \u00E8 {0}",
153 nanText : "{0} non \u00E8 un valore numerico corretto"
157 if(Ext.form.DateField){
158 Ext.apply(Ext.form.DateField.prototype, {
159 disabledDaysText : "Disabilitato",
160 disabledDatesText : "Disabilitato",
161 minText : "La data deve essere successiva al {0}",
162 maxText : "La data deve essere precedente al {0}",
163 invalidText : "{0} non \u00E8 una data valida. Deve essere nel formato {1}",
165 altFormats : "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
169 if(Ext.form.ComboBox){
170 Ext.apply(Ext.form.ComboBox.prototype, {
171 loadingText : "Caricamento in corso...",
172 valueNotFoundText : undefined
177 Ext.apply(Ext.form.VTypes, {
178 emailText : 'Il campo deve essere un indirizzo e-mail nel formato "user@example.com"',
179 urlText : 'Il campo deve essere un indirizzo web nel formato "http:/'+'/www.example.com"',
180 alphaText : 'Il campo deve contenere solo lettere e _',
181 alphanumText : 'Il campo deve contenere solo lettere, numeri e _'
185 if(Ext.form.HtmlEditor){
186 Ext.apply(Ext.form.HtmlEditor.prototype, {
187 createLinkText : 'Inserire un URL per il link:',
190 title: 'Grassetto (Ctrl+B)',
191 text: 'Rende il testo selezionato in grassetto.',
192 cls: 'x-html-editor-tip'
195 title: 'Corsivo (Ctrl+I)',
196 text: 'Rende il testo selezionato in corsivo.',
197 cls: 'x-html-editor-tip'
200 title: 'Sottolinea (Ctrl+U)',
201 text: 'Sottolinea il testo selezionato.',
202 cls: 'x-html-editor-tip'
205 title: 'Ingrandisci testo',
206 text: 'Aumenta la dimensione del carattere.',
207 cls: 'x-html-editor-tip'
210 title: 'Rimpicciolisci testo',
211 text: 'Diminuisce la dimensione del carattere.',
212 cls: 'x-html-editor-tip'
215 title: 'Colore evidenziatore testo',
216 text: 'Modifica il colore di sfondo del testo selezionato.',
217 cls: 'x-html-editor-tip'
220 title: 'Colore carattere',
221 text: 'Modifica il colore del testo selezionato.',
222 cls: 'x-html-editor-tip'
225 title: 'Allinea a sinistra',
226 text: 'Allinea il testo a sinistra.',
227 cls: 'x-html-editor-tip'
231 text: 'Centra il testo.',
232 cls: 'x-html-editor-tip'
235 title: 'Allinea a destra',
236 text: 'Allinea il testo a destra.',
237 cls: 'x-html-editor-tip'
239 insertunorderedlist : {
240 title: 'Elenco puntato',
241 text: 'Elenco puntato.',
242 cls: 'x-html-editor-tip'
244 insertorderedlist : {
245 title: 'Elenco numerato',
246 text: 'Elenco numerato.',
247 cls: 'x-html-editor-tip'
250 title: 'Collegamento',
251 text: 'Trasforma il testo selezionato in un collegamanto.',
252 cls: 'x-html-editor-tip'
256 text: 'Passa alla modalit\u00E0 editing del sorgente.',
257 cls: 'x-html-editor-tip'
263 if(Ext.grid.GridView){
264 Ext.apply(Ext.grid.GridView.prototype, {
265 sortAscText : "Ordinamento crescente",
266 sortDescText : "Ordinamento decrescente",
267 lockText : "Blocca colonna",
268 unlockText : "Sblocca colonna",
269 columnsText : "Colonne"
273 if(Ext.grid.GroupingView){
274 Ext.apply(Ext.grid.GroupingView.prototype, {
275 emptyGroupText : '(Nessun dato)',
276 groupByText : 'Raggruppa per questo campo',
277 showGroupsText : 'Mostra nei gruppi'
281 if(Ext.grid.PropertyColumnModel){
282 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
284 valueText : "Valore",
289 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
290 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
291 splitTip : "Trascina per cambiare dimensioni.",
292 collapsibleSplitTip : "Trascina per cambiare dimensioni. Doppio click per nascondere."