summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-01-03 11:57:17 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-01-03 11:57:17 +0100
commitea732e5b29939173f1a61ef97c6271a56c70cec4 (patch)
treea1b0921f1ed36c7e30b942741013db06d7f68252
parent0405edc7984c01b5ef4d6cb4ff5154e8bd4dca11 (diff)
downloadnextcloud-server-ea732e5b29939173f1a61ef97c6271a56c70cec4.tar.gz
nextcloud-server-ea732e5b29939173f1a61ef97c6271a56c70cec4.zip
also translate 'No file was uploaded. Unknown error'
-rw-r--r--apps/files/ajax/upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index 0909a3f0776..4053cf5f8b0 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -8,14 +8,14 @@ OCP\JSON::setContentTypeHeader('text/plain');
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
+$l=OC_L10N::get('files');
if (!isset($_FILES['files'])) {
- OCP\JSON::error(array('data' => array( 'message' => 'No file was uploaded. Unknown error' )));
+ OCP\JSON::error(array('data' => array( 'message' => $l->t( 'No file was uploaded. Unknown error' ))));
exit();
}
foreach ($_FILES['files']['error'] as $error) {
if ($error != 0) {
- $l=OC_L10N::get('files');
$errors = array(
UPLOAD_ERR_OK=>$l->t('There is no error, the file uploaded with success'),
UPLOAD_ERR_INI_SIZE=>$l->t('The uploaded file exceeds the upload_max_filesize directive in php.ini: ')