From 7bc2c360a0e2be5b77cba8b283109ca3a4249ae6 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Thu, 10 Feb 2022 18:38:11 +0800 Subject: [PATCH] i18n // Tweaking Base Localization Strings. --- .../Modules/IMEModules/ctlInputMethod.swift | 8 +- .../Resources/Base.lproj/Localizable.strings | 109 +++++------------- Source/Resources/en.lproj/Localizable.strings | 109 +++++------------- .../WindowNIBs/Base.lproj/frmPrefWindow.xib | 2 +- .../WindowNIBs/en.lproj/frmPrefWindow.strings | 4 +- 5 files changed, 71 insertions(+), 161 deletions(-) diff --git a/Source/Modules/IMEModules/ctlInputMethod.swift b/Source/Modules/IMEModules/ctlInputMethod.swift index 589171cc..b0e549aa 100644 --- a/Source/Modules/IMEModules/ctlInputMethod.swift +++ b/Source/Modules/IMEModules/ctlInputMethod.swift @@ -85,12 +85,12 @@ class ctlInputMethod: IMKInputController { menu.addItem(NSMenuItem.separator()) // --------------------- menu.addItem(withTitle: NSLocalizedString("Open User Data Folder", comment: ""), action: #selector(openUserDataFolder(_:)), keyEquivalent: "") - menu.addItem(withTitle: NSLocalizedString("Edit User Phrases", comment: ""), action: #selector(openUserPhrases(_:)), keyEquivalent: "") + menu.addItem(withTitle: NSLocalizedString("Edit User Phrases…", comment: ""), action: #selector(openUserPhrases(_:)), keyEquivalent: "") if optionKeyPressed { menu.addItem(withTitle: NSLocalizedString("Edit Excluded Phrases", comment: ""), action: #selector(openExcludedPhrases(_:)), keyEquivalent: "") - menu.addItem(withTitle: NSLocalizedString("Edit Phrase Replacement Table", comment: ""), action: #selector(openPhraseReplacement(_:)), keyEquivalent: "") - menu.addItem(withTitle: NSLocalizedString("Edit Associated Phrases", comment: ""), action: #selector(openAssociatedPhrases(_:)), keyEquivalent: "") + menu.addItem(withTitle: NSLocalizedString("Edit Phrase Replacement Table…", comment: ""), action: #selector(openPhraseReplacement(_:)), keyEquivalent: "") + menu.addItem(withTitle: NSLocalizedString("Edit Associated Phrases…", comment: ""), action: #selector(openAssociatedPhrases(_:)), keyEquivalent: "") } if (optionKeyPressed || !Preferences.shouldAutoReloadUserDataFiles) { @@ -99,7 +99,7 @@ class ctlInputMethod: IMKInputController { menu.addItem(NSMenuItem.separator()) // --------------------- - menu.addItem(withTitle: NSLocalizedString("vChewing Preferences", comment: ""), action: #selector(showPreferences(_:)), keyEquivalent: "") + menu.addItem(withTitle: NSLocalizedString("vChewing Preferences…", comment: ""), action: #selector(showPreferences(_:)), keyEquivalent: "") menu.addItem(withTitle: NSLocalizedString("Check for Updates…", comment: ""), action: #selector(checkForUpdate(_:)), keyEquivalent: "") menu.addItem(withTitle: NSLocalizedString("About vChewing…", comment: ""), action: #selector(showAbout(_:)), keyEquivalent: "") if optionKeyPressed { diff --git a/Source/Resources/Base.lproj/Localizable.strings b/Source/Resources/Base.lproj/Localizable.strings index 9a2bfde2..c90c43f8 100644 --- a/Source/Resources/Base.lproj/Localizable.strings +++ b/Source/Resources/Base.lproj/Localizable.strings @@ -1,94 +1,49 @@ -/* No comment provided by engineer. */ "About vChewing…" = "About vChewing…"; - -/* No comment provided by engineer. */ -"vChewing Preferences" = "vChewing Preferences"; - -/* No comment provided by engineer. */ +"vChewing Preferences…" = "vChewing Preferences…"; +"Check Later" = "Check Later"; "Check for Updates…" = "Check for Updates…"; - -/* No comment provided by engineer. */ +"Check for Update Completed" = "Check for Update Completed"; +"You are already using the latest version of vChewing." = "You are already using the latest version of vChewing."; "Update Check Failed" = "Update Check Failed"; - -/* No comment provided by engineer. */ "There may be no internet connection or the server failed to respond.\n\nError message: %@" = "There may be no internet connection or the server failed to respond.\n\nError message: %@"; - -/* No comment provided by engineer. */ "OK" = "OK"; - -/* No comment provided by engineer. */ "Dismiss" = "Dismiss"; - -/* No comment provided by engineer. */ "New Version Available" = "New Version Available"; - -/* No comment provided by engineer. */ "Not Now" = "Not Now"; - -/* No comment provided by engineer. */ "Visit Website" = "Visit Website"; - -/* No comment provided by engineer. */ "You're currently using vChewing %@ (%@), a new version %@ (%@) is now available. Do you want to visit vChewing's website to download the version?%@" = "You're currently using vChewing %@ (%@), a new version %@ (%@) is now available. Do you want to visit vChewing's website to download the version?%@"; - -"Chinese Conversion" = "Convert to Simplified Chinese"; - -"User Phrases" = "User Phrases"; - -"Edit User Phrases" = "Edit User Phrases"; - +"Force KangXi Writing" = "Force KangXi Writing"; +"NotificationSwitchON" = "✔ ON"; +"NotificationSwitchOFF" = "✘ OFF"; +"Edit User Phrases…" = "Edit User Phrases…"; "Reload User Phrases" = "Reload User Phrases"; - "Unable to create the user phrase file." = "Unable to create the user phrase file."; - "Please check the permission of at \"%@\"." = "Please check the permission of at \"%@\"."; - -"Edit Excluded Phrases" = "Edit Excluded Phrases"; - -"Use Half-Width Punctuations" = "Use Half-Width Punctuations"; - -"You are now selecting \"%@\". You can add a phrase with two or more characters." = "You are now selecting \"%@\". You can add a phrase with two or more characters."; - -"You are now selecting \"%@\". Press enter to add a new phrase." = "You are now selecting \"%@\". Press enter to add a new phrase."; - -"You are now selecting \"%@\". A phrase cannot be longer than %d characters." = "You are now selecting \"%@\". A phrase cannot be longer than %d characters."; - -"Chinese conversion on" = "Chinese conversion on"; - -"Chinese conversion off" = "Chinese conversion off"; - -"Edit Phrase Replacement Table" = "Edit Phrase Replacement Table"; - +"Edit Excluded Phrases" = "Edit Excluded Phrases…"; +"Half-Width Punctuation Mode" = "Half-Width Punctuation Mode"; +"\"%@\" length must ≥ 2 for a user phrase." = "\"%@\" length must ≥ 2 for a user phrase."; +"\"%@\" length should ≤ %d for a user phrase." = "\"%@\" length should ≤ %d for a user phrase."; +"\"%@\" selected. ENTER to add user phrase." = "\"%@\" selected. ENTER to add user phrase."; +"\"%@\" already exists." = "\"%@\" already exists."; +"Edit Phrase Replacement Table…" = "Edit Phrase Replacement Table…"; "Use Phrase Replacement" = "Use Phrase Replacement"; - "Candidates keys cannot be empty." = "Candidates keys cannot be empty."; - -"Candidate keys can only contain latin characters and numbers." = "Candidate keys can only contain latin characters and numbers."; - +"Candidate keys can only contain ASCII characters like alphanumerals." = "Candidate keys can only contain ASCII characters like alphanumerals."; "Candidate keys cannot contain space." = "Candidate keys cannot contain space."; - "There should not be duplicated keys." = "There should not be duplicated keys."; - -"The length of your candidate keys can not be less than 4 characters." = "The length of your candidate keys can not be less than 4 characters."; - -"The length of your candidate keys can not be larger than 15 characters." = "The length of your candidate keys can not be larger than 15 characters."; - -"Phrase replacement mode is on. Not suggested to add phrase in the mode." = "Phrase replacement mode is on. Not suggested to add phrase in the mode."; - -"Model based Chinese conversion is on. Not suggested to add phrase in the mode." = "Model based Chinese conversion is on. Not suggested to add phrase in the mode."; - -"Half-width punctuation on" = "Half-width punctuation on"; - -"Half-width punctuation off" = "Half-width punctuation off"; - -"Associated Phrases" = "Associated Phrases"; - -"There are special phrases in your text. We don't support adding new phrases in this case." = "There are special phrases in your text. We don't support adding new phrases in this case."; - -"Cursor is before \"%@\"." = "Cursor is before \"%@\"."; - -"Cursor is after \"%@\"." = "Cursor is after \"%@\"."; - -"Cursor is between \"%@\" and \"%@\"." = "Cursor is between \"%@\" and \"%@\"."; - -"You are now selecting \"%@\". The phrase already exists." = "You are now selecting \"%@\". The phrase already exists."; +"Please specify at least 4 candidate keys." = "Please specify at least 4 candidate keys."; +"Maximum 15 candidate keys allowed." = "Maximum 15 candidate keys allowed."; +"⚠︎ Phrase replacement mode enabled, interfering user phrase entry." = "⚠︎ Phrase replacement mode enabled, interfering user phrase entry."; +"⚠︎ Unhandlable char selected for user phrases." = "⚠︎ Unhandlable char selected for user phrases."; +"Per-Char Select Mode" = "Per-Char Select Mode"; +"CNS11643 Mode" = "CNS11643 Mode"; +"Per-Char Associated Phrases" = "Per-Char Associated Phrases"; +"Open User Data Folder" = "Open User Data Folder"; +"Edit Associated Phrases…" = "Edit Associated Phrases…"; +"Reboot vChewing…" = "Reboot vChewing…"; +"auto" = "Follow System Settings"; +"en" = "English"; +"zh-Hans" = "Simplified Chinese"; +"zh-Hant" = "Traditional Chinese"; +"ja" = "Japanese"; +"Apple Zhuyin Bopomofo" = "Apple Zhuyin Bopomofo"; diff --git a/Source/Resources/en.lproj/Localizable.strings b/Source/Resources/en.lproj/Localizable.strings index 9a2bfde2..c90c43f8 100644 --- a/Source/Resources/en.lproj/Localizable.strings +++ b/Source/Resources/en.lproj/Localizable.strings @@ -1,94 +1,49 @@ -/* No comment provided by engineer. */ "About vChewing…" = "About vChewing…"; - -/* No comment provided by engineer. */ -"vChewing Preferences" = "vChewing Preferences"; - -/* No comment provided by engineer. */ +"vChewing Preferences…" = "vChewing Preferences…"; +"Check Later" = "Check Later"; "Check for Updates…" = "Check for Updates…"; - -/* No comment provided by engineer. */ +"Check for Update Completed" = "Check for Update Completed"; +"You are already using the latest version of vChewing." = "You are already using the latest version of vChewing."; "Update Check Failed" = "Update Check Failed"; - -/* No comment provided by engineer. */ "There may be no internet connection or the server failed to respond.\n\nError message: %@" = "There may be no internet connection or the server failed to respond.\n\nError message: %@"; - -/* No comment provided by engineer. */ "OK" = "OK"; - -/* No comment provided by engineer. */ "Dismiss" = "Dismiss"; - -/* No comment provided by engineer. */ "New Version Available" = "New Version Available"; - -/* No comment provided by engineer. */ "Not Now" = "Not Now"; - -/* No comment provided by engineer. */ "Visit Website" = "Visit Website"; - -/* No comment provided by engineer. */ "You're currently using vChewing %@ (%@), a new version %@ (%@) is now available. Do you want to visit vChewing's website to download the version?%@" = "You're currently using vChewing %@ (%@), a new version %@ (%@) is now available. Do you want to visit vChewing's website to download the version?%@"; - -"Chinese Conversion" = "Convert to Simplified Chinese"; - -"User Phrases" = "User Phrases"; - -"Edit User Phrases" = "Edit User Phrases"; - +"Force KangXi Writing" = "Force KangXi Writing"; +"NotificationSwitchON" = "✔ ON"; +"NotificationSwitchOFF" = "✘ OFF"; +"Edit User Phrases…" = "Edit User Phrases…"; "Reload User Phrases" = "Reload User Phrases"; - "Unable to create the user phrase file." = "Unable to create the user phrase file."; - "Please check the permission of at \"%@\"." = "Please check the permission of at \"%@\"."; - -"Edit Excluded Phrases" = "Edit Excluded Phrases"; - -"Use Half-Width Punctuations" = "Use Half-Width Punctuations"; - -"You are now selecting \"%@\". You can add a phrase with two or more characters." = "You are now selecting \"%@\". You can add a phrase with two or more characters."; - -"You are now selecting \"%@\". Press enter to add a new phrase." = "You are now selecting \"%@\". Press enter to add a new phrase."; - -"You are now selecting \"%@\". A phrase cannot be longer than %d characters." = "You are now selecting \"%@\". A phrase cannot be longer than %d characters."; - -"Chinese conversion on" = "Chinese conversion on"; - -"Chinese conversion off" = "Chinese conversion off"; - -"Edit Phrase Replacement Table" = "Edit Phrase Replacement Table"; - +"Edit Excluded Phrases" = "Edit Excluded Phrases…"; +"Half-Width Punctuation Mode" = "Half-Width Punctuation Mode"; +"\"%@\" length must ≥ 2 for a user phrase." = "\"%@\" length must ≥ 2 for a user phrase."; +"\"%@\" length should ≤ %d for a user phrase." = "\"%@\" length should ≤ %d for a user phrase."; +"\"%@\" selected. ENTER to add user phrase." = "\"%@\" selected. ENTER to add user phrase."; +"\"%@\" already exists." = "\"%@\" already exists."; +"Edit Phrase Replacement Table…" = "Edit Phrase Replacement Table…"; "Use Phrase Replacement" = "Use Phrase Replacement"; - "Candidates keys cannot be empty." = "Candidates keys cannot be empty."; - -"Candidate keys can only contain latin characters and numbers." = "Candidate keys can only contain latin characters and numbers."; - +"Candidate keys can only contain ASCII characters like alphanumerals." = "Candidate keys can only contain ASCII characters like alphanumerals."; "Candidate keys cannot contain space." = "Candidate keys cannot contain space."; - "There should not be duplicated keys." = "There should not be duplicated keys."; - -"The length of your candidate keys can not be less than 4 characters." = "The length of your candidate keys can not be less than 4 characters."; - -"The length of your candidate keys can not be larger than 15 characters." = "The length of your candidate keys can not be larger than 15 characters."; - -"Phrase replacement mode is on. Not suggested to add phrase in the mode." = "Phrase replacement mode is on. Not suggested to add phrase in the mode."; - -"Model based Chinese conversion is on. Not suggested to add phrase in the mode." = "Model based Chinese conversion is on. Not suggested to add phrase in the mode."; - -"Half-width punctuation on" = "Half-width punctuation on"; - -"Half-width punctuation off" = "Half-width punctuation off"; - -"Associated Phrases" = "Associated Phrases"; - -"There are special phrases in your text. We don't support adding new phrases in this case." = "There are special phrases in your text. We don't support adding new phrases in this case."; - -"Cursor is before \"%@\"." = "Cursor is before \"%@\"."; - -"Cursor is after \"%@\"." = "Cursor is after \"%@\"."; - -"Cursor is between \"%@\" and \"%@\"." = "Cursor is between \"%@\" and \"%@\"."; - -"You are now selecting \"%@\". The phrase already exists." = "You are now selecting \"%@\". The phrase already exists."; +"Please specify at least 4 candidate keys." = "Please specify at least 4 candidate keys."; +"Maximum 15 candidate keys allowed." = "Maximum 15 candidate keys allowed."; +"⚠︎ Phrase replacement mode enabled, interfering user phrase entry." = "⚠︎ Phrase replacement mode enabled, interfering user phrase entry."; +"⚠︎ Unhandlable char selected for user phrases." = "⚠︎ Unhandlable char selected for user phrases."; +"Per-Char Select Mode" = "Per-Char Select Mode"; +"CNS11643 Mode" = "CNS11643 Mode"; +"Per-Char Associated Phrases" = "Per-Char Associated Phrases"; +"Open User Data Folder" = "Open User Data Folder"; +"Edit Associated Phrases…" = "Edit Associated Phrases…"; +"Reboot vChewing…" = "Reboot vChewing…"; +"auto" = "Follow System Settings"; +"en" = "English"; +"zh-Hans" = "Simplified Chinese"; +"zh-Hant" = "Traditional Chinese"; +"ja" = "Japanese"; +"Apple Zhuyin Bopomofo" = "Apple Zhuyin Bopomofo"; diff --git a/Source/WindowNIBs/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib b/Source/WindowNIBs/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib index 4388296a..1688b160 100644 --- a/Source/WindowNIBs/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib +++ b/Source/WindowNIBs/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib @@ -419,7 +419,7 @@ - + diff --git a/Source/WindowNIBs/Source/WindowNIBs/en.lproj/frmPrefWindow.strings b/Source/WindowNIBs/Source/WindowNIBs/en.lproj/frmPrefWindow.strings index 6c3da4d9..07f5f6e1 100644 --- a/Source/WindowNIBs/Source/WindowNIBs/en.lproj/frmPrefWindow.strings +++ b/Source/WindowNIBs/Source/WindowNIBs/en.lproj/frmPrefWindow.strings @@ -131,8 +131,8 @@ /* Class = "NSTextFieldCell"; title = "Choose your preferred keyboard layout."; ObjectID = "RQ6-MS-m4C"; */ "RQ6-MS-m4C.title" = "Choose your preferred keyboard layout."; -/* Class = "NSButtonCell"; title = "Push the cursor to the front of the phrase after candidate selection."; ObjectID = "RUG-ls-KyA"; */ -"RUG-ls-KyA.title" = "Push the cursor to the front of the phrase after candidate selection."; +/* Class = "NSButtonCell"; title = "Push the cursor to the front of the phrase after candidate selection"; ObjectID = "RUG-ls-KyA"; */ +"RUG-ls-KyA.title" = "Push the cursor to the front of the phrase after candidate selection"; /* Class = "NSMenuItem"; title = "Traditional Chinese"; ObjectID = "TXr-FF-ehw"; */ "TXr-FF-ehw.title" = "Traditional Chinese";