Browse Source

make max. text translatable

tags/v7.0.0alpha2
Volkan Gezer 10 years ago
parent
commit
1aa7774178
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      apps/files/lib/helper.php
  2. 1
    1
      apps/files/templates/index.php

+ 1
- 1
apps/files/lib/helper.php View File

@@ -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,

+ 1
- 1
apps/files/templates/index.php View File

@@ -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;?>

Loading…
Cancel
Save