Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(l18n): make typing notification & groupchat name translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Diadlo committed Apr 23, 2016
1 parent 1c45ca3 commit 43e6104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/widget/form/chatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 43e6104

Please sign in to comment.