From b3b7589379554e733d9109cabcd21a112ae7e760 Mon Sep 17 00:00:00 2001 From: John Kao Date: Fri, 13 Nov 2026 17:03:07 +0800 Subject: [PATCH] Name the input modes in System Settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The modes showed their raw IDs (com.autozhuyin.inputmethod.AutoZhuyin.Auto). InfoPlist.strings (zh-Hant, en, Base) now name them 自動注音(中英自動) and 自動注音(英文); build.sh copies the .lproj folders into the app. Co-Authored-By: Claude Opus 5.5 --- Resources/Base.lproj/InfoPlist.strings | 6 ++++++ Resources/en.lproj/InfoPlist.strings | 6 ++++++ Resources/zh-Hant.lproj/InfoPlist.strings | 6 ++++++ scripts/build.sh | 2 ++ 4 files changed, 20 insertions(+) create mode 100644 Resources/Base.lproj/InfoPlist.strings create mode 100644 Resources/en.lproj/InfoPlist.strings create mode 100644 Resources/zh-Hant.lproj/InfoPlist.strings diff --git a/Resources/Base.lproj/InfoPlist.strings b/Resources/Base.lproj/InfoPlist.strings new file mode 100644 index 0000000..0b5bbd4 --- /dev/null +++ b/Resources/Base.lproj/InfoPlist.strings @@ -0,0 +1,6 @@ +/* Names shown in System Settings and the input menu. */ +CFBundleName = "自動注音"; +CFBundleDisplayName = "自動注音"; +"com.autozhuyin.inputmethod.AutoZhuyin" = "自動注音"; +"com.autozhuyin.inputmethod.AutoZhuyin.Auto" = "自動注音(中英自動)"; +"com.autozhuyin.inputmethod.AutoZhuyin.English" = "自動注音(英文)"; diff --git a/Resources/en.lproj/InfoPlist.strings b/Resources/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..6d26fc8 --- /dev/null +++ b/Resources/en.lproj/InfoPlist.strings @@ -0,0 +1,6 @@ +/* Names shown in System Settings and the input menu. */ +CFBundleName = "AutoZhuyin"; +CFBundleDisplayName = "AutoZhuyin"; +"com.autozhuyin.inputmethod.AutoZhuyin" = "AutoZhuyin"; +"com.autozhuyin.inputmethod.AutoZhuyin.Auto" = "AutoZhuyin (Auto)"; +"com.autozhuyin.inputmethod.AutoZhuyin.English" = "AutoZhuyin (English)"; diff --git a/Resources/zh-Hant.lproj/InfoPlist.strings b/Resources/zh-Hant.lproj/InfoPlist.strings new file mode 100644 index 0000000..0b5bbd4 --- /dev/null +++ b/Resources/zh-Hant.lproj/InfoPlist.strings @@ -0,0 +1,6 @@ +/* Names shown in System Settings and the input menu. */ +CFBundleName = "自動注音"; +CFBundleDisplayName = "自動注音"; +"com.autozhuyin.inputmethod.AutoZhuyin" = "自動注音"; +"com.autozhuyin.inputmethod.AutoZhuyin.Auto" = "自動注音(中英自動)"; +"com.autozhuyin.inputmethod.AutoZhuyin.English" = "自動注音(英文)"; diff --git a/scripts/build.sh b/scripts/build.sh index 713f3f2..f6d6b37 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -18,6 +18,8 @@ rm -rf "$APP" mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources" cp "$BIN" "$APP/Contents/MacOS/AutoZhuyin" cp Resources/Info.plist "$APP/Contents/Info.plist" +# Localized names of the input method and its modes (System Settings, input menu). +cp -R Resources/*.lproj "$APP/Contents/Resources/" cp Resources/lexicon.txt Resources/english-common.txt Resources/classifier-weights.json "$APP/Contents/Resources/" cp THIRD_PARTY_LICENSES.txt "$APP/Contents/Resources/" # "AI 選字" language model (CKIP gpt2-tiny-chinese, GPL-3.0), fetched and converted once.