diff options
author | Jonas Kohl | 2024-10-11 14:42:25 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-10-11 14:42:25 +0200 |
commit | 307b61ad625956e478c16f406061c9751baa928a (patch) | |
tree | d6a634bc05f7b94d79003d174c3fda1fb1ce5c56 /src/application | |
parent | ed228805999e0103297ddc41a0304f0845cb6800 (diff) |
i18n fixes
Diffstat (limited to 'src/application')
-rw-r--r-- | src/application/actions/attachment/get.php | 2 | ||||
-rw-r--r-- | src/application/actions/lookupuser/get.php | 2 | ||||
-rw-r--r-- | src/application/actions/profilepicture/get.php | 2 | ||||
-rw-r--r-- | src/application/actions/thumb/get.php | 2 | ||||
-rw-r--r-- | src/application/actions/verifyemail/get.php | 4 | ||||
-rw-r--r-- | src/application/actions/viewtopic/_common.php | 4 | ||||
-rw-r--r-- | src/application/actions/viewuser/_common.php | 2 | ||||
-rw-r--r-- | src/application/messages/de.msg | 25 |
8 files changed, 32 insertions, 11 deletions
diff --git a/src/application/actions/attachment/get.php b/src/application/actions/attachment/get.php index 598bdb9..39f14a3 100644 --- a/src/application/actions/attachment/get.php +++ b/src/application/actions/attachment/get.php @@ -9,7 +9,7 @@ if (!$currentUser) { exit; } -$attId = $_GET["attachment"] ?? throw new Exception("Missing attachment id"); +$attId = $_GET["attachment"] ?? throw new Exception(__("Missing attachment id")); $attachment = new Attachment(); $attachment->id = $attId; if (!$db->fetch($attachment)) { diff --git a/src/application/actions/lookupuser/get.php b/src/application/actions/lookupuser/get.php index ca6c6f3..74143f4 100644 --- a/src/application/actions/lookupuser/get.php +++ b/src/application/actions/lookupuser/get.php @@ -2,7 +2,7 @@ use mystic\forum\orm\User; -$userHandle = $_GET["handle"] ?? throw new Exception("Missing handle"); +$userHandle = $_GET["handle"] ?? throw new Exception(__("Missing handle")); $user = new User(); $user->name = $userHandle; diff --git a/src/application/actions/profilepicture/get.php b/src/application/actions/profilepicture/get.php index c4860f1..abf9135 100644 --- a/src/application/actions/profilepicture/get.php +++ b/src/application/actions/profilepicture/get.php @@ -2,7 +2,7 @@ use mystic\forum\orm\User; -$userId = $_GET["user"] ?? throw new Exception("Missing user id"); +$userId = $_GET["user"] ?? throw new Exception(__("Missing user id")); $user = new User(); $user->id = $userId; if (!$db->fetch($user)) { diff --git a/src/application/actions/thumb/get.php b/src/application/actions/thumb/get.php index c34bf92..d03e5f9 100644 --- a/src/application/actions/thumb/get.php +++ b/src/application/actions/thumb/get.php @@ -5,7 +5,7 @@ use FFMpeg\FFMpeg; use FFMpeg\FFProbe; use mystic\forum\orm\Attachment; -$attId = $_GET["attachment"] ?? throw new Exception("Missing attachment id"); +$attId = $_GET["attachment"] ?? throw new Exception(__("Missing attachment id")); $attachment = new Attachment(); $attachment->id = $attId; if (!$db->fetch($attachment)) { diff --git a/src/application/actions/verifyemail/get.php b/src/application/actions/verifyemail/get.php index 77a1ef4..2cc2707 100644 --- a/src/application/actions/verifyemail/get.php +++ b/src/application/actions/verifyemail/get.php @@ -6,8 +6,8 @@ use Symfony\Component\Mailer\Transport; use Symfony\Component\Mime\Address; use Symfony\Component\Mime\Email; -$token = $_GET["token"] ?? throw new Exception("Missing token"); -$sig = $_GET["sig"] ?? throw new Exception("Missing signature"); +$token = $_GET["token"] ?? throw new Exception(__("Missing token")); +$sig = $_GET["sig"] ?? throw new Exception(__("Missing signature")); $user = new User(); $user->activationToken = $token; diff --git a/src/application/actions/viewtopic/_common.php b/src/application/actions/viewtopic/_common.php index 7f249bb..b257237 100644 --- a/src/application/actions/viewtopic/_common.php +++ b/src/application/actions/viewtopic/_common.php @@ -3,11 +3,11 @@ use mystic\forum\orm\Topic; $formId = "addpost"; -$topicId = $_GET["topic"] ?? throw new Exception("Missing topic id"); +$topicId = $_GET["topic"] ?? throw new Exception(__("Missing topic id")); $topic = new Topic(); $topic->id = $topicId; if (!$db->fetch($topic)) { http_response_code(404); - msg_error("No topic exists with this id"); + msg_error(__("No topic exists with this id")); exit; } diff --git a/src/application/actions/viewuser/_common.php b/src/application/actions/viewuser/_common.php index 3f8236c..52d0d05 100644 --- a/src/application/actions/viewuser/_common.php +++ b/src/application/actions/viewuser/_common.php @@ -2,7 +2,7 @@ use mystic\forum\orm\User; -$userId = $_GET["user"] ?? throw new Exception("Missing user id"); +$userId = $_GET["user"] ?? throw new Exception(__("Missing user id")); $user = new User(); $user->id = $userId; if (!$db->fetch($user)) { diff --git a/src/application/messages/de.msg b/src/application/messages/de.msg index 46b48b3..a81248f 100644 --- a/src/application/messages/de.msg +++ b/src/application/messages/de.msg @@ -70,7 +70,7 @@ metadata({ "%forum_copyright%" = "Willkommen bei %forum_title%, %user_display_name%!\n" "\n" - "Bitte aktivieren Sie Ihr Nutzerkonto, indem Sie folgenen Link anklicken:\n" + "Bitte aktivieren Sie Ihr Nutzerkonto, indem Sie folgenden Link anklicken:\n" "%activation_link%\n" "" "Mit freundlichen Grüßen,\n" @@ -132,7 +132,7 @@ metadata({ = "Sie müssen angemeldet sein, um Anhänge sehen zu können" : "No attachment exists with this id" -= "Kein Anhang exsitier mit dieser ID" += "Kein Anhang existiert mit dieser ID" : "Attachment is neither an image nor a video" = "Anhang ist weder Bild noch Video" @@ -300,6 +300,9 @@ metadata({ - "%n% Dateien ausgewählt" - "Keine Datei ausgewählt" +: "No topic exists with this id" += "Kein Thema existiert mit dieser ID" + : "Created this topic" = "Hat dieses Thema erstellt" @@ -473,3 +476,21 @@ metadata({ : "%user% changed the title of this topic from %old_title% to %new_title%" = "%user% hat den Titel dieses Themas von %old_title% zu %new_title% geändert" + +: "Missing topic id" += "Thema-ID nicht gegeben" + +: "Missing attachment id" += "Anhangs-ID nicht gegeben" + +: "Missing handle" += "Nutzername nicht gegeben" + +: "Missing user id" += "Nutzer-ID nicht gegeben" + +: "Missing token" += "Token nicht gegeben" + +: "Missing signature" += "Signatur nicht gegeben" |