Skip to content

Commit

Permalink
增加 俄语切换选项
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoSilverFox committed Apr 8, 2024
1 parent ba95a7a commit 6965b74
Show file tree
Hide file tree
Showing 12 changed files with 730 additions and 4 deletions.
3 changes: 2 additions & 1 deletion App/App.pro
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RESOURCES += \
resource.qrc

TRANSLATIONS += language_zh_CN.ts \
language_EN.ts
language_EN.ts \
language_RU.ts

RC_ICONS = logo_fox.ico
3 changes: 3 additions & 0 deletions App/bll_polychat.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ static void loadTranslator()

::translator_zn_CN = new QTranslator;
::translator_zn_CN->load(":/language/language_zh_CN.qm");

::translator_RU = new QTranslator;
::translator_RU->load(":/language/language_RU.qm");
}

}
Expand Down
1 change: 1 addition & 0 deletions App/db_localdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ extern ChatList* chatList ;
*/
static QTranslator* translator_EN;
static QTranslator* translator_zn_CN;
static QTranslator* translator_RU;


#endif // DB_LOCALDATA_H
Binary file modified App/language_EN.qm
Binary file not shown.
4 changes: 2 additions & 2 deletions App/language_EN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ Receipter</translation>
<message>
<location filename="tcpclient.ui" line="255"/>
<source>[EMPTY] Click `Save` to receive the file</source>
<translation></translation>
<translation>[EMPTY] Click `Save` to receive the file</translation>
</message>
<message>
<location filename="tcpclient.ui" line="292"/>
Expand Down Expand Up @@ -614,7 +614,7 @@ Are you sure you want to cancel receiving files?</translation>
<message>
<location filename="tcpserver.ui" line="20"/>
<source>Form</source>
<translation>Fine Sender</translation>
<translation>File Sender</translation>
</message>
<message>
<location filename="tcpserver.ui" line="70"/>
Expand Down
Binary file added App/language_RU.qm
Binary file not shown.
Loading

0 comments on commit 6965b74

Please sign in to comment.