From 1ea34de4e0709dc6885bfd6c8818dcd9ed3384d2 Mon Sep 17 00:00:00 2001 From: Tiffany Fung <46277006+changanmoon@users.noreply.github.com> Date: Mon, 25 Nov 2024 07:11:58 +0800 Subject: [PATCH] Import translations for `zh-HK` --- FinderOpen/InfoPlist.xcstrings | 54 +++++++++ Pearcleaner.xcodeproj/project.pbxproj | 8 ++ Pearcleaner/Resources/InfoPlist.xcstrings | 114 ++++++++++++++++++ Pearcleaner/Resources/Localizable.xcstrings | 126 +++++++++++++++++++- 4 files changed, 300 insertions(+), 2 deletions(-) create mode 100644 FinderOpen/InfoPlist.xcstrings create mode 100644 Pearcleaner/Resources/InfoPlist.xcstrings diff --git a/FinderOpen/InfoPlist.xcstrings b/FinderOpen/InfoPlist.xcstrings new file mode 100644 index 0000000..9ce9c64 --- /dev/null +++ b/FinderOpen/InfoPlist.xcstrings @@ -0,0 +1,54 @@ +{ + "sourceLanguage" : "en", + "strings" : { + "CFBundleDisplayName" : { + "comment" : "Bundle display name", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "FinderOpen" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "FinderOpen" + } + } + } + }, + "CFBundleName" : { + "comment" : "Bundle name", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "FinderOpen" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "FinderOpen" + } + } + } + }, + "NSHumanReadableCopyright" : { + "comment" : "Copyright (human-readable)", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "" + } + } + } + } + }, + "version" : "1.0" +} \ No newline at end of file diff --git a/Pearcleaner.xcodeproj/project.pbxproj b/Pearcleaner.xcodeproj/project.pbxproj index 05739d3..1a68856 100644 --- a/Pearcleaner.xcodeproj/project.pbxproj +++ b/Pearcleaner.xcodeproj/project.pbxproj @@ -51,6 +51,8 @@ C7F8436C2CBF066F00E3E30A /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */; }; C7FB173B2B96321300B96F9A /* AppsListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7FB173A2B96321300B96F9A /* AppsListView.swift */; }; C7FEBA112BDC422200AE195F /* AppSearchView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7FEBA102BDC422200AE195F /* AppSearchView.swift */; }; + F6DBC0A02CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */; }; + F6DBC0A22CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -143,6 +145,8 @@ C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = ""; }; C7FB173A2B96321300B96F9A /* AppsListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppsListView.swift; sourceTree = ""; }; C7FEBA102BDC422200AE195F /* AppSearchView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppSearchView.swift; sourceTree = ""; }; + F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = ""; }; + F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -233,6 +237,7 @@ C77B90242AF2D796009CC655 /* Pearcleaner.entitlements */, C77B90072AF18E2F009CC655 /* Assets.xcassets */, C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */, + F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */, ); path = Resources; sourceTree = ""; @@ -290,6 +295,7 @@ C78121642BC892A000BE06BD /* FinderOpen */ = { isa = PBXGroup; children = ( + F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */, C78121652BC892A000BE06BD /* FinderOpen.swift */, C78121672BC892A000BE06BD /* Info.plist */, C78121682BC892A000BE06BD /* FinderOpen.entitlements */, @@ -422,6 +428,7 @@ files = ( C77B90082AF18E2F009CC655 /* Assets.xcassets in Resources */, C7A27E812AFD7C4600166168 /* com.alienator88.PearcleanerSentinel.plist in Resources */, + F6DBC0A22CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */, C7F8436B2CBF066F00E3E30A /* Localizable.xcstrings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -430,6 +437,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + F6DBC0A02CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */, C7F8436C2CBF066F00E3E30A /* Localizable.xcstrings in Resources */, C7A6DBF12C9DD27200CFA042 /* Assets.xcassets in Resources */, ); diff --git a/Pearcleaner/Resources/InfoPlist.xcstrings b/Pearcleaner/Resources/InfoPlist.xcstrings new file mode 100644 index 0000000..02d4f23 --- /dev/null +++ b/Pearcleaner/Resources/InfoPlist.xcstrings @@ -0,0 +1,114 @@ +{ + "sourceLanguage" : "en", + "strings" : { + "CFBundleDisplayName" : { + "comment" : "Bundle display name", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Pearcleaner" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "Pearcleaner" + } + } + } + }, + "CFBundleGetInfoString" : { + "comment" : "Get Info string", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "" + } + } + } + }, + "CFBundleName" : { + "comment" : "Bundle name", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Pearcleaner" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "Pearcleaner" + } + } + } + }, + "NSAppleEventsUsageDescription" : { + "comment" : "Privacy - AppleEvents Sending Usage Description", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Pearcleaner needs to send Apple Events to Finder to delete files" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "Pearcleaner 需要將 Apple Event 傳送至 Finder 以刪除檔案" + } + } + } + }, + "NSHumanReadableCopyright" : { + "comment" : "Copyright (human-readable)", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "" + } + } + } + }, + "NSSystemAdministrationUsageDescription" : { + "comment" : "Privacy - System Administration Usage Description", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Pearcleaner requires full disk access to be able to delete files in locations with no permission" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "Pearcleaner 需要完整磁碟取用權限才能在沒有權限的位置刪除檔案" + } + } + } + }, + "NSSystemExtensionUsageDescription" : { + "comment" : "Privacy - System Extension Usage Description", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "" + } + } + } + } + }, + "version" : "1.0" +} \ No newline at end of file diff --git a/Pearcleaner/Resources/Localizable.xcstrings b/Pearcleaner/Resources/Localizable.xcstrings index 6bbbc92..b4e51b0 100644 --- a/Pearcleaner/Resources/Localizable.xcstrings +++ b/Pearcleaner/Resources/Localizable.xcstrings @@ -340,6 +340,12 @@ "state" : "translated", "value" : "Pridať súbor/priečinok" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "從剪貼板加入檔案/資料夾" + } } } }, @@ -450,6 +456,12 @@ "state" : "translated", "value" : "Pridať priečinok zo schránky" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "從剪貼板加入資料夾" + } } } }, @@ -1060,7 +1072,14 @@ } }, "Bundle Files..." : { - + "localizations" : { + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "套件檔案⋯" + } + } + } }, "calculating" : { "extractionState" : "manual", @@ -1147,6 +1166,12 @@ "state" : "translated", "value" : "取消" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "取消" + } } } }, @@ -1222,6 +1247,12 @@ "state" : "translated", "value" : "檢查了%2$@個路徑中的%1$lld個" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "已為 %2$@ 檢查 %1$lld 個路徑" + } } } }, @@ -1244,6 +1275,12 @@ "state" : "translated", "value" : "清除常見開發環境儲存的文件和快取" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "為常見開發環境清理儲存的檔案與快取" + } } } }, @@ -1876,6 +1913,12 @@ "state" : "translated", "value" : "刪除內容" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "刪除內容" + } } } }, @@ -1898,6 +1941,12 @@ "state" : "translated", "value" : "刪除資料夾" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "刪除資料夾" + } } } }, @@ -1967,6 +2016,12 @@ "state" : "translated", "value" : "開發" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "開發" + } } } }, @@ -1983,6 +2038,12 @@ "state" : "translated", "value" : "Vývojárske prostredia (Beta)" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "開發環境(Beta)" + } } } }, @@ -2428,6 +2489,12 @@ "state" : "translated", "value" : "環境" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "環境" + } } } }, @@ -2573,7 +2640,14 @@ } }, "Export File Paths..." : { - + "localizations" : { + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "輸出檔案路徑⋯" + } + } + } }, "Failed to display release notes" : { "extractionState" : "manual", @@ -5077,6 +5151,12 @@ "state" : "translated", "value" : "未找到" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "未找到" + } } } }, @@ -5165,6 +5245,12 @@ "state" : "translated", "value" : "好" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "好" + } } } }, @@ -5187,6 +5273,12 @@ "state" : "translated", "value" : "打開" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "開啟󠄁" + } } } }, @@ -5698,6 +5790,12 @@ "state" : "translated", "value" : "隊列:" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "佇列:" + } } } }, @@ -6752,6 +6850,12 @@ "state" : "translated", "value" : "選擇一個環境查看包含的路徑" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "選擇一個環境以檢視路徑。" + } } } }, @@ -6774,6 +6878,12 @@ "state" : "translated", "value" : "選擇一個" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "選擇一個" + } } } }, @@ -8063,6 +8173,12 @@ "state" : "translated", "value" : "完整環境路徑可用" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "可用環境路徑總計" + } } } }, @@ -8500,6 +8616,12 @@ "state" : "translated", "value" : "Aktualizácia dokončená" } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "更新完成" + } } } },