Threaded View

  1. #1
    Sencha User
    Join Date
    Oct 2009
    Location
    rome - italy
    Posts
    38
    Vote Rating
    0
    strad84 is on a distinguished road

      0  

    Default Answered: Datepicker change language

    Answered: Datepicker change language


    Hi guys, i'm trying to change the datepicker languange from english to italian and i'm using Sencha Touch 1.1.1 .
    I put the file path into the index "src/locale/ext-lang-it.js" but nothing change.
    Can anyone help me?!

    Thanks a lot


  2. Ciao strad84.
    First, you need to create a new .js file called, as you correctly said, "ext-lang-it.js".
    In this file you have to put what follows:

    Code:
    //Translating the months names
    Date.monthNames = [
        "Gennaio", "Febbraio", "Marzo",
        "Aprile", "Maggio", "Giugno",
        "Luglio", "Agosto", "Settembre",
        "Ottobre", "Novembre", "Dicembre"
    ];
    
    
    //Translating he DatePicker component labels
    if(Ext.DatePicker) {
    
    
    	Ext.apply(Ext.DatePicker.prototype, {
    		dayText		: 'Giorno',
    		monthText	: 'Mese',
    		yearText	        : 'Anno'
    	});
    	
    }
    Finally you need to include this file in your "index.html".
    If you run this simple application, you will see that everything has been translated now

    Code:
    Ext.setup({
        onReady: function() {
    
    
    		var datePicker = new Ext.DatePicker();
    		datePicker.show();
    		
        }
    });
    Hope this helps.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi