forked from GNUsocial/gnu-social
* Mb -> MB (for megabyte)
* i18n for MB and kB
This commit is contained in:
parent
b805208733
commit
c6b1ca3765
@ -107,7 +107,7 @@ class DesignSettingsAction extends AccountSettingsAction
|
|||||||
'type' => 'file',
|
'type' => 'file',
|
||||||
'id' => 'design_background-image_file'));
|
'id' => 'design_background-image_file'));
|
||||||
$this->element('p', 'form_guide', _('You can upload your personal ' .
|
$this->element('p', 'form_guide', _('You can upload your personal ' .
|
||||||
'background image. The maximum file size is 2Mb.'));
|
'background image. The maximum file size is 2MB.'));
|
||||||
$this->element('input', array('name' => 'MAX_FILE_SIZE',
|
$this->element('input', array('name' => 'MAX_FILE_SIZE',
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
'id' => 'MAX_FILE_SIZE',
|
'id' => 'MAX_FILE_SIZE',
|
||||||
|
@ -214,9 +214,9 @@ class ImageFile
|
|||||||
$value = ImageFile::maxFileSizeInt();
|
$value = ImageFile::maxFileSizeInt();
|
||||||
|
|
||||||
if ($value > 1024 * 1024) {
|
if ($value > 1024 * 1024) {
|
||||||
return ($value/(1024*1024)).'Mb';
|
return ($value/(1024*1024)) . _('MB');
|
||||||
} else if ($value > 1024) {
|
} else if ($value > 1024) {
|
||||||
return ($value/(1024)).'kB';
|
return ($value/(1024)) . _('kB');
|
||||||
} else {
|
} else {
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user