From c4303ad566f224f65769c27e38f2934e5117a494 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Mon, 13 Dec 2021 18:22:04 +0200 Subject: [PATCH] Wall: Translate the post attachment menu --- Web/Presenters/templates/components/textArea.xml | 6 +++--- Web/static/js/al_wall.js | 2 +- locales/en.strings | 3 +++ locales/ru.strings | 3 +++ 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Web/Presenters/templates/components/textArea.xml b/Web/Presenters/templates/components/textArea.xml index 9dce51ac..0ee07eef 100644 --- a/Web/Presenters/templates/components/textArea.xml +++ b/Web/Presenters/templates/components/textArea.xml @@ -55,7 +55,7 @@
- Прикрепить + {_attach}
diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 90585a10..9d9d35cb 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -39,7 +39,7 @@ function handleUpload(id) { function initGraffiti(id) { let canvas = null; - let msgbox = MessageBox("Нарисовать граффити", "
", ["Сохранить", "Отменить"], [function() { + let msgbox = MessageBox(tr("draw_graffiti"), "
", [tr("save"), tr("cancel")], [function() { canvas.getImage({includeWatermark: false}).toBlob(blob => { let fName = "Graffiti-" + Math.ceil(performance.now()).toString() + ".jpeg"; let image = new File([blob], fName, {type: "image/jpeg", lastModified: new Date().getTime()}); diff --git a/locales/en.strings b/locales/en.strings index db8ebe38..5739c2c0 100644 --- a/locales/en.strings +++ b/locales/en.strings @@ -168,7 +168,10 @@ "contains_nsfw" = "Contains NSFW content"; "nsfw_warning" = "This post may have NSFW-content"; "report" = "Report"; +"attach" = "Attach"; "attach_photo" = "Attach photo"; +"attach_video" = "Attach video"; +"draw_graffiti" = "Draw graffiti"; "no_posts_abstract" = "Nobody wrote anything here... So far."; "attach_no_longer_available" = "This attachment is no longer available."; "open_post" = "Open post"; diff --git a/locales/ru.strings b/locales/ru.strings index 3f992323..5afda1ce 100644 --- a/locales/ru.strings +++ b/locales/ru.strings @@ -171,7 +171,10 @@ "contains_nsfw" = "Содержит NSFW-контент"; "nsfw_warning" = "Данный пост может содержать 18+ контент"; "report" = "Пожаловаться"; +"attach" = "Прикрепить"; "attach_photo" = "Прикрепить фото"; +"attach_video" = "Прикрепить видео"; +"draw_graffiti" = "Нарисовать граффити"; "no_posts_abstract" = "Здесь никто ничего не написал... Пока."; "attach_no_longer_available" = "Это вложение больше недоступно."; "open_post" = "Открыть запись";