summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-09-12 18:11:28 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-09-12 18:11:28 +0200
commite88ee4ec46da3519c888d0af758f3d6b349207c0 (patch)
tree7a3652a47899ab8d745471f36fee212d9eb04804
parent8adef3127c46dfb98b57f1b1b7cdf359e9ae5e2d (diff)
Fix i18n issue and add translator documentation.
-rw-r--r--lib/mediafile.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/mediafile.php b/lib/mediafile.php
index c96c78ab5..594636320 100644
--- a/lib/mediafile.php
+++ b/lib/mediafile.php
@@ -315,12 +315,17 @@ class MediaFile
}
$media = MIME_Type::getMedia($filetype);
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 {
- $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(
- _('%s is not a supported file type on this server.'), $filetype) . $hint);
+ throw new ClientException($hint);
}
static function respectsQuota($user, $filesize)