From e9c056367dd63e1b86a9611e8df79728429ba05f Mon Sep 17 00:00:00 2001 From: Tiffany Fung Date: Tue, 12 Sep 2023 09:04:13 +0800 Subject: [PATCH] Add more translations for zh-hans --- Platform/iOS/zh-Hans.lproj/InfoPlist.strings | 3 ++ Platform/zh-Hans.lproj/Localizable.strings | 30 +++++++++++++++++++ .../zh-Hans.lproj/Localizable.stringsdict | 20 +++++++++++++ UTM.xcodeproj/project.pbxproj | 4 +++ zh-Hans.lproj/QEMULauncher-InfoPlist.strings | 3 ++ 5 files changed, 60 insertions(+) create mode 100644 Platform/zh-Hans.lproj/Localizable.stringsdict create mode 100644 zh-Hans.lproj/QEMULauncher-InfoPlist.strings diff --git a/Platform/iOS/zh-Hans.lproj/InfoPlist.strings b/Platform/iOS/zh-Hans.lproj/InfoPlist.strings index 568426f0..831cdb05 100644 --- a/Platform/iOS/zh-Hans.lproj/InfoPlist.strings +++ b/Platform/iOS/zh-Hans.lproj/InfoPlist.strings @@ -1,3 +1,6 @@ +/* Bundle name */ +"CFBundleName" = "UTM SE"; + /* Privacy - Local Network Usage Description */ "NSLocalNetworkUsageDescription" = "虚拟机可以访问本地网络。UTM 还使用本地网络与 AltServer 通信。"; diff --git a/Platform/zh-Hans.lproj/Localizable.strings b/Platform/zh-Hans.lproj/Localizable.strings index 7f7bddf9..85c2e714 100644 --- a/Platform/zh-Hans.lproj/Localizable.strings +++ b/Platform/zh-Hans.lproj/Localizable.strings @@ -184,6 +184,9 @@ /* VMMetalView */ "Capture Input" = "捕获输入"; +/* No comment provided by engineer. */ +"Capture input automatically when entering full screen" = "进入全屏时自动捕获输入"; + /* VMDisplayQemuMetalWindowController */ "Captured mouse" = "鼠标已捕获"; @@ -292,6 +295,9 @@ /* No comment provided by engineer. */ "Do not show prompt when USB device is plugged in" = "插入 USB 设备时不显示提示"; +/* No comment provided by engineer. */ +"Do you want to copy this VM and all its data to internal storage?" = "要将此虚拟机及其所有数据拷贝到内部存储吗?"; + /* No comment provided by engineer. */ "Do you want to delete this VM and all its data?" = "要删除此虚拟机及其所有数据吗?"; @@ -385,6 +391,9 @@ /* UTMDownloadVMTask */ "Failed to parse the downloaded VM." = "解析下载的虚拟机失败。"; +/* VMDisplayWindowController */ +"Failed to save suspend state" = "无法保存挂起状态。"; + /* UTMQemuVirtualMachine */ "Failed to save VM snapshot. Usually this means at least one device does not support snapshots. %@" = "保存虚拟机快照失败。通常这意味着至少有一台设备不支持快照。%@"; @@ -581,6 +590,9 @@ /* UTMAppleConfigurationDevices */ "Mouse" = "鼠标"; +/* No comment provided by engineer. */ +"Mouse/Keyboard" = "鼠标/键盘"; + /* No comment provided by engineer. */ "Move Down" = "下移"; @@ -935,6 +947,9 @@ /* UTMQemuVirtualMachine */ "Suspend is not supported when GPU acceleration is enabled." = "启用 GPU 加速时不支持挂起。"; +/* UTMQemuVirtualMachine */ +"Suspend state cannot be saved when running in disposible mode." = "在一次性模式下运行时,无法保存挂起状态。"; + /* VMData */ "Suspended" = "已挂起"; @@ -959,9 +974,21 @@ /* No comment provided by engineer. */ "Test" = "测试"; +/* No comment provided by engineer. */ +"Test 1" = "测试 1"; + +/* No comment provided by engineer. */ +"Test 2" = "测试 2"; + /* UTMConfiguration */ "The backend for this configuration is not supported." = "不支持此配置的后端。"; +/* UTMScriptingUSBDeviceImpl */ +"The device cannot be found." = "找不到该设备。"; + +/* UTMScriptingUSBDeviceImpl */ +"The device is not currently connected." = "设备目前尚未连接。"; + /* UTMConfiguration */ "The drive '%@' already exists and cannot be created." = "驱动器 '%@' 已存在,无法创建。"; @@ -1153,6 +1180,9 @@ /* No comment provided by engineer. */ "VM display size is fixed" = "虚拟机显示大小为固定"; +/* No comment provided by engineer. */ +"Waiting for VM to connect to display..." = "等待虚拟机连接到显示..."; + /* No comment provided by engineer. */ "Welcome to UTM" = "欢迎使用 UTM"; diff --git a/Platform/zh-Hans.lproj/Localizable.stringsdict b/Platform/zh-Hans.lproj/Localizable.stringsdict new file mode 100644 index 00000000..9d1a6ebe --- /dev/null +++ b/Platform/zh-Hans.lproj/Localizable.stringsdict @@ -0,0 +1,20 @@ + + + + + %lld Cores + + NSStringLocalizedFormatKey + %#@cores@ + cores + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + lld + other + %lld 核心 + + + + diff --git a/UTM.xcodeproj/project.pbxproj b/UTM.xcodeproj/project.pbxproj index 08d1ab05..ebef907f 100644 --- a/UTM.xcodeproj/project.pbxproj +++ b/UTM.xcodeproj/project.pbxproj @@ -1700,6 +1700,8 @@ F6DA2DAD2AAFEDAC0070DCD1 /* zh-HK */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-HK"; path = "zh-HK.lproj/QEMULauncher-InfoPlist.strings"; sourceTree = ""; }; F6DA2DAE2AAFEE060070DCD1 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/VMDisplayMetalViewInputAccessory.strings"; sourceTree = ""; }; F6DA2DAF2AAFEE060070DCD1 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/VMDisplayWindow.strings"; sourceTree = ""; }; + F6DA2DB02AAFF0640070DCD1 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/QEMULauncher-InfoPlist.strings"; sourceTree = ""; }; + F6DA2DB12AAFF0640070DCD1 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.stringsdict"; sourceTree = ""; }; FF0307542A84E3B70049979B /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/QEMULauncher-InfoPlist.strings"; sourceTree = ""; }; FF0307562A84E3B70049979B /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "zh-Hant"; path = "zh-Hant.lproj/Localizable.stringsdict"; sourceTree = ""; }; FF0307572A84E3B70049979B /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/VMDisplayMetalViewInputAccessory.strings"; sourceTree = ""; }; @@ -3472,6 +3474,7 @@ CEB54C17293009C8000D2AA9 /* pl */, FF0307562A84E3B70049979B /* zh-Hant */, F6DA2DAA2AAFED5F0070DCD1 /* zh-HK */, + F6DA2DB12AAFF0640070DCD1 /* zh-Hans */, ); name = Localizable.stringsdict; sourceTree = ""; @@ -3481,6 +3484,7 @@ children = ( FF0307542A84E3B70049979B /* zh-Hant */, F6DA2DAD2AAFEDAC0070DCD1 /* zh-HK */, + F6DA2DB02AAFF0640070DCD1 /* zh-Hans */, ); name = "QEMULauncher-InfoPlist.strings"; sourceTree = ""; diff --git a/zh-Hans.lproj/QEMULauncher-InfoPlist.strings b/zh-Hans.lproj/QEMULauncher-InfoPlist.strings new file mode 100644 index 00000000..b0542732 --- /dev/null +++ b/zh-Hans.lproj/QEMULauncher-InfoPlist.strings @@ -0,0 +1,3 @@ +/* Bundle name */ +"CFBundleName" = "QEMULauncher"; +