From: Volkan Gezer Date: Mon, 21 Apr 2014 00:28:34 +0000 (+0200) Subject: make max. text translatable X-Git-Tag: v7.0.0alpha2~390^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1aa7774178d5e6293faa63c572113fc36039f67e;p=nextcloud-server.git make max. text translatable --- diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php index f9515d67157..2e3741cbdca 100644 --- a/apps/files/lib/helper.php +++ b/apps/files/lib/helper.php @@ -11,7 +11,7 @@ class Helper $l = new \OC_L10N('files'); $maxUploadFilesize = \OCP\Util::maxUploadFilesize($dir, $storageInfo['free']); $maxHumanFilesize = \OCP\Util::humanFileSize($maxUploadFilesize); - $maxHumanFilesize = $l->t('Upload') . ' max. ' . $maxHumanFilesize; + $maxHumanFilesize = $l->t('Upload (max. %s)', array($maxHumanFilesize)); return array('uploadMaxFilesize' => $maxUploadFilesize, 'maxHumanFilesize' => $maxHumanFilesize, diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 95edd625cb3..a8437835d95 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -19,7 +19,7 @@
+ title="t('Upload (max. %s)', array($_['uploadMaxHumanFilesize']))) ?>"> = 0):?>