mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #3179
Diadlo (1): fix(l18n): make typing notification & groupchat name translatable
This commit is contained in:
commit
6dd1cd0320
|
@ -885,7 +885,7 @@ void ChatForm::setFriendTyping(bool isTyping)
|
||||||
chatWidget->setTypingNotificationVisible(isTyping);
|
chatWidget->setTypingNotificationVisible(isTyping);
|
||||||
|
|
||||||
Text* text = static_cast<Text*>(chatWidget->getTypingNotification()->getContent(1));
|
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)
|
void ChatForm::show(ContentLayout* contentLayout)
|
||||||
|
|
|
@ -1629,7 +1629,7 @@ Group *Widget::createGroup(int groupId)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString groupName = QString("Groupchat #%1").arg(groupId);
|
QString groupName = tr("Groupchat #%1").arg(groupId);
|
||||||
CoreAV* coreAv = core->getAv();
|
CoreAV* coreAv = core->getAv();
|
||||||
|
|
||||||
if (!coreAv)
|
if (!coreAv)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user