cvs: doc-editor /js main.js /js/locale fr.js

From: Date: Thu, 16 Apr 2009 20:46:55 +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-3765@lists.php.net to get a copy of this message
yannick Thu Apr 16 20:46:55 2009 UTC Modified files: /doc-editor/js/locale fr.js /doc-editor/js main.js Log: i18n for summary grid informations http://cvs.php.net/viewvc.cgi/doc-editor/js/locale/fr.js?r1=1.5&r2=1.6&diff_format=u Index: doc-editor/js/locale/fr.js diff -u doc-editor/js/locale/fr.js:1.5 doc-editor/js/locale/fr.js:1.6 --- doc-editor/js/locale/fr.js:1.5 Thu Apr 16 20:24:00 2009 +++ doc-editor/js/locale/fr.js Thu Apr 16 20:46:55 2009 @@ -111,7 +111,12 @@ i18n["Verify if there is an update in progress. Please, wait..."] = "Vérification de l\'état de la mise à jour. Merci de patienter..."; i18n["There is currently an update in progress.<br/>You can\'t perform an update now."] = "Il y a actuellement une mise à jour en cours.<br/>Vous ne pouvez pas l\'effectuer maintenant"; i18n["in {0}"] = "dans le dossier {0}"; -i18n[""] = ""; +i18n["Up to date files"] = "Fichiers à jour"; +i18n["Old files"] = "Anciens fichiers"; +i18n["Critical files"] = "Fichiers critiques"; +i18n["Files without revision tag"] = "Fichiers sans balise revcheck"; +i18n["Files available for translation"] = "Fichiers à traduire"; +i18n["Total"] = "Total"; i18n[""] = ""; http://cvs.php.net/viewvc.cgi/doc-editor/js/main.js?r1=1.37&r2=1.38&diff_format=u Index: doc-editor/js/main.js diff -u doc-editor/js/main.js:1.37 doc-editor/js/main.js:1.38 --- doc-editor/js/main.js:1.37 Thu Apr 16 20:34:57 2009 +++ doc-editor/js/main.js Thu Apr 16 20:46:55 2009 @@ -641,6 +641,36 @@ mapping: 'percentSize' }]) }); + + this.storeSummary.on('load', function() { + + this.storeSummary.each(function(record) { + + if( record.id === 1 ) { + record.set('libel', _('Up to date files')); + } + if( record.id === 2 ) { + record.set('libel', _('Old files')); + } + if( record.id === 3 ) { + record.set('libel', _('Critical files')); + } + if( record.id === 4 ) { + record.set('libel', _('Files without revision tag')); + } + if( record.id === 5 ) { + record.set('libel', _('Files available for translation')); + } + if( record.id === 6 ) { + record.set('libel', _('Total')); + } + record.commit(); + + }, this); + + + }, this); + }, // loadDataStore newTabCheckDoc: function(){ @@ -6002,8 +6032,8 @@ render: function(grid){ grid.store.load.defer(20, grid.store); }, - rowdblclick: function ( Grid, rowIndex, e ) { - var id = this.storeSummary.getAt(rowIndex).data.id; + rowdblclick: function ( grid, rowIndex, e ) { + var id = grid.store.getAt(rowIndex).data.id; //Up to date files, Old files, Criticals files if( id === 1 || id === 2 || id === 3) {

« previous php.doc.cvs (#3765) next »