diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-04-22 10:23:08 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-04-22 10:23:08 +0200 |
commit | 4d9ff49f61896e1ef5e693701b5f09dd0e9b2568 (patch) | |
tree | a6c1ee54bcc6dc15d51aeb4d7d7a37657f33dbba /apps | |
parent | a9b4fba5281065a1a85f6af7a573f3d11d348bb6 (diff) | |
parent | 1aa7774178d5e6293faa63c572113fc36039f67e (diff) | |
download | nextcloud-server-4d9ff49f61896e1ef5e693701b5f09dd0e9b2568.tar.gz nextcloud-server-4d9ff49f61896e1ef5e693701b5f09dd0e9b2568.zip |
Merge pull request #8283 from owncloud/translatable-max-in-upload
make max. text translatable
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/helper.php | 2 | ||||
-rw-r--r-- | apps/files/templates/index.php | 2 |
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;?> |