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

Commit

Permalink
Update TS Files
Browse files Browse the repository at this point in the history
Update translations in textmsgtransceiver
  • Loading branch information
zty199 committed May 19, 2021
1 parent 777a823 commit 5836000
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/StudentClient/textmsgtransceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void TextMsgTransceiver::run()
connect(textrecv_socket, SIGNAL(readyRead()), this, SLOT(on_textReadyRead()), Qt::DirectConnection);

QString datetime = QDateTime::currentDateTime().toString("yyyy/MM/dd hh:mm:ss");
QString body = name + "[" + address.toString() + "] Connected\t" + datetime + "\n";
QString body = name + "[" + address.toString() + tr("] Connected\t") + datetime + "\n";
QString msg = body + "\n";

qint64 res;
Expand Down
Binary file modified src/StudentClient/translations/zh_CN.qm
Binary file not shown.
8 changes: 8 additions & 0 deletions src/StudentClient/translations/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,12 @@
<translation></translation>
</message>
</context>
<context>
<name>TextMsgTransceiver</name>
<message>
<location filename="../textmsgtransceiver.cpp" line="59"/>
<source>] Connected </source>
<translation>] 已连接 </translation>
</message>
</context>
</TS>
2 changes: 1 addition & 1 deletion src/TeacherServer/textmsgtransceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void TextMsgTransceiver::run()
connect(textrecv_socket, SIGNAL(readyRead()), this, SLOT(on_textReadyRead()), Qt::DirectConnection);

QString datetime = QDateTime::currentDateTime().toString("yyyy/MM/dd hh:mm:ss");
QString body = name + "[" + address.toString() + "] Connected\t" + datetime + "\n"; // 此处 Connected 翻译会出现发送数据大小异常导致接收不完整
QString body = name + "[" + address.toString() + tr("] Connected\t") + datetime + "\n"; // 此处 Connected 翻译会出现发送数据大小异常导致接收不完整
QString msg = body + "\n";

qint64 res;
Expand Down
Binary file modified src/TeacherServer/translations/zh_CN.qm
Binary file not shown.
8 changes: 8 additions & 0 deletions src/TeacherServer/translations/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,12 @@
<translation></translation>
</message>
</context>
<context>
<name>TextMsgTransceiver</name>
<message>
<location filename="../textmsgtransceiver.cpp" line="72"/>
<source>] Connected </source>
<translation>] 已连接 </translation>
</message>
</context>
</TS>

0 comments on commit 5836000

Please # to comment.