summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorVolkan Gezer <volkangezer@gmail.com>2014-04-21 02:28:34 +0200
committerVolkan Gezer <volkangezer@gmail.com>2014-04-21 02:41:33 +0200
commit1aa7774178d5e6293faa63c572113fc36039f67e (patch)
tree6e58923f70f2f0614ad59d91127735b3d1e991f2 /apps/files
parentf2f5a53d3617f04082f3facb968e514abdd20ee3 (diff)
downloadnextcloud-server-1aa7774178d5e6293faa63c572113fc36039f67e.tar.gz
nextcloud-server-1aa7774178d5e6293faa63c572113fc36039f67e.zip
make max. text translatable
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/helper.php2
-rw-r--r--apps/files/templates/index.php2
2 files changed, 2 insertions, 2 deletions
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 @@
</div>
<?php endif;?>
<div id="upload" class="button"
- title="<?php p($l->t('Upload') . ' max. '.$_['uploadMaxHumanFilesize']) ?>">
+ title="<?php p($l->t('Upload (max. %s)', array($_['uploadMaxHumanFilesize']))) ?>">
<?php if($_['uploadMaxFilesize'] >= 0):?>
<input type="hidden" id="max_upload" name="MAX_FILE_SIZE" value="<?php p($_['uploadMaxFilesize']) ?>">
<?php endif;?>