From 458beb599281ae6a9179a37c27a006dd3721c3fe Mon Sep 17 00:00:00 2001 From: Mandragorat Wandystanu Date: Wed, 30 May 2018 15:54:18 +0200 Subject: Translate messages into Polish. It was planned to be done at first using GNU Gettext, but for our internal purposes it's an overkill. --- static/php/upload.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'static/php/upload.php') 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'); } -- cgit v1.2.3