diff --git a/src/widget/tool/chattextedit.cpp b/src/widget/tool/chattextedit.cpp index d9ba2ee46..c1b31d162 100644 --- a/src/widget/tool/chattextedit.cpp +++ b/src/widget/tool/chattextedit.cpp @@ -20,7 +20,7 @@ ChatTextEdit::ChatTextEdit(QWidget *parent) : QTextEdit(parent) { - setPlaceholderText("Type your message here..."); + setPlaceholderText(tr("Type your message here...")); setAcceptRichText(false); } diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 9de668dfe..8a6a4cd57 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -1016,7 +1016,7 @@ void Widget::onMessageSendResult(int friendId, const QString& message, int messa return; if (!messageId) - f->chatForm->addSystemInfoMessage("Message failed to send", "red", QDateTime::currentDateTime()); + f->chatForm->addSystemInfoMessage(tr("Message failed to send"), "red", QDateTime::currentDateTime()); } void Widget::onGroupSendResult(int groupId, const QString& message, int result) @@ -1027,7 +1027,7 @@ void Widget::onGroupSendResult(int groupId, const QString& message, int result) return; if (result == -1) - g->chatForm->addSystemInfoMessage("Message failed to send", "red", QDateTime::currentDateTime()); + g->chatForm->addSystemInfoMessage(tr("Message failed to send"), "red", QDateTime::currentDateTime()); } void Widget::getPassword(QString info, int passtype, uint8_t* salt)