Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update translation #346

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/common/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,16 @@ bool Utils::showExitConfirmDialog(CloseType type, int count)
// 默认的count = 1的提示
title = QObject::tr("Close this terminal?");
txt = QObject::tr("There is still a process running in this terminal. "
"Closing the terminal will kill it.");
"Closing the terminal will terminate it.");
// count > 1 提示
if (count > 1) {
txt = QObject::tr("There are still %1 processes running in this terminal. "
"Closing the terminal will kill all of them.")
"Closing the terminal will terminate all of them.")
.arg(count);
}
} else {
title = QObject::tr("Close this window?");
txt = QObject::tr("There are still processes running in this window. Closing the window will kill all of them.");
txt = QObject::tr("There are still processes running in this window. Closing the window will terminate all of them.");
}

DDialog dlg(title, txt);
Expand All @@ -210,16 +210,16 @@ void Utils::getExitDialogText(CloseType type, QString &title, QString &txt, int

if (CloseType_Window == type) {
title = QObject::tr("Close this window?");
txt = QObject::tr("There are still processes running in this window. Closing the window will kill all of them.");
txt = QObject::tr("There are still processes running in this window. Closing the window will terminate all of them.");
} else {
// 默认的count = 1的提示
title = QObject::tr("Close this terminal?");
txt = QObject::tr("There is still a process running in this terminal. "
"Closing the terminal will kill it.");
"Closing the terminal will terminate it.");
// count > 1 提示
if (count > 1) {
txt = QObject::tr("There are still %1 processes running in this terminal. "
"Closing the terminal will kill all of them.")
"Closing the terminal will terminate all of them.")
.arg(count);
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/src/common/ut_utils_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ TEST_F(UT_Utils_Test, getExitDialogText)
Utils::getExitDialogText(temtype, title, txt, 0);

QString titleWindow = QObject::tr("Close this window?");
QString txtWindow = QObject::tr("There are still processes running in this window. Closing the window will kill all of them.");
QString txtWindow = QObject::tr("There are still processes running in this window. Closing the window will terminate all of them.");

EXPECT_NE(title, titleWindow);
EXPECT_NE(txt, txtWindow);
Expand All @@ -220,7 +220,7 @@ TEST_F(UT_Utils_Test, getExitDialogText)

QString titleDefault = QObject::tr("Close this terminal?");
QString txtDefault = QObject::tr("There is still a process running in this terminal. "
"Closing the terminal will kill it.");
"Closing the terminal will terminate it.");
temtype = Utils::CloseType::CloseType_Terminal;
Utils::getExitDialogText(temtype, title, txt, 1);
EXPECT_EQ(title, titleDefault);
Expand Down
18 changes: 9 additions & 9 deletions translations/deepin-terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,15 +718,15 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="182"/>
<location filename="../src/common/utils.cpp" line="216"/>
<source>There is still a process running in this terminal. Closing the terminal will kill it.</source>
<location filename="../src/common/utils.cpp" line="183"/>
<location filename="../src/common/utils.cpp" line="217"/>
<source>There is still a process running in this terminal. Closing the terminal will terminate it.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="186"/>
<location filename="../src/common/utils.cpp" line="220"/>
<source>There are still %1 processes running in this terminal. Closing the terminal will kill all of them.</source>
<location filename="../src/common/utils.cpp" line="187"/>
<location filename="../src/common/utils.cpp" line="221"/>
<source>There are still %1 processes running in this terminal. Closing the terminal will terminate all of them.</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand All @@ -736,9 +736,9 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="192"/>
<location filename="../src/common/utils.cpp" line="212"/>
<source>There are still processes running in this window. Closing the window will kill all of them.</source>
<location filename="../src/common/utils.cpp" line="193"/>
<location filename="../src/common/utils.cpp" line="213"/>
<source>There are still processes running in this window. Closing the window will terminate all of them.</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
12 changes: 6 additions & 6 deletions translations/deepin-terminal_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,14 +790,14 @@
<message>
<location filename="../src/common/utils.cpp" line="183"/>
<location filename="../src/common/utils.cpp" line="217"/>
<source>There is still a process running in this terminal. Closing the terminal will kill it.</source>
<translation>该终端中仍然有1个进程在运行,关闭终端将杀死进程。</translation>
<source>There is still a process running in this terminal. Closing the terminal will terminate it.</source>
<translation>该终端中仍然有1个进程在运行,关闭终端将终止进程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="187"/>
<location filename="../src/common/utils.cpp" line="221"/>
<source>There are still %1 processes running in this terminal. Closing the terminal will kill all of them.</source>
<translation>该终端中仍然有%1个进程在运行,关闭终端将杀死进程。</translation>
<source>There are still %1 processes running in this terminal. Closing the terminal will terminate all of them.</source>
<translation>该终端中仍然有%1个进程在运行,关闭终端将终止进程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="192"/>
Expand All @@ -808,8 +808,8 @@
<message>
<location filename="../src/common/utils.cpp" line="193"/>
<location filename="../src/common/utils.cpp" line="213"/>
<source>There are still processes running in this window. Closing the window will kill all of them.</source>
<translation>窗口内一些终端仍然有进程在运行,关闭窗口会杀死所有进程。</translation>
<source>There are still processes running in this window. Closing the window will terminate all of them.</source>
<translation>窗口内一些终端仍然有进程在运行,关闭窗口会终止所有进程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="230"/>
Expand Down
12 changes: 6 additions & 6 deletions translations/deepin-terminal_zh_HK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,14 +785,14 @@
<message>
<location filename="../src/common/utils.cpp" line="183"/>
<location filename="../src/common/utils.cpp" line="217"/>
<source>There is still a process running in this terminal. Closing the terminal will kill it.</source>
<translation>該終端中仍然有1個進程在運行,關閉終端將殺死進程。</translation>
<source>There is still a process running in this terminal. Closing the terminal will terminate it.</source>
<translation>該終端中仍然有1個進程在運行,關閉終端將終止進程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="187"/>
<location filename="../src/common/utils.cpp" line="221"/>
<source>There are still %1 processes running in this terminal. Closing the terminal will kill all of them.</source>
<translation>該終端中仍然有%1個進程在運行,關閉終端將殺死進程。</translation>
<source>There are still %1 processes running in this terminal. Closing the terminal will terminate all of them.</source>
<translation>該終端中仍然有%1個進程在運行,關閉終端將終止進程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="192"/>
Expand All @@ -803,8 +803,8 @@
<message>
<location filename="../src/common/utils.cpp" line="193"/>
<location filename="../src/common/utils.cpp" line="213"/>
<source>There are still processes running in this window. Closing the window will kill all of them.</source>
<translation>視窗內一些終端仍然有進程在運行,關閉視窗會殺死所有進程。</translation>
<source>There are still processes running in this window. Closing the window will terminate all of them.</source>
<translation>視窗內一些終端仍然有進程在運行,關閉視窗會終止所有進程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="230"/>
Expand Down
12 changes: 6 additions & 6 deletions translations/deepin-terminal_zh_TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,14 +785,14 @@
<message>
<location filename="../src/common/utils.cpp" line="183"/>
<location filename="../src/common/utils.cpp" line="217"/>
<source>There is still a process running in this terminal. Closing the terminal will kill it.</source>
<translation>該終端中仍然有1個進程在運行,關閉終端將殺死進程。</translation>
<source>There is still a process running in this terminal. Closing the terminal will terminate it.</source>
<translation>該終端中仍然有1個進程在運行,關閉終端將終止進程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="187"/>
<location filename="../src/common/utils.cpp" line="221"/>
<source>There are still %1 processes running in this terminal. Closing the terminal will kill all of them.</source>
<translation>該終端中仍然有%1個進程在運行,關閉終端將殺死進程。</translation>
<source>There are still %1 processes running in this terminal. Closing the terminal will terminate all of them.</source>
<translation>該終端中仍然有%1個進程在運行,關閉終端將終止進程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="192"/>
Expand All @@ -803,8 +803,8 @@
<message>
<location filename="../src/common/utils.cpp" line="193"/>
<location filename="../src/common/utils.cpp" line="213"/>
<source>There are still processes running in this window. Closing the window will kill all of them.</source>
<translation>窗口內一些終端仍然有進程在運行,關閉窗口會殺死所有進程。</translation>
<source>There are still processes running in this window. Closing the window will terminate all of them.</source>
<translation>窗口內一些終端仍然有進程在運行,關閉窗口會終止所有進程。</translation>
</message>
<message>
<location filename="../src/common/utils.cpp" line="230"/>
Expand Down
Loading