3 <title>The source code</title>
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
7 <body onload="prettyPrint();">
8 <pre class="prettyprint lang-js">/*!
10 * Copyright(c) 2006-2009 Ext JS, LLC
12 * http://www.extjs.com/license
17 * 04-10-2007, 11:25 AM
18 * Updated by Federico Grilli 21/12/2007
21 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Caricamento in corso...</div>';
24 Ext.View.prototype.emptyText = "";
27 if(Ext.grid.GridPanel){
28 Ext.grid.GridPanel.prototype.ddText = "{0} righe selezionate";
32 Ext.TabPanelItem.prototype.closeText = "Chiudi pannello";
36 Ext.form.Field.prototype.invalidText = "Valore non valido";
40 Ext.LoadMask.prototype.msg = "Caricamento in corso...";
58 Date.getShortMonthName = function(month) {
59 return Date.monthNames[month].substring(0, 3);
77 Date.getMonthNumber = function(name) {
78 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
91 Date.getShortDayName = function(day) {
92 return Date.dayNames[day].substring(0, 3);
96 Ext.MessageBox.buttonText = {
105 Ext.util.Format.date = function(v, format){
107 if(!(v instanceof Date)) v = new Date(Date.parse(v));
108 return v.dateFormat(format || "d/m/Y");
113 Ext.apply(Ext.DatePicker.prototype, {
115 minText : "Data precedente alla data minima",
116 maxText : "Data successiva alla data massima",
117 disabledDaysText : "",
118 disabledDatesText : "",
119 monthNames : Date.monthNames,
120 dayNames : Date.dayNames,
121 nextText : 'Mese successivo (Ctrl+Destra)',
122 prevText : 'Mese precedente (Ctrl+Sinistra)',
123 monthYearText : 'Scegli un mese (Ctrl+Su/Giu per cambiare anno)',
124 todayTip : "{0} (Barra spaziatrice)",
126 cancelText : "Annulla",
127 okText : " OK ",
132 if(Ext.PagingToolbar){
133 Ext.apply(Ext.PagingToolbar.prototype, {
134 beforePageText : "Pagina",
135 afterPageText : "di {0}",
136 firstText : "Prima pagina",
137 prevText : "Pagina precedente",
138 nextText : "Pagina successiva",
139 lastText : "Ultima pagina",
140 refreshText : "Aggiorna",
141 displayMsg : "Record {0} - {1} di {2}",
142 emptyMsg : 'Nessun dato da mostrare'
146 if(Ext.form.TextField){
147 Ext.apply(Ext.form.TextField.prototype, {
148 minLengthText : "La lunghezza minima \u00E8 {0}",
149 maxLengthText : "La lunghezza massima \u00E8 {0}",
150 blankText : "Campo obbligatorio",
156 if(Ext.form.NumberField){
157 Ext.apply(Ext.form.NumberField.prototype, {
158 minText : "Il valore minimo \u00E8 {0}",
159 maxText : "Il valore massimo \u00E8 {0}",
160 nanText : "{0} non \u00E8 un valore numerico corretto"
164 if(Ext.form.DateField){
165 Ext.apply(Ext.form.DateField.prototype, {
166 disabledDaysText : "Disabilitato",
167 disabledDatesText : "Disabilitato",
168 minText : "La data deve essere successiva al {0}",
169 maxText : "La data deve essere precedente al {0}",
170 invalidText : "{0} non \u00E8 una data valida. Deve essere nel formato {1}",
172 altFormats : "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
176 if(Ext.form.ComboBox){
177 Ext.apply(Ext.form.ComboBox.prototype, {
178 loadingText : "Caricamento in corso...",
179 valueNotFoundText : undefined
184 Ext.apply(Ext.form.VTypes, {
185 emailText : 'Il campo deve essere un indirizzo e-mail nel formato "user@example.com"',
186 urlText : 'Il campo deve essere un indirizzo web nel formato "http:/'+'/www.example.com"',
187 alphaText : 'Il campo deve contenere solo lettere e _',
188 alphanumText : 'Il campo deve contenere solo lettere, numeri e _'
192 if(Ext.form.HtmlEditor){
193 Ext.apply(Ext.form.HtmlEditor.prototype, {
194 createLinkText : 'Inserire un URL per il link:',
197 title: 'Grassetto (Ctrl+B)',
198 text: 'Rende il testo selezionato in grassetto.',
199 cls: 'x-html-editor-tip'
202 title: 'Corsivo (Ctrl+I)',
203 text: 'Rende il testo selezionato in corsivo.',
204 cls: 'x-html-editor-tip'
207 title: 'Sottolinea (Ctrl+U)',
208 text: 'Sottolinea il testo selezionato.',
209 cls: 'x-html-editor-tip'
212 title: 'Ingrandisci testo',
213 text: 'Aumenta la dimensione del carattere.',
214 cls: 'x-html-editor-tip'
217 title: 'Rimpicciolisci testo',
218 text: 'Diminuisce la dimensione del carattere.',
219 cls: 'x-html-editor-tip'
222 title: 'Colore evidenziatore testo',
223 text: 'Modifica il colore di sfondo del testo selezionato.',
224 cls: 'x-html-editor-tip'
227 title: 'Colore carattere',
228 text: 'Modifica il colore del testo selezionato.',
229 cls: 'x-html-editor-tip'
232 title: 'Allinea a sinistra',
233 text: 'Allinea il testo a sinistra.',
234 cls: 'x-html-editor-tip'
238 text: 'Centra il testo.',
239 cls: 'x-html-editor-tip'
242 title: 'Allinea a destra',
243 text: 'Allinea il testo a destra.',
244 cls: 'x-html-editor-tip'
246 insertunorderedlist : {
247 title: 'Elenco puntato',
248 text: 'Elenco puntato.',
249 cls: 'x-html-editor-tip'
251 insertorderedlist : {
252 title: 'Elenco numerato',
253 text: 'Elenco numerato.',
254 cls: 'x-html-editor-tip'
257 title: 'Collegamento',
258 text: 'Trasforma il testo selezionato in un collegamanto.',
259 cls: 'x-html-editor-tip'
263 text: 'Passa alla modalit\u00E0 editing del sorgente.',
264 cls: 'x-html-editor-tip'
270 if(Ext.grid.GridView){
271 Ext.apply(Ext.grid.GridView.prototype, {
272 sortAscText : "Ordinamento crescente",
273 sortDescText : "Ordinamento decrescente",
274 lockText : "Blocca colonna",
275 unlockText : "Sblocca colonna",
276 columnsText : "Colonne"
280 if(Ext.grid.GroupingView){
281 Ext.apply(Ext.grid.GroupingView.prototype, {
282 emptyGroupText : '(Nessun dato)',
283 groupByText : 'Raggruppa per questo campo',
284 showGroupsText : 'Mostra nei gruppi'
288 if(Ext.grid.PropertyColumnModel){
289 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
291 valueText : "Valore",
296 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
297 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
298 splitTip : "Trascina per cambiare dimensioni.",
299 collapsibleSplitTip : "Trascina per cambiare dimensioni. Doppio click per nascondere."