aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--juick-www/src/main/static/scripts.js4
1 files changed, 3 insertions, 1 deletions
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'