-
13 Mar 2007 7:32 AM #1
Localization of Ext
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!
-
13 Mar 2007 7:58 AM #2
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?).
-
13 Mar 2007 9:05 AM #3
I dont know where are other messages, if any
I have just sent you pt-br localization.
-
13 Mar 2007 9:37 AM #4
Here is a (utf-8 encoded) spanish translation: http://static.tabo.aureal.com.pe/pub/tmp/ext-lang-es.js
-
13 Mar 2007 11:33 AM #5
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", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"]; 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: "Libérer 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 après la date maximum.", format : "d/m/y", disabledDaysText : "", disabledDatesText : "", monthNames : Date.monthNames, dayNames : Date.dayNames, nextText: "Mois suivant (Ctrl + Droite)", prevText: "Mois précédent (Ctrl + Gauche)", monthYearText: "Choisissez un mois (Ctrl + Haut/bas pour changer d'année)", 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 : "1ère page", prevText : "Page précédente", nextText : "Page suivante", lastText : "Dernière page", refreshText : "Actualiser" }); Ext.TabPanelItem.prototype.closeText = "Fermer cet onglet"; Ext.apply(Ext.form.ComboBox.prototype, { loadingText: "Chargement..." });
-
13 Mar 2007 11:36 AM #6
DatePicker startday
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.
-
13 Mar 2007 12:26 PM #7
German (de_DE):
(official first day of the week is Monday/Montag as far as I know)
Edit: Added grid stuff and startDay.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", "März", "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: 'Nächster Monat (Steuerung+Rechts)', prevText: 'Vorheriger Monat (Steuerung+Links)', monthYearText: 'Monat auswählen (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 : "Nächste Seite", lastText : "Letzte Seite", refreshText : "Aktualisieren" }); Ext.TabPanelItem.prototype.closeText = "Karteireiter schließen";
-
13 Mar 2007 1:34 PM #8
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..." });
-
13 Mar 2007 2:13 PM #9
Russian in UTF-8 encoding
Say, if you'll have troubles with encoding, I'll put file to http server.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: "Загрузка..." });
-
13 Mar 2007 7:54 PM #10
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
Similar Threads
-
localization (l10n) of Ext 1.0?
By neongrau in forum Ext 1.x: Help & DiscussionReplies: 6Last Post: 13 Mar 2007, 8:11 AM


Reply With Quote
