Page 1 of 5 123 ... LastLast
Results 1 to 10 of 48

Thread: Localization of Ext

  1. #1
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default Localization of Ext

    In the latest rev under the experimental folder is ext-lang-en.js. This is an unfinished first pass at pulling in all the prototyped strings and config options in Ext that can be localized. I have to admit, I got side-tracked and didn't make it very far.

    If anyone has already went through and put together a full list (or wants to , please let me know. We are planning on having some preconfigured i18n files in the 1.0 distribution and any help with this would be very much appreciated!

  2. #2
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
      0  

    Default

    i don't mind helping with japanese. just let me know what to do (like, how should i go about saving asian characters in a text file?).

  3. #3
    Ext User rodiniz's Avatar
    Join Date
    Mar 2007
    Location
    Rio de Janeiro, Brazil
    Posts
    276
    Vote Rating
    0
      0  

    Default

    I dont know where are other messages, if any
    I have just sent you pt-br localization.

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Here is a (utf-8 encoded) spanish translation: http://static.tabo.aureal.com.pe/pub/tmp/ext-lang-es.js

  5. #5
    Ext User mdelanno's Avatar
    Join Date
    Mar 2007
    Location
    France
    Posts
    71
    Vote Rating
    0
      0  

    Default

    Here is a french version. I've added the grid header context menu and the comboBox loading text.

    Version 2: Added Ext.form.datePicker.format = 'd/m/y'
    Version 1: First version

    Code:
    /*
     * Ext - JS Library 1.0 Alpha 3 - Rev 4
     * Copyright(c) 2006-2007, Jack Slocum.
     * Translated by Maxence Delannoy
     * http://www.extjs.com/license.txt
     */
    
    Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Chargement en cours...</div>';
    
    Date.monthNames =
       ["Janvier",
        "Fvrier",
        "Mars",
        "Avril",
        "Mai",
        "Juin",
        "Juillet",
        "Aot",
        "Septembre",
        "Octobre",
        "Novembre",
        "Dcembre"];
    
    Date.dayNames =
       ["Dimanche",
        "Lundi",
        "Mardi",
        "Mercredi",
        "Jeudi",
        "Vendredi",
        "Samedi"];
        
    Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText: "Tri ascendant",
      sortDescText: "Tri descendant",
      lockText: "Figer la colonne",
      unlockText: "Librer la colonne",
      columnsText: "Colonnes"
    });
    
    Ext.apply(Ext.DatePicker.prototype, {
        todayText : "Aujourd'hui",
        todayTip : "{0} (barre espace)",
        minText : "Cette date se situe avant la date minimum.",
        maxText : "Cette date se situe aprs la date maximum.",
        format : "d/m/y",
        disabledDaysText : "",
        disabledDatesText : "",
        monthNames : Date.monthNames,
        dayNames : Date.dayNames,
        nextText: "Mois suivant (Ctrl + Droite)",
        prevText: "Mois prcdent (Ctrl + Gauche)",
        monthYearText: "Choisissez un mois (Ctrl + Haut/bas pour changer d'anne)",
        startDay: 1 // Week start on Monday
    });
    
    Ext.apply(Ext.form.DateField.prototype, {
        format: "d/m/y"
    });
    
    Ext.MessageBox.buttonText = {
        ok : "OK",
        cancel : "Annuler",
        yes : "Oui",
        no : "Non"
    };
    
    Ext.apply(Ext.PagingToolbar.prototype, {
        beforePageText : "Page",
        afterPageText : "sur {0}",
        firstText : "1re page",
        prevText : "Page prcdente",
        nextText : "Page suivante",
        lastText : "Dernire page",
        refreshText : "Actualiser"
    });
    
    Ext.TabPanelItem.prototype.closeText = "Fermer cet onglet";
    
    Ext.apply(Ext.form.ComboBox.prototype, {
        loadingText: "Chargement..."
    });

  6. #6
    Ext User mdelanno's Avatar
    Join Date
    Mar 2007
    Location
    France
    Posts
    71
    Vote Rating
    0
      0  

    Default DatePicker startday

    Don't forget to set the start day for the week. For example, in France the week start on Monday, so we need to set Ext.DatePicker.prototype.startDay to 1.

  7. #7
    Ext User
    Join Date
    Mar 2007
    Posts
    140
    Vote Rating
    0
      0  

    Default

    German (de_DE):
    (official first day of the week is Monday/Montag as far as I know)

    Code:
    /*
     * Ext - JS Library 1.0 Alpha 3 - Rev 4
     * Copyright(c) 2006-2007, Jack Slocum.
     * 
     * http://www.extjs.com/license.txt
     */
    
    
    Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Wird geladen...</div>';
    
    Date.monthNames =
       ["Januar",
        "Februar",
        "Mrz",
        "April",
        "Mai",
        "Juni",
        "Juli",
        "August",
        "September",
        "Oktober",
        "November",
        "Dezember"];
    
    Date.dayNames =
       ["Sonntag",
        "Montag",
        "Dienstag",
        "Mittwoch",
        "Donnerstag",
        "Freitag",
        "Samstag"];
    
    Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText: "Aufsteigend ordnen",
      sortDescText: "Absteigend ordnen",
      lockText: "Spalte sperren",
      unlockText: "Spalte entsperren",
      columnsText: "Spalte"
    });
    
    Ext.apply(Ext.DatePicker.prototype, {
        todayText : "Heute",
        todayTip : "{0} (Leertaste)",
        minText : "Dieses Datum ist vor dem Minimaldatum",
        maxText : "Dieses Datum ist nach dem Maximaldatum",
        format : "d.m.y",
        disabledDaysText : "",
        disabledDatesText : "",
        monthNames : Date.monthNames,
        dayNames : Date.dayNames,
        nextText: 'Nchster Monat (Steuerung+Rechts)',
        prevText: 'Vorheriger Monat (Steuerung+Links)',
        monthYearText: 'Monat auswhlen (Steuerung+Hoch/Runter zur Jahresauswahl)',
        startDay: 1 // Week start on Monday 
    });
    
    Ext.MessageBox.buttonText = {
        ok : "OK",
        cancel : "Abbrechen",
        yes : "Ja",
        no : "Nein"
    };
    
    Ext.apply(Ext.PagingToolbar.prototype, {
        beforePageText : "Seite",
        afterPageText : "von {0}",
        firstText : "Erste Seite",
        prevText : "Vorherige Seite",
        nextText : "Nchste Seite",
        lastText : "Letzte Seite",
        refreshText : "Aktualisieren"
    });
    
    Ext.TabPanelItem.prototype.closeText = "Karteireiter schlieen";
    Edit: Added grid stuff and startDay.

  8. #8
    Ext User
    Join Date
    Mar 2007
    Posts
    9
    Vote Rating
    0
      0  

    Default

    Here comes Italian.

    Code:
    /*
     * Ext - JS Library 1.0 Alpha 3 - Rev 4
     * Copyright(c) 2006-2007, Jack Slocum.
     * Translated by Maxence Delannoy
     * http://www.extjs.com/license.txt
     */
    
    Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Caricamento in corso...</div>';
    
    Date.monthNames =
       ["gennaio",
        "febbraio",
        "marzo",
        "aprile",
        "maggio",
        "giugno",
        "luglio",
        "agosto",
        "settembre",
        "ottobre",
        "novembre",
        "dicembre"];
    
    Date.dayNames =
       ["domenica",
        "luned",
        "marted",
        "mercoled",
        "gioved",
        "venerd",
        "sabato"];
        
    Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText: "Ordinamento crescente",
      sortDescText: "Ordinamento decrescente",
      lockText: "Bloccare la colonna",
      unlockText: "Sbloccare la colonna",
      columnsText: "Colonne"
    });
    
    Ext.apply(Ext.DatePicker.prototype, {
        todayText : "Oggi",
        todayTip : "{0} (barra spaziatrice)",
        minText : "Questa data  precedente alla data minima.",
        maxText : "Questa data  successiva alla data massima.",
        format : "d/m/y",
        disabledDaysText : "",
        disabledDatesText : "",
        monthNames : Date.monthNames,
        dayNames : Date.dayNames,
        nextText: "Mese successivo (Ctrl + Destra)",
        prevText: "Mese precedente (Ctrl + Sinistra)",
        monthYearText: "Selezionare un mese (Ctrl + S/Gi per cambiare anno)",
        startDay: 1 // Week start on Monday
    });
    
    Ext.MessageBox.buttonText = {
        ok : "OK",
        cancel : "Annullare",
        yes : "S",
        no : "No"
    };
    
    Ext.apply(Ext.PagingToolbar.prototype, {
        beforePageText : "Pagina",
        afterPageText : "di {0}",
        firstText : "Prima pagina",
        prevText : "Pagina precedente",
        nextText : "Pagina successiva",
        lastText : "Ultima pagina",
        refreshText : "Aggiorna"
    });
    
    Ext.TabPanelItem.prototype.closeText = "Chiudere questa scheda";
    
    Ext.apply(Ext.form.ComboBox.prototype, {
        loadingText: "Caricamento in corso..."
    });

  9. #9
    Sencha User Arikon's Avatar
    Join Date
    Mar 2007
    Posts
    76
    Vote Rating
    0
      0  

    Default

    Russian in UTF-8 encoding
    Code:
    /*
     * Ext - JS Library 1.0 Alpha 3 - Rev 4
     * Copyright(c) 2006-2007, Jack Slocum.
     * 
     * http://www.extjs.com/license.txt
     */
    
    Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Идет загрузка...</div>';
    
    Date.monthNames =
       ["Январь",
        "Февраль",
        "Март",
        "Апрель",
        "Май",
        "Июнь",
        "Июль",
        "Август",
        "Сентябрь",
        "Октябрь",
        "Ноябрь",
        "Декабрь"];
    
    Date.dayNames =
       ["Воскресенье",
        "Понедельник",
        "Вторник",
        "Среда",
        "Четверг",
        "Пятница",
        "Суббота"];
    
    Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText: "Сортировать по возрастанию",
      sortDescText: "Сортировать по убыванию",
      lockText: "Заблокировать столбец",
      unlockText: "Разблокировать столбец",
      columnsText: "Столбцы"
    });
    
    Ext.apply(Ext.DatePicker.prototype, {
        todayText : "Сегодня",
        todayTip : "{0} (Пробел)",
        minText : "Эта дата раньше минимальной разрешенной даты",
        maxText : "Эта дата позже максимальной разрешенной даты",
        format : "d.m.y",
        disabledDaysText : "",
        disabledDatesText : "",
        monthNames : Date.monthNames,
        dayNames : Date.dayNames,
        nextText: 'Следующий месяц (Control+Вправо)',
        prevText: 'Предыдущий месяц (Control+Влево)',
        monthYearText: 'Выбрать месяц (Control+Вверх/Вниз для выбора года)',
        startDay: 1 // Week start on Monday
    });
    
    Ext.MessageBox.buttonText = {
        ok : "OK",
        cancel : "Отмена",
        yes : "Да",
        no : "Нет"
    };
    
    Ext.apply(Ext.PagingToolbar.prototype, {
        beforePageText : "Страница",
        afterPageText : "из {0}",
        firstText : "Первая страница",
        prevText : "Предыдущая страница",
        nextText : "Следующая страница",
        lastText : "Последняя страница",
        refreshText : "Обновить"
    });
    
    Ext.TabPanelItem.prototype.closeText = "Закрыть вкладку";
    
    Ext.apply(Ext.form.ComboBox.prototype, {
        loadingText: "Загрузка..."
    });
    Say, if you'll have troubles with encoding, I'll put file to http server.

  10. #10
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4
    Vote Rating
    1
      0  

    Default

    This is awesome guys! Great to see translations coming in so quickly.

    Jack, you might consider versioning the filenames somehow, as the English file will inevitably get ahead of the others as you add new features, and as translators come and go, some versions may lag behind others. It will make maintenance easier if there's a simple way for people to see which files need updating after releases. Great work everyone!

    Brian

Page 1 of 5 123 ... LastLast

Similar Threads

  1. localization (l10n) of Ext 1.0?
    By neongrau in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 13 Mar 2007, 8:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •