From 449544ef370709ec608811483f3bbffd3b368595 Mon Sep 17 00:00:00 2001 From: MMP0 <28616020+MMP0@users.noreply.github.com> Date: Thu, 3 Aug 2023 12:27:16 +0900 Subject: [PATCH 1/3] Add Localizable.strings --- CrystalFetch.xcodeproj/project.pbxproj | 15 +++++++++++++++ Source/en.lproj/Localizable.strings | 1 + 2 files changed, 16 insertions(+) create mode 100644 Source/en.lproj/Localizable.strings diff --git a/CrystalFetch.xcodeproj/project.pbxproj b/CrystalFetch.xcodeproj/project.pbxproj index 4386eef..cd7d0e0 100644 --- a/CrystalFetch.xcodeproj/project.pbxproj +++ b/CrystalFetch.xcodeproj/project.pbxproj @@ -360,6 +360,7 @@ CEC0A2FC2A70A48200980857 /* aria2c in Copy Executables */ = {isa = PBXBuildFile; fileRef = CEC0A2F32A70A43100980857 /* aria2c */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; CEC0A3002A70A6CD00980857 /* convert.sh in Copy Scripts */ = {isa = PBXBuildFile; fileRef = CEC0A2FE2A70A6CD00980857 /* convert.sh */; }; CEC0A3012A70A6CD00980857 /* convert_ve_plugin in Copy Scripts */ = {isa = PBXBuildFile; fileRef = CEC0A2FF2A70A6CD00980857 /* convert_ve_plugin */; }; + CEC8BC502A7B55D80042878F /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = CEC8BC522A7B55D80042878F /* Localizable.strings */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -841,6 +842,7 @@ CEC0A2FE2A70A6CD00980857 /* convert.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = convert.sh; sourceTree = ""; }; CEC0A2FF2A70A6CD00980857 /* convert_ve_plugin */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = convert_ve_plugin; sourceTree = ""; }; CEC0A3082A71BBA900980857 /* Build.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Build.xcconfig; sourceTree = ""; }; + CEC8BC512A7B55D80042878F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -937,6 +939,7 @@ CEC09F122A6BB66300980857 /* Assets.xcassets */, CEC09F172A6BB66300980857 /* CrystalFetch.entitlements */, CEC09F3E2A6F151800980857 /* CrystalFetch-Info.plist */, + CEC8BC522A7B55D80042878F /* Localizable.strings */, ); path = Source; sourceTree = ""; @@ -1530,6 +1533,7 @@ buildActionMask = 2147483647; files = ( CEC09F132A6BB66300980857 /* Assets.xcassets in Resources */, + CEC8BC502A7B55D80042878F /* Localizable.strings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1948,6 +1952,17 @@ }; /* End PBXTargetDependency section */ +/* Begin PBXVariantGroup section */ + CEC8BC522A7B55D80042878F /* Localizable.strings */ = { + isa = PBXVariantGroup; + children = ( + CEC8BC512A7B55D80042878F /* en */, + ); + name = Localizable.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + /* Begin XCBuildConfiguration section */ CEC09F182A6BB66300980857 /* Debug */ = { isa = XCBuildConfiguration; diff --git a/Source/en.lproj/Localizable.strings b/Source/en.lproj/Localizable.strings new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Source/en.lproj/Localizable.strings @@ -0,0 +1 @@ + From c2a53cb03a906724d707294d8883e9eaf6a549f2 Mon Sep 17 00:00:00 2001 From: MMP0 <28616020+MMP0@users.noreply.github.com> Date: Thu, 3 Aug 2023 12:28:29 +0900 Subject: [PATCH 2/3] Add Japanese localization --- CrystalFetch.xcodeproj/project.pbxproj | 5 +++ Source/ja.lproj/Localizable.strings | 50 ++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 Source/ja.lproj/Localizable.strings diff --git a/CrystalFetch.xcodeproj/project.pbxproj b/CrystalFetch.xcodeproj/project.pbxproj index cd7d0e0..129e686 100644 --- a/CrystalFetch.xcodeproj/project.pbxproj +++ b/CrystalFetch.xcodeproj/project.pbxproj @@ -843,6 +843,7 @@ CEC0A2FF2A70A6CD00980857 /* convert_ve_plugin */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = convert_ve_plugin; sourceTree = ""; }; CEC0A3082A71BBA900980857 /* Build.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Build.xcconfig; sourceTree = ""; }; CEC8BC512A7B55D80042878F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; + CEC8BC532A7B56280042878F /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -1509,6 +1510,7 @@ knownRegions = ( en, Base, + ja, ); mainGroup = CEC09F022A6BB66200980857; packageReferences = ( @@ -1957,6 +1959,7 @@ isa = PBXVariantGroup; children = ( CEC8BC512A7B55D80042878F /* en */, + CEC8BC532A7B56280042878F /* ja */, ); name = Localizable.strings; sourceTree = ""; @@ -1969,6 +1972,7 @@ baseConfigurationReference = CEC0A3082A71BBA900980857 /* Build.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; @@ -2033,6 +2037,7 @@ baseConfigurationReference = CEC0A3082A71BBA900980857 /* Build.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; diff --git a/Source/ja.lproj/Localizable.strings b/Source/ja.lproj/Localizable.strings new file mode 100644 index 0000000..d86d7cc --- /dev/null +++ b/Source/ja.lproj/Localizable.strings @@ -0,0 +1,50 @@ + +/* Sources */ + +// UUPDump/UUPDumpAPI.swift +"Cannot find data from the server response." = "サーバの応答からデータが見つかりません。"; +"Error returned from server: %@" = "サーバからエラーが返されました: %@"; + +// UUPDump/PrettyString.swift +"Intel x86" = "Intel(32ビット)"; +"Intel x64" = "Intel(64ビット)"; +"Apple Silicon" = "Appleシリコン"; +"Unknown" = "不明"; +"Development" = "Dev"; +"Beta" = "Beta"; +"Canary" = "Canary"; +"Release Preview" = "Release Preview"; +"Retail" = "Retail"; + +// ContentView.swift +"Prerelease Builds" = "プレリリースビルド"; +"Show unstable releases which previews upcoming features." = "今後の機能をプレビューする不安定なリリースを表示します。"; +"Server Builds" = "サーバビルド"; +"Show builds for running in a server environment." = "サーバ環境で実行するためのビルドを表示します。"; +"Refresh" = "更新"; + +// BuildConfigView.swift +"Channel" = "チャネル"; +"Build" = "ビルド"; +"Created" = "作成日時"; +"Language" = "言語"; +"Editions" = "エディション"; +"I agree that I have a valid license to use this product." = "この製品を使用するための有効なライセンスを所有していることに同意します。"; +"Cancel" = "キャンセル"; +"Are you sure you want to stop the process?" = "処理を停止してもよろしいですか?"; +"Stop" = "停止"; +"Download…" = "ダウンロード…"; + +// BuildDetails.swift +"Unknown Language" = "不明な言語"; + +// BuildEditions.swift +"Unknown Edition" = "不明なエディション"; + +// Worker.swift +"Fetching files list..." = "ファイルリストを取得中…"; +"Starting download..." = "ダウンロードを開始中…"; +"Downloading %@ of %@..." = "ダウンロード中…(%1$@ / %2$@)"; +"Converting download to ISO..." = "ダウンロードをISOに変換中…"; +"Saving ISO..." = "ISOを保存中…"; +"The conversion script failed with error code %d" = "変換スクリプトはエラーコード%dで失敗しました"; From 5f373389117d8d6328c69924b20b42a2af111d44 Mon Sep 17 00:00:00 2001 From: MMP0 <28616020+MMP0@users.noreply.github.com> Date: Fri, 4 Aug 2023 08:46:55 +0900 Subject: [PATCH 3/3] Fix typos --- Source/ja.lproj/Localizable.strings | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ja.lproj/Localizable.strings b/Source/ja.lproj/Localizable.strings index d86d7cc..b3c1216 100644 --- a/Source/ja.lproj/Localizable.strings +++ b/Source/ja.lproj/Localizable.strings @@ -31,8 +31,8 @@ "Editions" = "エディション"; "I agree that I have a valid license to use this product." = "この製品を使用するための有効なライセンスを所有していることに同意します。"; "Cancel" = "キャンセル"; -"Are you sure you want to stop the process?" = "処理を停止してもよろしいですか?"; -"Stop" = "停止"; +"Are you sure you want to stop the process?" = "処理を中止してもよろしいですか?"; +"Stop" = "中止"; "Download…" = "ダウンロード…"; // BuildDetails.swift