summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-08-31 10:51:35 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-08-31 10:51:35 +0200
commit6f8efcfe6162cd7fea68dd0677b7d4a6f1120c1f (patch)
tree5ec78481ade9eaa4801534748cbd27730aadaad9
parent75cd7eacf8b7e130c94c258bf86502a06a5b2d17 (diff)
downloadnextcloud-server-6f8efcfe6162cd7fea68dd0677b7d4a6f1120c1f.tar.gz
nextcloud-server-6f8efcfe6162cd7fea68dd0677b7d4a6f1120c1f.zip
l18n support lib/updater.php
-rw-r--r--lib/updater.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/updater.php b/lib/updater.php
index 967f64c0b30..1b1a4eab970 100644
--- a/lib/updater.php
+++ b/lib/updater.php
@@ -58,15 +58,17 @@ class OC_Updater{
}
public static function ShowUpdatingHint(){
+ $l = OC_L10N::get('lib');
+
if(OC_Config::getValue('updatechecker', true)==true){
$data=OC_Updater::check();
if(isset($data['version']) and $data['version']<>'') {
- $txt='<span style="color:#AA0000; font-weight:bold;">'.$data['versionstring'].' is available. Get <a href="'.$data['web'].'">more information</a></span>';
+ $txt='<span style="color:#AA0000; font-weight:bold;">'.$l->t('%s is available. Get <a href="%s">more information</a>',array($data['versionstring'], $data['web'])).'</span>';
}else{
- $txt='up to date';
+ $txt=$l->t('up to date');
}
}else{
- $txt='updates check is disabled';
+ $txt=$l->t('updates check is disabled');
}
return($txt);
}