Skip to content

Commit 484f665

Browse files
committed
fix
1 parent d35a0b3 commit 484f665

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ int main(int argc, char *argv[])
1010

1111
// 使用 tr() 添加两条翻译字段
1212
QString greeting = QObject::tr("Hello, welcome to the application!");
13-
// QString warningMessage = QObject::tr("This is a warning message.");
13+
QString warningMessage = QObject::tr("This is a warning message.");
1414
// QString errorMessage = QObject::tr("This is an error message.");
1515
// QString errorMessage2 = QObject::tr("test !!!");
1616
// QString errorMessage3 = QObject::tr("ok");

translations/TestAIDemo_az.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
<source>Hello, welcome to the application!</source>
99
<translation>Salam, tətbiqə xoş gəlmisiniz!</translation>
1010
</message>
11+
<message>
12+
<location filename="../main.cpp" line="13"/>
13+
<source>This is a warning message.</source>
14+
<translation type="unfinished"></translation>
15+
</message>
1116
</context>
1217
</TS>

translations/TestAIDemo_en.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
<source>Hello, welcome to the application!</source>
99
<translation>Hello, welcome to the application!</translation>
1010
</message>
11+
<message>
12+
<location filename="../main.cpp" line="13"/>
13+
<source>This is a warning message.</source>
14+
<translation type="unfinished"></translation>
15+
</message>
1116
</context>
1217
</TS>

translations/TestAIDemo_zh_CN.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
<source>Hello, welcome to the application!</source>
99
<translation>你好,欢迎使用本应用程序!</translation>
1010
</message>
11+
<message>
12+
<location filename="../main.cpp" line="13"/>
13+
<source>This is a warning message.</source>
14+
<translation type="unfinished"></translation>
15+
</message>
1116
</context>
1217
</TS>

translations/TestAIDemo_zh_TW.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
<source>Hello, welcome to the application!</source>
99
<translation>你好,歡迎使用本應用程式!</translation>
1010
</message>
11+
<message>
12+
<location filename="../main.cpp" line="13"/>
13+
<source>This is a warning message.</source>
14+
<translation type="unfinished"></translation>
15+
</message>
1116
</context>
1217
</TS>

0 commit comments

Comments
 (0)