summaryrefslogtreecommitdiff
path: root/static/php/upload.php
diff options
context:
space:
mode:
authorMandragorat Wandystanu <wktir@wandystan.eu>2018-05-30 15:54:18 +0200
committerMandragorat Wandystanu <wktir@wandystan.eu>2018-05-30 15:54:18 +0200
commit458beb599281ae6a9179a37c27a006dd3721c3fe (patch)
tree77d2568be87be8bf7f2f3bba58598179e5c74457 /static/php/upload.php
parent130669165c756c3ca8e730cdcdd2ce233ca1d856 (diff)
Translate messages into Polish.
It was planned to be done at first using GNU Gettext, but for our internal purposes it's an overkill.
Diffstat (limited to 'static/php/upload.php')
-rw-r--r--static/php/upload.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/static/php/upload.php b/static/php/upload.php
index 9bb9d3f..c8bae73 100644
--- a/static/php/upload.php
+++ b/static/php/upload.php
@@ -39,7 +39,7 @@ function generateName($file)
// Iterate until we reach the maximum number of retries
if ($tries-- === 0) {
throw new Exception(
- 'Gave up trying to find an unused name',
+ 'Nie udało się znaleźć nieużywanej nazwy pliku',
500
); // HTTP status code "500 Internal Server Error"
}
@@ -128,7 +128,7 @@ function uploadFile($file)
// Attempt to move it to the static directory
if (!move_uploaded_file($file->tempfile, $uploadFile)) {
throw new Exception(
- 'Failed to move file to destination',
+ 'Nie udało się przenieść pliku do celu',
500
); // HTTP status code "500 Internal Server Error"
}
@@ -136,7 +136,7 @@ function uploadFile($file)
// Need to change permissions for the new file to make it world readable
if (!chmod($uploadFile, 0644)) {
throw new Exception(
- 'Failed to change file permissions',
+ 'Nie udało się zmienić uprawnień pliku',
500
); // HTTP status code "500 Internal Server Error"
}
@@ -223,8 +223,8 @@ if ($login->isLoggedIn()) {
$response->error($e->getCode(), $e->getMessage());
}
} else {
- $response->error(400, 'No input file(s)');
+ $response->error(400, 'Nie przesłano żadnego pliku');
}
} else {
- $response->error(403, 'You are not logged in');
+ $response->error(403, 'Nie jesteś zalogowana/y');
}