i18n // Tweaking Base Localization Strings.

This commit is contained in:
ShikiSuen 2022-02-10 18:38:11 +08:00
parent 0119730ed0
commit 7bc2c360a0
5 changed files with 71 additions and 161 deletions

View File

@ -85,12 +85,12 @@ class ctlInputMethod: IMKInputController {
menu.addItem(NSMenuItem.separator()) // --------------------- menu.addItem(NSMenuItem.separator()) // ---------------------
menu.addItem(withTitle: NSLocalizedString("Open User Data Folder", comment: ""), action: #selector(openUserDataFolder(_:)), keyEquivalent: "") 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 { if optionKeyPressed {
menu.addItem(withTitle: NSLocalizedString("Edit Excluded Phrases", comment: ""), action: #selector(openExcludedPhrases(_:)), keyEquivalent: "") 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 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 Associated Phrases", comment: ""), action: #selector(openAssociatedPhrases(_:)), keyEquivalent: "")
} }
if (optionKeyPressed || !Preferences.shouldAutoReloadUserDataFiles) { if (optionKeyPressed || !Preferences.shouldAutoReloadUserDataFiles) {
@ -99,7 +99,7 @@ class ctlInputMethod: IMKInputController {
menu.addItem(NSMenuItem.separator()) // --------------------- 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("Check for Updates…", comment: ""), action: #selector(checkForUpdate(_:)), keyEquivalent: "")
menu.addItem(withTitle: NSLocalizedString("About vChewing…", comment: ""), action: #selector(showAbout(_:)), keyEquivalent: "") menu.addItem(withTitle: NSLocalizedString("About vChewing…", comment: ""), action: #selector(showAbout(_:)), keyEquivalent: "")
if optionKeyPressed { if optionKeyPressed {

View File

@ -1,94 +1,49 @@
/* No comment provided by engineer. */
"About vChewing…" = "About vChewing…"; "About vChewing…" = "About vChewing…";
"vChewing Preferences…" = "vChewing Preferences…";
/* No comment provided by engineer. */ "Check Later" = "Check Later";
"vChewing Preferences" = "vChewing Preferences";
/* No comment provided by engineer. */
"Check for Updates…" = "Check for Updates…"; "Check for Updates…" = "Check for Updates…";
"Check for Update Completed" = "Check for Update Completed";
/* No comment provided by engineer. */ "You are already using the latest version of vChewing." = "You are already using the latest version of vChewing.";
"Update Check Failed" = "Update Check Failed"; "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: %@"; "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"; "OK" = "OK";
/* No comment provided by engineer. */
"Dismiss" = "Dismiss"; "Dismiss" = "Dismiss";
/* No comment provided by engineer. */
"New Version Available" = "New Version Available"; "New Version Available" = "New Version Available";
/* No comment provided by engineer. */
"Not Now" = "Not Now"; "Not Now" = "Not Now";
/* No comment provided by engineer. */
"Visit Website" = "Visit Website"; "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?%@"; "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?%@";
"Force KangXi Writing" = "Force KangXi Writing";
"Chinese Conversion" = "Convert to Simplified Chinese"; "NotificationSwitchON" = "✔ ON";
"NotificationSwitchOFF" = "✘ OFF";
"User Phrases" = "User Phrases"; "Edit User Phrases…" = "Edit User Phrases…";
"Edit User Phrases" = "Edit User Phrases";
"Reload User Phrases" = "Reload User Phrases"; "Reload User Phrases" = "Reload User Phrases";
"Unable to create the user phrase file." = "Unable to create the user phrase file."; "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 \"%@\"."; "Please check the permission of at \"%@\"." = "Please check the permission of at \"%@\".";
"Edit Excluded Phrases" = "Edit Excluded Phrases…";
"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.";
"Use Half-Width Punctuations" = "Use Half-Width Punctuations"; "\"%@\" 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.";
"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."; "\"%@\" already exists." = "\"%@\" already exists.";
"Edit Phrase Replacement Table…" = "Edit Phrase Replacement Table…";
"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";
"Use Phrase Replacement" = "Use Phrase Replacement"; "Use Phrase Replacement" = "Use Phrase Replacement";
"Candidates keys cannot be empty." = "Candidates keys cannot be empty."; "Candidates keys cannot be empty." = "Candidates keys cannot be empty.";
"Candidate keys can only contain ASCII characters like alphanumerals." = "Candidate keys can only contain ASCII characters like alphanumerals.";
"Candidate keys can only contain latin characters and numbers." = "Candidate keys can only contain latin characters and numbers.";
"Candidate keys cannot contain space." = "Candidate keys cannot contain space."; "Candidate keys cannot contain space." = "Candidate keys cannot contain space.";
"There should not be duplicated keys." = "There should not be duplicated keys."; "There should not be duplicated keys." = "There should not be duplicated keys.";
"Please specify at least 4 candidate keys." = "Please specify at least 4 candidate 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."; "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.";
"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."; "⚠︎ Unhandlable char selected for user phrases." = "⚠︎ Unhandlable char selected for user phrases.";
"Per-Char Select Mode" = "Per-Char Select Mode";
"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."; "CNS11643 Mode" = "CNS11643 Mode";
"Per-Char Associated Phrases" = "Per-Char Associated Phrases";
"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."; "Open User Data Folder" = "Open User Data Folder";
"Edit Associated Phrases…" = "Edit Associated Phrases…";
"Half-width punctuation on" = "Half-width punctuation on"; "Reboot vChewing…" = "Reboot vChewing…";
"auto" = "Follow System Settings";
"Half-width punctuation off" = "Half-width punctuation off"; "en" = "English";
"zh-Hans" = "Simplified Chinese";
"Associated Phrases" = "Associated Phrases"; "zh-Hant" = "Traditional Chinese";
"ja" = "Japanese";
"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."; "Apple Zhuyin Bopomofo" = "Apple Zhuyin Bopomofo";
"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.";

View File

@ -1,94 +1,49 @@
/* No comment provided by engineer. */
"About vChewing…" = "About vChewing…"; "About vChewing…" = "About vChewing…";
"vChewing Preferences…" = "vChewing Preferences…";
/* No comment provided by engineer. */ "Check Later" = "Check Later";
"vChewing Preferences" = "vChewing Preferences";
/* No comment provided by engineer. */
"Check for Updates…" = "Check for Updates…"; "Check for Updates…" = "Check for Updates…";
"Check for Update Completed" = "Check for Update Completed";
/* No comment provided by engineer. */ "You are already using the latest version of vChewing." = "You are already using the latest version of vChewing.";
"Update Check Failed" = "Update Check Failed"; "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: %@"; "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"; "OK" = "OK";
/* No comment provided by engineer. */
"Dismiss" = "Dismiss"; "Dismiss" = "Dismiss";
/* No comment provided by engineer. */
"New Version Available" = "New Version Available"; "New Version Available" = "New Version Available";
/* No comment provided by engineer. */
"Not Now" = "Not Now"; "Not Now" = "Not Now";
/* No comment provided by engineer. */
"Visit Website" = "Visit Website"; "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?%@"; "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?%@";
"Force KangXi Writing" = "Force KangXi Writing";
"Chinese Conversion" = "Convert to Simplified Chinese"; "NotificationSwitchON" = "✔ ON";
"NotificationSwitchOFF" = "✘ OFF";
"User Phrases" = "User Phrases"; "Edit User Phrases…" = "Edit User Phrases…";
"Edit User Phrases" = "Edit User Phrases";
"Reload User Phrases" = "Reload User Phrases"; "Reload User Phrases" = "Reload User Phrases";
"Unable to create the user phrase file." = "Unable to create the user phrase file."; "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 \"%@\"."; "Please check the permission of at \"%@\"." = "Please check the permission of at \"%@\".";
"Edit Excluded Phrases" = "Edit Excluded Phrases…";
"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.";
"Use Half-Width Punctuations" = "Use Half-Width Punctuations"; "\"%@\" 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.";
"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."; "\"%@\" already exists." = "\"%@\" already exists.";
"Edit Phrase Replacement Table…" = "Edit Phrase Replacement Table…";
"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";
"Use Phrase Replacement" = "Use Phrase Replacement"; "Use Phrase Replacement" = "Use Phrase Replacement";
"Candidates keys cannot be empty." = "Candidates keys cannot be empty."; "Candidates keys cannot be empty." = "Candidates keys cannot be empty.";
"Candidate keys can only contain ASCII characters like alphanumerals." = "Candidate keys can only contain ASCII characters like alphanumerals.";
"Candidate keys can only contain latin characters and numbers." = "Candidate keys can only contain latin characters and numbers.";
"Candidate keys cannot contain space." = "Candidate keys cannot contain space."; "Candidate keys cannot contain space." = "Candidate keys cannot contain space.";
"There should not be duplicated keys." = "There should not be duplicated keys."; "There should not be duplicated keys." = "There should not be duplicated keys.";
"Please specify at least 4 candidate keys." = "Please specify at least 4 candidate 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."; "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.";
"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."; "⚠︎ Unhandlable char selected for user phrases." = "⚠︎ Unhandlable char selected for user phrases.";
"Per-Char Select Mode" = "Per-Char Select Mode";
"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."; "CNS11643 Mode" = "CNS11643 Mode";
"Per-Char Associated Phrases" = "Per-Char Associated Phrases";
"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."; "Open User Data Folder" = "Open User Data Folder";
"Edit Associated Phrases…" = "Edit Associated Phrases…";
"Half-width punctuation on" = "Half-width punctuation on"; "Reboot vChewing…" = "Reboot vChewing…";
"auto" = "Follow System Settings";
"Half-width punctuation off" = "Half-width punctuation off"; "en" = "English";
"zh-Hans" = "Simplified Chinese";
"Associated Phrases" = "Associated Phrases"; "zh-Hant" = "Traditional Chinese";
"ja" = "Japanese";
"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."; "Apple Zhuyin Bopomofo" = "Apple Zhuyin Bopomofo";
"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.";

View File

@ -419,7 +419,7 @@
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="234" id="ZIc-th-1VJ"/> <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="234" id="ZIc-th-1VJ"/>
<constraint firstAttribute="height" constant="16" id="ZUJ-yT-gaw"/> <constraint firstAttribute="height" constant="16" id="ZUJ-yT-gaw"/>
</constraints> </constraints>
<buttonCell key="cell" type="check" title="Push the cursor to the front of the phrase after candidate selection." bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="RUG-ls-KyA"> <buttonCell key="cell" type="check" title="Push the cursor to the front of the phrase after candidate selection" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="RUG-ls-KyA">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="cellTitle"/> <font key="font" metaFont="cellTitle"/>
</buttonCell> </buttonCell>

View File

@ -131,8 +131,8 @@
/* Class = "NSTextFieldCell"; title = "Choose your preferred keyboard layout."; ObjectID = "RQ6-MS-m4C"; */ /* Class = "NSTextFieldCell"; title = "Choose your preferred keyboard layout."; ObjectID = "RQ6-MS-m4C"; */
"RQ6-MS-m4C.title" = "Choose your preferred keyboard layout."; "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"; */ /* 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."; "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"; */ /* Class = "NSMenuItem"; title = "Traditional Chinese"; ObjectID = "TXr-FF-ehw"; */
"TXr-FF-ehw.title" = "Traditional Chinese"; "TXr-FF-ehw.title" = "Traditional Chinese";