Fix i18n issue and add translator documentation.
This commit is contained in:
parent
8adef3127c
commit
e88ee4ec46
@ -315,12 +315,17 @@ class MediaFile
|
|||||||
}
|
}
|
||||||
$media = MIME_Type::getMedia($filetype);
|
$media = MIME_Type::getMedia($filetype);
|
||||||
if ('application' !== $media) {
|
if ('application' !== $media) {
|
||||||
$hint = sprintf(_(' Try using another %s format.'), $media);
|
// TRANS: Client exception thrown trying to upload a forbidden MIME type.
|
||||||
|
// TRANS: %1$s is the file type that was denied, %2$s is the application part of
|
||||||
|
// TRANS: the MIME type that was denied.
|
||||||
|
$hint = sprintf(_('"%1$s" is not a supported file type on this server. ' .
|
||||||
|
'Try using another %2$s format.'), $filetype, $media);
|
||||||
} else {
|
} else {
|
||||||
$hint = '';
|
// TRANS: Client exception thrown trying to upload a forbidden MIME type.
|
||||||
|
// TRANS: %s is the file type that was denied.
|
||||||
|
$hint = sprintf(_('"%s" is not a supported file type on this server.'), $filetype);
|
||||||
}
|
}
|
||||||
throw new ClientException(sprintf(
|
throw new ClientException($hint);
|
||||||
_('%s is not a supported file type on this server.'), $filetype) . $hint);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static function respectsQuota($user, $filesize)
|
static function respectsQuota($user, $filesize)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user