cvs: doc-editor /js main.js /js/locale fr.js
| From: | Yannick Torres | Date: | Sat, 18 Apr 2009 08:02:36 +0000 |
| Subject: | cvs: doc-editor /js main.js /js/locale fr.js | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3780@lists.php.net to get a copy of this message | ||
yannick Sat Apr 18 08:02:36 2009 UTC
Modified files:
/doc-editor/js/locale fr.js
/doc-editor/js main.js
Log:
- i18n for all date/time
- small others i18n fix
http://cvs.php.net/viewvc.cgi/doc-editor/js/locale/fr.js?r1=1.7&r2=1.8&diff_format=u Index: doc-editor/js/locale/fr.js diff -u doc-editor/js/locale/fr.js:1.7 doc-editor/js/locale/fr.js:1.8 --- doc-editor/js/locale/fr.js:1.7 Thu Apr 16 21:33:25 2009 +++ doc-editor/js/locale/fr.js Sat Apr 18 08:02:36 2009 @@ -5,6 +5,9 @@ var i18n = new Array(); +// Date/Time +i18n["Y-m-d, H:i"] = "d/m/Y, H:i"; + // Generic i18n["Close"] = "Fermer"; i18n["Confirm"] = "Confirmation"; @@ -118,7 +121,8 @@ i18n["Files available for translation"] = "Fichiers à traduire"; i18n["Total"] = "Total"; i18n["Posted by"] = "Proposé par"; - +i18n["This action will <b>reject</b> this patch, send an email to his author and close this tab."] = "Cette action va <b>rejeter</b> ce patch, envoyer un email à son auteur et fermer cet onglet."; +i18n["This action will accept this patch, send an email to his author, save the file and close this tab."] = "Cette action va accepter ce patch, envoyer un email à son auteur et fermer cet onglet."; // Main Menu i18n["Main Menu"] = "Menu principal"; http://cvs.php.net/viewvc.cgi/doc-editor/js/main.js?r1=1.39&r2=1.40&diff_format=u Index: doc-editor/js/main.js diff -u doc-editor/js/main.js:1.39 doc-editor/js/main.js:1.40 --- doc-editor/js/main.js:1.39 Thu Apr 16 21:33:25 2009 +++ doc-editor/js/main.js Sat Apr 18 08:02:36 2009 @@ -437,7 +437,9 @@ mapping: 'by' }, { name: 'date', - mapping: 'date' + mapping: 'date', + type: 'date', + dateFormat: 'Y-m-d H:i:s' }]), sortInfo: { field: 'path', @@ -484,7 +486,9 @@ mapping: 'uniqID' }, { name: 'date', - mapping: 'date' + mapping: 'date', + type: 'date', + dateFormat: 'Y-m-d H:i:s' }]), sortInfo: { field: 'path', @@ -1063,7 +1067,7 @@ } // btn = yes } // goRejectPatch - Ext.MessageBox.confirm(_('Confirm'), 'This action will <b>reject</b> this patch, send an email to his author and close this tab.', goRejectPatch, scope); + Ext.MessageBox.confirm(_('Confirm'), _('This action will <b>reject</b> this patch, send an email to his author and close this tab.'), goRejectPatch, scope); }, //rejectPatch saveFileViaPatch: function(FileID, FilePath, FileName, FileUniqID, rowIndex, scope){ @@ -1130,7 +1134,7 @@ } // btn = yes } - Ext.MessageBox.confirm(_('Confirm'), 'This action will accept this patch, send an email to his author, save the file and close this tab.', goAcceptPatch, scope); + Ext.MessageBox.confirm(_('Confirm'), _('This action will accept this patch, send an email to his author, save the file and close this tab.'), goAcceptPatch, scope); }, //saveFileViaPatch saveEnFile: function(FileID, FilePath, FileName, Panel, rowIndex, scope){ @@ -1571,7 +1575,7 @@ name: FileName, by: this.userLogin, uniqID: uniqID, - date: dt.format("Y-m-d H:i:s") + date: dt }); this.storePendingPatch.insert(0, r); @@ -1599,7 +1603,7 @@ path: FilePath, name: FileName, by: this.userLogin, - date: dt.format("Y-m-d H:i:s") + date: dt }); this.storePendingCommit.insert(0, r1); } @@ -3175,7 +3179,7 @@ var dt = Date.parseDate(o.lastupdate, "Y-m-d H:i:s"); // We update the lastupdate date/time - Ext.getDom('lastUpdateTime').innerHTML = dt.format('Y-m-d, H:i'); + Ext.getDom('lastUpdateTime').innerHTML = dt.format(_('Y-m-d, H:i')); } } @@ -3384,7 +3388,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -3480,7 +3484,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -4147,7 +4151,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -4242,7 +4246,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -4615,7 +4619,8 @@ header: _('Date'), width: 45, sortable: true, - dataIndex: 'date' + dataIndex: 'date', + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }, { header: _('Path'), dataIndex: 'path', @@ -4769,7 +4774,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -5051,7 +5056,8 @@ header: _('Date'), width: 45, sortable: true, - dataIndex: 'date' + dataIndex: 'date', + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }, { header: _('Path'), dataIndex: 'path', @@ -5583,7 +5589,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -5679,7 +5685,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -6174,7 +6180,7 @@ width: 140, sortable: true, dataIndex: 'pubDate', - renderer: Ext.util.Format.dateRenderer('d/m/Y, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, height: 400, @@ -6577,7 +6583,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content',
http://cvs.php.net/viewvc.cgi/doc-editor/js/locale/fr.js?r1=1.7&r2=1.8&diff_format=u Index: doc-editor/js/locale/fr.js diff -u doc-editor/js/locale/fr.js:1.7 doc-editor/js/locale/fr.js:1.8 --- doc-editor/js/locale/fr.js:1.7 Thu Apr 16 21:33:25 2009 +++ doc-editor/js/locale/fr.js Sat Apr 18 08:02:36 2009 @@ -5,6 +5,9 @@ var i18n = new Array(); +// Date/Time +i18n["Y-m-d, H:i"] = "d/m/Y, H:i"; + // Generic i18n["Close"] = "Fermer"; i18n["Confirm"] = "Confirmation"; @@ -118,7 +121,8 @@ i18n["Files available for translation"] = "Fichiers à traduire"; i18n["Total"] = "Total"; i18n["Posted by"] = "Proposé par"; - +i18n["This action will <b>reject</b> this patch, send an email to his author and close this tab."] = "Cette action va <b>rejeter</b> ce patch, envoyer un email à son auteur et fermer cet onglet."; +i18n["This action will accept this patch, send an email to his author, save the file and close this tab."] = "Cette action va accepter ce patch, envoyer un email à son auteur et fermer cet onglet."; // Main Menu i18n["Main Menu"] = "Menu principal"; http://cvs.php.net/viewvc.cgi/doc-editor/js/main.js?r1=1.39&r2=1.40&diff_format=u Index: doc-editor/js/main.js diff -u doc-editor/js/main.js:1.39 doc-editor/js/main.js:1.40 --- doc-editor/js/main.js:1.39 Thu Apr 16 21:33:25 2009 +++ doc-editor/js/main.js Sat Apr 18 08:02:36 2009 @@ -437,7 +437,9 @@ mapping: 'by' }, { name: 'date', - mapping: 'date' + mapping: 'date', + type: 'date', + dateFormat: 'Y-m-d H:i:s' }]), sortInfo: { field: 'path', @@ -484,7 +486,9 @@ mapping: 'uniqID' }, { name: 'date', - mapping: 'date' + mapping: 'date', + type: 'date', + dateFormat: 'Y-m-d H:i:s' }]), sortInfo: { field: 'path', @@ -1063,7 +1067,7 @@ } // btn = yes } // goRejectPatch - Ext.MessageBox.confirm(_('Confirm'), 'This action will <b>reject</b> this patch, send an email to his author and close this tab.', goRejectPatch, scope); + Ext.MessageBox.confirm(_('Confirm'), _('This action will <b>reject</b> this patch, send an email to his author and close this tab.'), goRejectPatch, scope); }, //rejectPatch saveFileViaPatch: function(FileID, FilePath, FileName, FileUniqID, rowIndex, scope){ @@ -1130,7 +1134,7 @@ } // btn = yes } - Ext.MessageBox.confirm(_('Confirm'), 'This action will accept this patch, send an email to his author, save the file and close this tab.', goAcceptPatch, scope); + Ext.MessageBox.confirm(_('Confirm'), _('This action will accept this patch, send an email to his author, save the file and close this tab.'), goAcceptPatch, scope); }, //saveFileViaPatch saveEnFile: function(FileID, FilePath, FileName, Panel, rowIndex, scope){ @@ -1571,7 +1575,7 @@ name: FileName, by: this.userLogin, uniqID: uniqID, - date: dt.format("Y-m-d H:i:s") + date: dt }); this.storePendingPatch.insert(0, r); @@ -1599,7 +1603,7 @@ path: FilePath, name: FileName, by: this.userLogin, - date: dt.format("Y-m-d H:i:s") + date: dt }); this.storePendingCommit.insert(0, r1); } @@ -3175,7 +3179,7 @@ var dt = Date.parseDate(o.lastupdate, "Y-m-d H:i:s"); // We update the lastupdate date/time - Ext.getDom('lastUpdateTime').innerHTML = dt.format('Y-m-d, H:i'); + Ext.getDom('lastUpdateTime').innerHTML = dt.format(_('Y-m-d, H:i')); } } @@ -3384,7 +3388,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -3480,7 +3484,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -4147,7 +4151,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -4242,7 +4246,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -4615,7 +4619,8 @@ header: _('Date'), width: 45, sortable: true, - dataIndex: 'date' + dataIndex: 'date', + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }, { header: _('Path'), dataIndex: 'path', @@ -4769,7 +4774,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -5051,7 +5056,8 @@ header: _('Date'), width: 45, sortable: true, - dataIndex: 'date' + dataIndex: 'date', + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }, { header: _('Path'), dataIndex: 'path', @@ -5583,7 +5589,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -5679,7 +5685,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content', @@ -6174,7 +6180,7 @@ width: 140, sortable: true, dataIndex: 'pubDate', - renderer: Ext.util.Format.dateRenderer('d/m/Y, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, height: 400, @@ -6577,7 +6583,7 @@ width: 85, sortable: true, dataIndex: 'date', - renderer: Ext.util.Format.dateRenderer('Y/m/d, H:i') + renderer: Ext.util.Format.dateRenderer(_('Y-m-d, H:i')) }], autoScroll: true, autoExpandColumn: 'content',