From 6d6dbcb55a6090920e6b056bcfc68297b8efea10 Mon Sep 17 00:00:00 2001 From: KillyMXI Date: Mon, 17 Jul 2017 16:06:57 +0300 Subject: www: better confirmation message, localized. --- juick-www/src/main/static/scripts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'juick-www/src/main/static/scripts.js') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 357b1c30..c24448ff 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -37,6 +37,7 @@ const translations = { 'en': { 'message.inReplyTo': 'in reply to', 'message.reply': 'Reply', + 'message.likeThisMessage?': 'Recommend this message?', 'postForm.pleaseInputMessageText': 'Please input message text', //'postForm.upload': 'upload', 'comment.writeComment': 'Write comment...', @@ -53,6 +54,7 @@ const translations = { 'ru': { 'message.inReplyTo': 'в ответ на', 'message.reply': 'Ответить', + 'message.likeThisMessage?': 'Рекомендовать это сообщение?', 'postForm.pleaseInputMessageText': 'Пожалуйста, введите текст сообщения', 'postForm.upload': 'загрузить', 'comment.writeComment': 'Написать комментарий...', @@ -538,7 +540,7 @@ function resultMessage(str) { } function likeMessage(e, mid) { - if (confirm('Are you sure?')) { + if (confirm(i18n('message.likeThisMessage?'))) { fetch('//juick.com/like?mid=' + mid, { method: 'POST', credentials: 'same-origin' -- cgit v1.2.3