From 43e610415a094a649160bdfab1c571a8fc6fee1f Mon Sep 17 00:00:00 2001 From: Diadlo Date: Sat, 23 Apr 2016 01:04:31 +0300 Subject: [PATCH] fix(l18n): make typing notification & groupchat name translatable --- src/widget/form/chatform.cpp | 2 +- src/widget/widget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index 2ea304933..2d8fb4fc7 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -885,7 +885,7 @@ void ChatForm::setFriendTyping(bool isTyping) chatWidget->setTypingNotificationVisible(isTyping); Text* text = static_cast(chatWidget->getTypingNotification()->getContent(1)); - text->setText("
" + QString("%1 is typing").arg(f->getDisplayedName().toHtmlEscaped()) + "
"); + text->setText("
" + tr("%1 is typing").arg(f->getDisplayedName().toHtmlEscaped()) + "
"); } void ChatForm::show(ContentLayout* contentLayout) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 6253ca5ec..fd277207a 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -1629,7 +1629,7 @@ Group *Widget::createGroup(int groupId) return nullptr; } - QString groupName = QString("Groupchat #%1").arg(groupId); + QString groupName = tr("Groupchat #%1").arg(groupId); CoreAV* coreAv = core->getAv(); if (!coreAv)