1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(l18n): make typing notification & groupchat name translatable

This commit is contained in:
Diadlo 2016-04-23 01:04:31 +03:00
parent 1c45ca3116
commit 43e610415a
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
2 changed files with 2 additions and 2 deletions

View File

@ -885,7 +885,7 @@ void ChatForm::setFriendTyping(bool isTyping)
chatWidget->setTypingNotificationVisible(isTyping);
Text* text = static_cast<Text*>(chatWidget->getTypingNotification()->getContent(1));
text->setText("<div class=typing>" + QString("%1 is typing").arg(f->getDisplayedName().toHtmlEscaped()) + "</div>");
text->setText("<div class=typing>" + tr("%1 is typing").arg(f->getDisplayedName().toHtmlEscaped()) + "</div>");
}
void ChatForm::show(ContentLayout* contentLayout)

View File

@ -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)