3 * Copyright(c) 2006-2010 Sencha Inc.
5 * http://www.sencha.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",
170 if(Ext.form.ComboBox){
171 Ext.apply(Ext.form.ComboBox.prototype, {
172 loadingText : "Caricamento in corso...",
173 valueNotFoundText : undefined
178 Ext.apply(Ext.form.VTypes, {
179 emailText : 'Il campo deve essere un indirizzo e-mail nel formato "user@example.com"',
180 urlText : 'Il campo deve essere un indirizzo web nel formato "http:/'+'/www.example.com"',
181 alphaText : 'Il campo deve contenere solo lettere e _',
182 alphanumText : 'Il campo deve contenere solo lettere, numeri e _'
186 if(Ext.form.HtmlEditor){
187 Ext.apply(Ext.form.HtmlEditor.prototype, {
188 createLinkText : 'Inserire un URL per il link:',
191 title: 'Grassetto (Ctrl+B)',
192 text: 'Rende il testo selezionato in grassetto.',
193 cls: 'x-html-editor-tip'
196 title: 'Corsivo (Ctrl+I)',
197 text: 'Rende il testo selezionato in corsivo.',
198 cls: 'x-html-editor-tip'
201 title: 'Sottolinea (Ctrl+U)',
202 text: 'Sottolinea il testo selezionato.',
203 cls: 'x-html-editor-tip'
206 title: 'Ingrandisci testo',
207 text: 'Aumenta la dimensione del carattere.',
208 cls: 'x-html-editor-tip'
211 title: 'Rimpicciolisci testo',
212 text: 'Diminuisce la dimensione del carattere.',
213 cls: 'x-html-editor-tip'
216 title: 'Colore evidenziatore testo',
217 text: 'Modifica il colore di sfondo del testo selezionato.',
218 cls: 'x-html-editor-tip'
221 title: 'Colore carattere',
222 text: 'Modifica il colore del testo selezionato.',
223 cls: 'x-html-editor-tip'
226 title: 'Allinea a sinistra',
227 text: 'Allinea il testo a sinistra.',
228 cls: 'x-html-editor-tip'
232 text: 'Centra il testo.',
233 cls: 'x-html-editor-tip'
236 title: 'Allinea a destra',
237 text: 'Allinea il testo a destra.',
238 cls: 'x-html-editor-tip'
240 insertunorderedlist : {
241 title: 'Elenco puntato',
242 text: 'Elenco puntato.',
243 cls: 'x-html-editor-tip'
245 insertorderedlist : {
246 title: 'Elenco numerato',
247 text: 'Elenco numerato.',
248 cls: 'x-html-editor-tip'
251 title: 'Collegamento',
252 text: 'Trasforma il testo selezionato in un collegamanto.',
253 cls: 'x-html-editor-tip'
257 text: 'Passa alla modalit\u00E0 editing del sorgente.',
258 cls: 'x-html-editor-tip'
264 if(Ext.grid.GridView){
265 Ext.apply(Ext.grid.GridView.prototype, {
266 sortAscText : "Ordinamento crescente",
267 sortDescText : "Ordinamento decrescente",
268 lockText : "Blocca colonna",
269 unlockText : "Sblocca colonna",
270 columnsText : "Colonne"
274 if(Ext.grid.GroupingView){
275 Ext.apply(Ext.grid.GroupingView.prototype, {
276 emptyGroupText : '(Nessun dato)',
277 groupByText : 'Raggruppa per questo campo',
278 showGroupsText : 'Mostra nei gruppi'
282 if(Ext.grid.PropertyColumnModel){
283 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
285 valueText : "Valore",
290 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
291 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
292 splitTip : "Trascina per cambiare dimensioni.",
293 collapsibleSplitTip : "Trascina per cambiare dimensioni. Doppio click per nascondere."