]> source.dussan.org Git - nextcloud-server.git/commitdiff
make max. text translatable
authorVolkan Gezer <volkangezer@gmail.com>
Mon, 21 Apr 2014 00:28:34 +0000 (02:28 +0200)
committerVolkan Gezer <volkangezer@gmail.com>
Mon, 21 Apr 2014 00:41:33 +0000 (02:41 +0200)
apps/files/lib/helper.php
apps/files/templates/index.php

index f9515d671572a1884668da34112b75e694284541..2e3741cbdca502ffcf93a3f872a9d9c8e234d59d 100644 (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,
index 95edd625cb31491552427f55b79b02d3e9680b02..a8437835d959bf8ca662de8492684a6b26fc82d5 100644 (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;?>