From fe4b46f924aed3e9fb8936456304d03587ecf478 Mon Sep 17 00:00:00 2001 From: Pavel Mineev Date: Thu, 12 Mar 2020 22:53:11 +0300 Subject: [PATCH] fix id and generate langs --- frontend/app/components/comment-form/comment-form.tsx | 2 +- frontend/app/locales/de.json | 1 + frontend/app/locales/en.json | 1 + frontend/app/locales/ru.json | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/comment-form/comment-form.tsx b/frontend/app/components/comment-form/comment-form.tsx index 1d0c16a8..4f99036b 100644 --- a/frontend/app/components/comment-form/comment-form.tsx +++ b/frontend/app/components/comment-form/comment-form.tsx @@ -89,7 +89,7 @@ const messages = defineMessages({ defaultMessage: 'Something went wrong. Please try again a bit later.', }, anonymousUploadingDisabled: { - id: 'commentForm.unexpected-error', + id: 'commentForm.anonymous-uploading-disabled', defaultMessage: 'Image uploading is disabled for unauthorized users. You should login before uploading.', }, }); diff --git a/frontend/app/locales/de.json b/frontend/app/locales/de.json index a293b1ab..37f18e29 100644 --- a/frontend/app/locales/de.json +++ b/frontend/app/locales/de.json @@ -52,6 +52,7 @@ "comment.verified-user": "Bestätigter Benutzer", "comment.verify-user": "Möchtest du den Benutzer {userName} wirklich bestätigen?", "comment.vote-error": "Fehler beim Abstimmen: {voteErrorMessage}", + "commentForm.anonymous-uploading-disabled": "Image uploading is disabled for unauthorized users. You should login before uploading.", "commentForm.exceeded-size": "Die Datei {fileName} überschreitet das Größenlimit von {maxImageSize}", "commentForm.input-placeholder": "Gib hier deinen Kommentar ein", "commentForm.new-comment": "Neuer Kommentar", diff --git a/frontend/app/locales/en.json b/frontend/app/locales/en.json index d2dddbc9..a140e9bf 100644 --- a/frontend/app/locales/en.json +++ b/frontend/app/locales/en.json @@ -52,6 +52,7 @@ "comment.verified-user": "Verified user", "comment.verify-user": "Do you want to verify {userName}?", "comment.vote-error": "Voting error: {voteErrorMessage}", + "commentForm.anonymous-uploading-disabled": "Image uploading is disabled for unauthorized users. You should login before uploading.", "commentForm.exceeded-size": "{fileName} exceeds size limit of {maxImageSize}", "commentForm.input-placeholder": "Your comment here", "commentForm.new-comment": "New comment", diff --git a/frontend/app/locales/ru.json b/frontend/app/locales/ru.json index 3fb79196..ff76d79c 100644 --- a/frontend/app/locales/ru.json +++ b/frontend/app/locales/ru.json @@ -52,6 +52,7 @@ "comment.verified-user": "Подлинная учетная запись", "comment.verify-user": "Подвердить подлинность учетной записи для {userName}?", "comment.vote-error": "Ошибка голосования: {voteErrorMessage}", + "commentForm.anonymous-uploading-disabled": "Image uploading is disabled for unauthorized users. You should login before uploading.", "commentForm.exceeded-size": "Размер файла {fileName} должен быть меньше чем {maxImageSize}", "commentForm.input-placeholder": "Написать комментарий", "commentForm.new-comment": "New comment",