From 549456f15f1f9244d370ac72707e3e5bc42c7a06 Mon Sep 17 00:00:00 2001 From: zhangkun Date: Tue, 25 Jun 2024 14:24:10 +0800 Subject: [PATCH] chore: Update translation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kill -> terminate 杀死 -> 终止 Issue: https://github.com/linuxdeepin/developer-center/issues/9394 --- src/common/utils.cpp | 12 +- tests/src/common/ut_utils_test.cpp | 4 +- translations/deepin-terminal.ts | 424 +++++++++++++------------- translations/deepin-terminal_zh_CN.ts | 184 +++++------ 4 files changed, 320 insertions(+), 304 deletions(-) diff --git a/src/common/utils.cpp b/src/common/utils.cpp index 684e91feb..995619b6e 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -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); @@ -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); } } diff --git a/tests/src/common/ut_utils_test.cpp b/tests/src/common/ut_utils_test.cpp index 599b37cc2..0840410d9 100644 --- a/tests/src/common/ut_utils_test.cpp +++ b/tests/src/common/ut_utils_test.cpp @@ -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); @@ -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); diff --git a/translations/deepin-terminal.ts b/translations/deepin-terminal.ts index 6ae205fbc..43d747b30 100644 --- a/translations/deepin-terminal.ts +++ b/translations/deepin-terminal.ts @@ -245,35 +245,35 @@ MainWindow - - + + New window - + Settings - + Cancel button - + Close button - + Type path to download file - + Custom Theme @@ -307,364 +307,375 @@ - Hide Quake window after losing focus + Allow Ctrl+scrollwheel to zoom text size - Quake window animation speed + Hide Quake window after losing focus + Quake window animation speed + + + + Blur background - + Use on starting - + Font - + Font size - - + + Opacity - + Advanced - + Cursor - + Scroll - + Window - + Basic - + Interface - + Shortcuts - - + + Others - + - + + Terminal - + Workspace - - + + Custom commands - - + + Display shortcuts - - + + Remote management - - + + New tab - - + + Next tab - - + + Previous tab - - + + Select left workspace - - + + Select lower workspace - - + + Select right workspace - - + + Select upper workspace - + Tab titles - - + + Go to tab 1 - - + + Go to tab 2 - - + + Go to tab 3 - - + + Go to tab 4 - - + + Go to tab 5 - - + + Go to tab 6 - - + + Go to tab 7 - - + + Go to tab 8 - - + + Go to tab 9 - + Disable flow control using Ctrl+S, Ctrl+Q - + Shell profile - + History size - + Include special character(s) in double click selections + + + Allow Ctrl + left mouse click to set cursor position + + - - - + + + Rename title - - + + Fullscreen - - + + Copy - - + + Default size - - + + Paste - + Search - - + + Select all - + Jump to next command - + Jump to previous command - - + + Zoom in - - + + Zoom out - + Close other windows - - - + + + Close other workspaces - + Could not find "%1", starting "%2" instead. Please check your shell profile. - + Could not open "%1", unable to run it - + Could not find "%1", unable to run it - + Output has been suspended by pressing Ctrl+S. Pressing Ctrl+Q to resume. - + Close window - - - + + + Close workspace - - + + Horizontal split - - + + Vertical split - - + + Find - + - + please set another one. @@ -674,93 +685,93 @@ - + Tabs - - + + Close tab - + Select tab - + Switch focus to "+" icon - - + + Select file to upload - - + + Upload - + Programs are still running in terminal - - + + Close this terminal? - - - There is still a process running in this terminal. Closing the terminal will kill it. + + + There is still a process running in this terminal. Closing the terminal will terminate it. - - - There are still %1 processes running in this terminal. Closing the terminal will kill all of them. + + + There are still %1 processes running in this terminal. Closing the terminal will terminate all of them. - - + + Close this window? - - - There are still processes running in this window. Closing the window will kill all of them. + + + There are still processes running in this window. Closing the window will terminate all of them. - - + + Select a directory to save the file - + Are you sure you want to uninstall it? - - + + Are you sure you want to uninstall this application? - - + + You will not be able to use Terminal any longer. @@ -768,81 +779,81 @@ - + Cancel button - - + + OK button - + Execute a command in the terminal - + Run script string in the terminal - + Set the work directory - + Set the window mode on starting - + Run in quake mode - + Keep terminal open when command finishes - + The name should be no more than 32 characters - - - + + + Select - + Select the private key file - + Tab title format - + Remote tab title format - - + + Close other tabs @@ -962,80 +973,85 @@ - + + No Group + + + + Path: - + Command: - + Encoding: - + Backspace key: - + Delete key: - + Cancel button - + Add button - + Edit Server - + Save button - + Please enter a server name - + Please enter an IP address - + Please enter a port - + Please enter a username - + The server name already exists, - + please input another one. @@ -1043,7 +1059,7 @@ Service - + OK button @@ -1052,32 +1068,32 @@ Settings - + Split screen - + Fullscreen - + Normal window - + Maximum - + Fast - + Slow @@ -1157,90 +1173,90 @@ TermWidget - + Copy - + Paste - + Open - + Open in file manager - - + + Horizontal split - - + + Vertical split - - + + New tab - + Exit fullscreen - + Fullscreen - + Find - + Search - + Encoding - + Custom commands - + Remote management - + Upload file - + Download file - + Settings @@ -1248,21 +1264,21 @@ Utils - - + + Cancel button - + Close button - - + + OK button diff --git a/translations/deepin-terminal_zh_CN.ts b/translations/deepin-terminal_zh_CN.ts index 3b9e35d6a..2e32cbf9d 100644 --- a/translations/deepin-terminal_zh_CN.ts +++ b/translations/deepin-terminal_zh_CN.ts @@ -245,35 +245,35 @@ MainWindow - - + + New window 新建窗口 - + Settings 设置 - + Cancel button 取 消 - + Close button 关 闭 - + Type path to download file 请输入下载文件的路径 - + Custom Theme 自定义主题 @@ -303,36 +303,36 @@ 确 定 - + - + Close workspace 关闭工作区 - + - + Close other workspaces 关闭其他工作区 - + Could not find "%1", starting "%2" instead. Please check your shell profile. 找不到 “%1”,已启动“%2”代替。请检查Shell配置。 - + Could not open "%1", unable to run it 打不开“%1”,无法正常使用 - + Could not find "%1", unable to run it 找不到“%1”,无法正常使用 - + Output has been suspended by pressing Ctrl+S. Pressing Ctrl+Q to resume. 已经按下Ctrl+S,输出被挂起。可以按下Ctrl+Q继续。 @@ -352,19 +352,19 @@ - + Rename title 重命名标题 - + Close tab 关闭标签页 - + Close other tabs 关闭其他标签页 @@ -431,7 +431,7 @@ - + Opacity 透明度 @@ -472,15 +472,15 @@ - + Others 其他 - - + + Terminal 终端 @@ -491,43 +491,43 @@ - + Custom commands 自定义命令 - + Display shortcuts 显示快捷键 - + Remote management 远程管理 - + Fullscreen 全屏 - + Copy 复制 - + Default size 默认大小 - + Paste 粘贴 @@ -538,7 +538,7 @@ - + Select all 全选 @@ -554,13 +554,13 @@ - + Zoom in 放大 - + Zoom out 缩小 @@ -576,61 +576,61 @@ - + Horizontal split 横向分屏 - + New tab 新建标签页 - + Next tab 下一个标签页 - + Previous tab 上一个标签页 - + Select left workspace 选择左边的工作区 - + Select lower workspace 选择下面的工作区 - + Select right workspace 选择右边的工作区 - + Select upper workspace 选择上面的工作区 - + Vertical split 纵向分屏 - + Find 查找 @@ -641,55 +641,55 @@ - + Go to tab 1 切换到标签 1 - + Go to tab 2 切换到标签 2 - + Go to tab 3 切换到标签 3 - + Go to tab 4 切换到标签 4 - + Go to tab 5 切换到标签 5 - + Go to tab 6 切换到标签 6 - + Go to tab 7 切换到标签 7 - + Go to tab 8 切换到标签 8 - + Go to tab 9 切换到标签 9 @@ -731,7 +731,7 @@ - + Select 选择 @@ -742,40 +742,40 @@ 终端是一款集工作区、多窗口、远程管理、雷神模式等功能的高级终端模拟器。 - + Tabs 标签页 - + Switch focus to "+" icon 光标焦点切换至“+”图标 - + Select tab 选择标签页 - + Select file to upload 选择要上传的文件 - + Upload 上传 - + Select a directory to save the file 选择下载文件的保存目录 - + please set another one. @@ -790,14 +790,14 @@ - There is still a process running in this terminal. Closing the terminal will kill it. - 该终端中仍然有1个进程在运行,关闭终端将杀死进程。 + There is still a process running in this terminal. Closing the terminal will terminate it. + 该终端中仍然有1个进程在运行,关闭终端将终止进程。 - There are still %1 processes running in this terminal. Closing the terminal will kill all of them. - 该终端中仍然有%1个进程在运行,关闭终端将杀死进程。 + There are still %1 processes running in this terminal. Closing the terminal will terminate all of them. + 该终端中仍然有%1个进程在运行,关闭终端将终止进程。 @@ -808,8 +808,8 @@ - There are still processes running in this window. Closing the window will kill all of them. - 窗口内一些终端仍然有进程在运行,关闭窗口会杀死所有进程。 + There are still processes running in this window. Closing the window will terminate all of them. + 窗口内一些终端仍然有进程在运行,关闭窗口会终止所有进程。 @@ -1067,7 +1067,7 @@ Service - + OK button 确 定 @@ -1076,32 +1076,32 @@ Settings - + Normal window 正常窗口 - + Split screen 分屏 - + Maximum 最大化 - + Fullscreen 全屏 - + Fast - + Slow @@ -1181,90 +1181,90 @@ TermWidget - + Copy 复制 - + Paste 粘贴 - + Open 打开 - + Open in file manager 在文件管理器中打开 - - + + Horizontal split 横向分屏 - - + + Vertical split 纵向分屏 - - + + New tab 新建标签页 - + Exit fullscreen 退出全屏 - + Fullscreen 全屏 - + Find 查找 - + Search 搜索 - + Encoding 编码 - + Custom commands 自定义命令 - + Remote management 远程管理 - + Upload file 上传文件 - + Download file 下载文件 - + Settings 设置