SVN commit 1301458 by aacid: more i18n M +9 -9 class_appdata.inc --- trunk/www/media/includes/classes/class_appdata.inc #1301457:1301458 @@ -118,16 +118,16 @@ function licenseHtml() { $license = $this->data['license']; - $text = '

'.$this->name().' is distributed under the terms of the '; + $text = '

'; switch($license) { case 'GPL': case 'GPL_V2': - $text .= 'GNU General Public License (GPL), Version 2.'; + $text .= i18n_var('%1 is distributed under the terms of the GNU General Public License (GPL), Version 2.', $this->name()); break; case 'GPL_V3': - $text .= 'GNU General Public License (GPL), Version 3.'; + $text .= i18n_var('%1 is distributed under the terms of the GNU General Public License (GPL), Version 3.', $this->name()); break; case 'LGPL': - $text .= ' GNU Library General Public License, version 2.'; + $text .= i18n_var('%1 is distributed under the terms of the GNU Library General Public License, version 2.', $this->name()); break; default: $text .= $license.'.'; @@ -200,7 +200,7 @@ function browseSourcesHtml() { if ($this->data['repository'][0] == 'svn') { - return '

Browse '.$this->name().' source code on WebSVN

'; + return '

'.i18n_var("Browse %1 source code on WebSVN", $this->name()).'

'; } else if($this->data['repository'][0] == 'git') { $path = '

Browse '.$this->name().' source code on Git

'; + $path .= '/repository">'.i18n_var("Browse %1 source code on Git", $this->name()).'

'; return $path; } return ''; @@ -220,9 +220,9 @@ function checkoutSourcesHtml() { if ($this->data['repository'][0] == 'svn') { - return '

Checkout '.$this->name().' source code:

svn co svn://anonsvn.kde.org/home/kde/'.$this->data['repository'][1].'

'; + return '

'.i18n_var("Checkout source code:", $this->name()).'

svn co svn://anonsvn.kde.org/home/kde/'.$this->data['repository'][1].'

'; } else if($this->data['repository'][0] == 'git') { - return '

Clone '.$this->name().' source code:

git clone git://anongit.kde.org/'.$this->data['repository'][1].'

'; + return '

'.i18n_var("Clone %1 source code:", $this->name()).'

git clone git://anongit.kde.org/'.$this->data['repository'][1].'

'; } return ''; } @@ -232,7 +232,7 @@ } function ciaVcHtml() { - return 'Watch '.$this->name().' development activity on cia.vc'; + return ''.i18n_var("Watch %1 development activity on cia.vc", $this->name()).''; } //Returns true if the application has a bugtracker (external or KDE bugzilla)