From 6f8efcfe6162cd7fea68dd0677b7d4a6f1120c1f Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Fri, 31 Aug 2012 10:51:35 +0200 Subject: [PATCH] l18n support lib/updater.php --- lib/updater.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/updater.php b/lib/updater.php index 967f64c0b3..1b1a4eab97 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=''.$data['versionstring'].' is available. Get more information'; + $txt=''.$l->t('%s is available. Get more information',array($data['versionstring'], $data['web'])).''; }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); }