UI strings copyediting

This commit is contained in:
Lukhnos Liu 2022-02-13 19:00:28 -08:00
parent 02a475197d
commit ec98acc0b6
6 changed files with 51 additions and 51 deletions

View File

@ -41,17 +41,17 @@
"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 the path at \"%@\"." = "Please check the permission of the path at \"%@\".";
"Edit Excluded Phrases" = "Edit Excluded Phrases"; "Edit Excluded Phrases" = "Edit Excluded Phrases";
"Use Half-Width Punctuations" = "Use Half-Width Punctuations"; "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."; "Marking \"%@\": add a custom phrase by selecting two or more characters." = "Marking \"%@\": add a custom phrase by selecting 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."; "Marking \"%@\". Press Enter to add it as a new phrase." = "Marking \"%@\". Press Enter to add it as 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."; "The phrase being marked \"%@\" is longer than the allowed %d characters." = "The phrase being marked \"%@\" is longer than the allowed %d characters.";
"Chinese conversion on" = "Chinese conversion on"; "Chinese conversion on" = "Chinese conversion on";
@ -63,27 +63,27 @@
"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 latin characters and numbers." = "Candidate keys can only contain latin characters and numbers."; "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.";
"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."; "Candidate keys cannot be shorter than 4 characters." = "Candidate keys cannot be shorter 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."; "Candidate keys cannot be longer than 15 characters." = "Candidate keys cannot be longer 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."; "Phrase replacement mode is on. Not recommended to add user phases." = "Phrase replacement mode is on. Not recommended to add user phases.";
"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."; "Model-based Chinese conversion is on. Not recommended to add user phrases." = "Model-based Chinese conversion is on. Not recommended to add user phrases.";
"Half-width punctuation on" = "Half-width punctuation on"; "Half-Width Punctuation On" = "Half-Width Punctuation On";
"Half-width punctuation off" = "Half-width punctuation off"; "Half-Width Punctuation Off" = "Half-Width Punctuation Off";
"Associated Phrases" = "Associated Phrases"; "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."; "Certain Unicode symbols or characters not supported as user phrases." = "Certain Unicode symbols or characters not supported as user phrases.";
"Cursor is before \"%@\"." = "Cursor is before \"%@\"."; "Cursor is before \"%@\"." = "Cursor is before \"%@\".";
@ -91,4 +91,4 @@
"Cursor is between \"%@\" and \"%@\"." = "Cursor is between \"%@\" and \"%@\"."; "Cursor is between \"%@\" and \"%@\"." = "Cursor is between \"%@\" and \"%@\".";
"You are now selecting \"%@\". The phrase already exists." = "You are now selecting \"%@\". The phrase already exists."; "The phrase being marked \"%@\" already exists." = "The phrase being marked \"%@\" already exists.";

View File

@ -205,7 +205,7 @@ class McBopomofoInputMethodController: IMKInputController {
@objc func toggleHalfWidthPunctuation(_ sender: Any?) { @objc func toggleHalfWidthPunctuation(_ sender: Any?) {
let enabled = Preferences.togglePhraseReplacementEnabled() let enabled = Preferences.togglePhraseReplacementEnabled()
NotifierController.notify(message: enabled ? NSLocalizedString("Half-width punctuation on", comment: "") : NSLocalizedString("Half-width punctuation off", comment: "")) NotifierController.notify(message: enabled ? NSLocalizedString("Half-Width Punctuation On", comment: "") : NSLocalizedString("Half-Width Punctuation Off", comment: ""))
} }
@objc func toggleAssociatedPhrasesEnabled(_ sender: Any?) { @objc func toggleAssociatedPhrasesEnabled(_ sender: Any?) {
@ -224,7 +224,7 @@ class McBopomofoInputMethodController: IMKInputController {
private func open(userFileAt path: String) { private func open(userFileAt path: String) {
func checkIfUserFilesExist() -> Bool { func checkIfUserFilesExist() -> Bool {
if !LanguageModelManager.checkIfUserLanguageModelFilesExist() { if !LanguageModelManager.checkIfUserLanguageModelFilesExist() {
let content = String(format: NSLocalizedString("Please check the permission of at \"%@\".", comment: ""), LanguageModelManager.dataFolderPath) let content = String(format: NSLocalizedString("Please check the permission of the path at \"%@\".", comment: ""), LanguageModelManager.dataFolderPath)
NonModalAlertWindowController.shared.show(title: NSLocalizedString("Unable to create the user phrase file.", comment: ""), content: content, confirmButtonTitle: NSLocalizedString("OK", comment: ""), cancelButtonTitle: nil, cancelAsDefault: false, delegate: nil) NonModalAlertWindowController.shared.show(title: NSLocalizedString("Unable to create the user phrase file.", comment: ""), content: content, confirmButtonTitle: NSLocalizedString("OK", comment: ""), cancelButtonTitle: nil, cancelAsDefault: false, delegate: nil)
return false return false
} }

View File

@ -166,14 +166,14 @@ class InputState: NSObject {
@objc var tooltip: String { @objc var tooltip: String {
if composingBuffer.count != readings.count { if composingBuffer.count != readings.count {
return NSLocalizedString("There are special phrases in your text. We don't support adding new phrases in this case.", comment: "") return NSLocalizedString("Certain Unicode symbols or characters not supported as user phrases.", comment: "")
} }
if Preferences.phraseReplacementEnabled { if Preferences.phraseReplacementEnabled {
return NSLocalizedString("Phrase replacement mode is on. Not suggested to add phrase in the mode.", comment: "") return NSLocalizedString("Phrase replacement mode is on. Not recommended to add user phases.", comment: "")
} }
if Preferences.chineseConversionStyle == 1 && Preferences.chineseConversionEnabled { if Preferences.chineseConversionStyle == 1 && Preferences.chineseConversionEnabled {
return NSLocalizedString("Model based Chinese conversion is on. Not suggested to add phrase in the mode.", comment: "") return NSLocalizedString("Model-based Chinese conversion is on. Not recommended to add user phrases.", comment: "")
} }
if markedRange.length == 0 { if markedRange.length == 0 {
return "" return ""
@ -181,9 +181,9 @@ class InputState: NSObject {
let text = (composingBuffer as NSString).substring(with: markedRange) let text = (composingBuffer as NSString).substring(with: markedRange)
if markedRange.length < kMinMarkRangeLength { if markedRange.length < kMinMarkRangeLength {
return String(format: NSLocalizedString("You are now selecting \"%@\". You can add a phrase with two or more characters.", comment: ""), text) return String(format: NSLocalizedString("Marking \"%@\": add a custom phrase by selecting two or more characters.", comment: ""), text)
} else if (markedRange.length > kMaxMarkRangeLength) { } else if (markedRange.length > kMaxMarkRangeLength) {
return String(format: NSLocalizedString("You are now selecting \"%@\". A phrase cannot be longer than %d characters.", comment: ""), text, kMaxMarkRangeLength) return String(format: NSLocalizedString("The phrase being marked \"%@\" is longer than the allowed %d characters.", comment: ""), text, kMaxMarkRangeLength)
} }
let (exactBegin, _) = (composingBuffer as NSString).characterIndex(from: markedRange.location) let (exactBegin, _) = (composingBuffer as NSString).characterIndex(from: markedRange.location)
@ -192,10 +192,10 @@ class InputState: NSObject {
let joined = selectedReadings.joined(separator: "-") let joined = selectedReadings.joined(separator: "-")
let exist = LanguageModelManager.checkIfExist(userPhrase: text, key: joined) let exist = LanguageModelManager.checkIfExist(userPhrase: text, key: joined)
if exist { if exist {
return String(format: NSLocalizedString("You are now selecting \"%@\". The phrase already exists.", comment: ""), text) return String(format: NSLocalizedString("The phrase being marked \"%@\" already exists.", comment: ""), text)
} }
return String(format: NSLocalizedString("You are now selecting \"%@\". Press enter to add a new phrase.", comment: ""), text) return String(format: NSLocalizedString("Marking \"%@\". Press Enter to add it as a new phrase.", comment: ""), text)
} }
@objc var tooltipForInputting: String = "" @objc var tooltipForInputting: String = ""

View File

@ -332,15 +332,15 @@ class Preferences: NSObject {
case .empty: case .empty:
return NSLocalizedString("Candidates keys cannot be empty.", comment: "") return NSLocalizedString("Candidates keys cannot be empty.", comment: "")
case .invalidCharacters: case .invalidCharacters:
return NSLocalizedString("Candidate keys can only contain latin characters and numbers.", comment: "") return NSLocalizedString("Candidate keys can only contain Latin characters and numbers.", comment: "")
case .containSpace: case .containSpace:
return NSLocalizedString("Candidate keys cannot contain space.", comment: "") return NSLocalizedString("Candidate keys cannot contain space.", comment: "")
case .duplicatedCharacters: case .duplicatedCharacters:
return NSLocalizedString("There should not be duplicated keys.", comment: "") return NSLocalizedString("There should not be duplicated keys.", comment: "")
case .tooShort: case .tooShort:
return NSLocalizedString("The length of your candidate keys can not be less than 4 characters.", comment: "") return NSLocalizedString("Candidate keys cannot be shorter than 4 characters.", comment: "")
case .tooLong: case .tooLong:
return NSLocalizedString("The length of your candidate keys can not be larger than 15 characters.", comment: "") return NSLocalizedString("Candidate keys cannot be longer than 15 characters.", comment: "")
} }
} }

View File

@ -41,17 +41,17 @@
"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 the path at \"%@\"." = "Please check the permission of the path at \"%@\".";
"Edit Excluded Phrases" = "Edit Excluded Phrases"; "Edit Excluded Phrases" = "Edit Excluded Phrases";
"Use Half-Width Punctuations" = "Use Half-Width Punctuations"; "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."; "Marking \"%@\": add a custom phrase by selecting two or more characters." = "Marking \"%@\": add a custom phrase by selecting 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."; "Marking \"%@\". Press Enter to add it as a new phrase." = "Marking \"%@\". Press Enter to add it as 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."; "The phrase being marked \"%@\" is longer than the allowed %d characters." = "The phrase being marked \"%@\" is longer than the allowed %d characters.";
"Chinese conversion on" = "Chinese conversion on"; "Chinese conversion on" = "Chinese conversion on";
@ -63,27 +63,27 @@
"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 latin characters and numbers." = "Candidate keys can only contain latin characters and numbers."; "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.";
"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."; "Candidate keys cannot be shorter than 4 characters." = "Candidate keys cannot be shorter 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."; "Candidate keys cannot be longer than 15 characters." = "Candidate keys cannot be longer 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."; "Phrase replacement mode is on. Not recommended to add user phases." = "Phrase replacement mode is on. Not recommended to add user phases.";
"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."; "Model-based Chinese conversion is on. Not recommended to add user phrases." = "Model-based Chinese conversion is on. Not recommended to add user phrases.";
"Half-width punctuation on" = "Half-width punctuation on"; "Half-Width Punctuation On" = "Half-Width Punctuation On";
"Half-width punctuation off" = "Half-width punctuation off"; "Half-Width Punctuation Off" = "Half-Width Punctuation Off";
"Associated Phrases" = "Associated Phrases"; "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."; "Certain Unicode symbols or characters not supported as user phrases." = "Certain Unicode symbols or characters not supported as user phrases.";
"Cursor is before \"%@\"." = "Cursor is before \"%@\"."; "Cursor is before \"%@\"." = "Cursor is before \"%@\".";
@ -91,5 +91,5 @@
"Cursor is between \"%@\" and \"%@\"." = "Cursor is between \"%@\" and \"%@\"."; "Cursor is between \"%@\" and \"%@\"." = "Cursor is between \"%@\" and \"%@\".";
"You are now selecting \"%@\". The phrase already exists." = "You are now selecting \"%@\". The phrase already exists."; "The phrase being marked \"%@\" already exists." = "The phrase being marked \"%@\" already exists.";

View File

@ -41,17 +41,17 @@
"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 the path 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." = "您目前選擇了「%@」。請選擇兩個字以上,才能加入使用者詞彙。"; "Marking \"%@\": add a custom phrase by selecting two or more characters." = "您目前選擇了「%@」。請選擇兩個字以上,才能加入使用者詞彙。";
"You are now selecting \"%@\". Press enter to add a new phrase." = "您目前選擇了「%@」。按下 Enter 就可以加入到使用者詞彙中。"; "Marking \"%@\". Press Enter to add it as a new phrase." = "您目前選擇了「%@」。按下 Enter 就可以加入到使用者詞彙中。";
"You are now selecting \"%@\". A phrase cannot be longer than %d characters." = "您目前選擇了「%@」。自訂詞彙不能超過 %d 個字元。"; "The phrase being marked \"%@\" is longer than the allowed %d characters." = "您目前選擇了「%@」。自訂詞彙不能超過 %d 個字元。";
"Chinese conversion on" = "已經切換到簡體中文模式"; "Chinese conversion on" = "已經切換到簡體中文模式";
@ -63,27 +63,27 @@
"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 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." = "選字按鍵數量不可小於 4。"; "Candidate keys cannot be shorter than 4 characters." = "選字按鍵數量不可小於 4。";
"The length of your candidate keys can not be larger than 15 characters." = "選字按鍵數量不可大於 15。"; "Candidate keys cannot be longer than 15 characters." = "選字按鍵數量不可大於 15。";
"Phrase replacement mode is on. Not suggested to add phrase in the mode." = "詞彙轉換已開啟,不建議在此模式下加詞。"; "Phrase replacement mode is on. Not recommended to add user phases." = "詞彙轉換已開啟,不建議在此模式下加詞。";
"Model based Chinese conversion is on. Not suggested to add phrase in the mode." = "您已開啟將語言模型轉為簡體中文,不建議在此模式下加詞。"; "Model-based Chinese conversion is on. Not recommended to add user phrases." = "您已開啟將語言模型轉為簡體中文,不建議在此模式下加詞。";
"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." = "您輸入了特殊符號,我們還無法支援在這種狀況下手動加詞。"; "Certain Unicode symbols or characters not supported as user phrases." = "您輸入了特殊符號,我們還無法支援在這種狀況下手動加詞。";
"Cursor is before \"%@\"." = "游標正在「%@」前方"; "Cursor is before \"%@\"." = "游標正在「%@」前方";
@ -91,4 +91,4 @@
"Cursor is between \"%@\" and \"%@\"." = "游標正在「%@」與「%@」之間"; "Cursor is between \"%@\" and \"%@\"." = "游標正在「%@」與「%@」之間";
"You are now selecting \"%@\". The phrase already exists." = "您目前選擇了「%@」,這個詞彙已經存在了"; "The phrase being marked \"%@\" already exists." = "您目前選擇了「%@」,這個詞彙已經存在了";