diff --git a/Source/Base.lproj/Localizable.strings b/Source/Base.lproj/Localizable.strings index 6a30f895..1573b0ed 100644 --- a/Source/Base.lproj/Localizable.strings +++ b/Source/Base.lproj/Localizable.strings @@ -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 at \"%@\"."; +"Please check the permission of the path 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." = "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"; @@ -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 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." = "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"; -"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 \"%@\"."; @@ -91,4 +91,4 @@ "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."; diff --git a/Source/InputMethodController.swift b/Source/InputMethodController.swift index 055ec382..92802256 100644 --- a/Source/InputMethodController.swift +++ b/Source/InputMethodController.swift @@ -205,7 +205,7 @@ class McBopomofoInputMethodController: IMKInputController { @objc func toggleHalfWidthPunctuation(_ sender: Any?) { 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?) { @@ -224,7 +224,7 @@ class McBopomofoInputMethodController: IMKInputController { private func open(userFileAt path: String) { func checkIfUserFilesExist() -> Bool { 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) return false } diff --git a/Source/InputState.swift b/Source/InputState.swift index 61217c47..8096f56b 100644 --- a/Source/InputState.swift +++ b/Source/InputState.swift @@ -166,14 +166,14 @@ class InputState: NSObject { @objc var tooltip: String { 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 { - 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 { - 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 { return "" @@ -181,9 +181,9 @@ class InputState: NSObject { let text = (composingBuffer as NSString).substring(with: markedRange) 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) { - 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) @@ -192,10 +192,10 @@ class InputState: NSObject { let joined = selectedReadings.joined(separator: "-") let exist = LanguageModelManager.checkIfExist(userPhrase: text, key: joined) 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 = "" diff --git a/Source/Preferences.swift b/Source/Preferences.swift index d1f59f3b..bae5dca0 100644 --- a/Source/Preferences.swift +++ b/Source/Preferences.swift @@ -332,15 +332,15 @@ class Preferences: NSObject { case .empty: return NSLocalizedString("Candidates keys cannot be empty.", comment: "") 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: return NSLocalizedString("Candidate keys cannot contain space.", comment: "") case .duplicatedCharacters: return NSLocalizedString("There should not be duplicated keys.", comment: "") 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: - 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: "") } } diff --git a/Source/en.lproj/Localizable.strings b/Source/en.lproj/Localizable.strings index acaee5b1..3b153beb 100644 --- a/Source/en.lproj/Localizable.strings +++ b/Source/en.lproj/Localizable.strings @@ -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 at \"%@\"."; +"Please check the permission of the path 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." = "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"; @@ -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 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." = "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"; -"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 \"%@\"."; @@ -91,5 +91,5 @@ "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."; diff --git a/Source/zh-Hant.lproj/Localizable.strings b/Source/zh-Hant.lproj/Localizable.strings index 36c4370c..98d3ff2f 100644 --- a/Source/zh-Hant.lproj/Localizable.strings +++ b/Source/zh-Hant.lproj/Localizable.strings @@ -41,17 +41,17 @@ "Unable to create the user phrase file." = "無法建立使用者詞彙檔案"; -"Please check the permission of at \"%@\"." = "請檢查以下路徑的寫入權限 \"%@\"。"; +"Please check the permission of the path at \"%@\"." = "請檢查以下路徑的寫入權限 \"%@\"。"; "Edit Excluded Phrases" = "編輯要排除的詞彙"; "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" = "已經切換到簡體中文模式"; @@ -63,27 +63,27 @@ "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." = "選字鍵不可包含空白。"; "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" = "聯想詞"; -"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 \"%@\"." = "游標正在「%@」前方"; @@ -91,4 +91,4 @@ "Cursor is between \"%@\" and \"%@\"." = "游標正在「%@」與「%@」之間"; -"You are now selecting \"%@\". The phrase already exists." = "您目前選擇了「%@」,這個詞彙已經存在了"; +"The phrase being marked \"%@\" already exists." = "您目前選擇了「%@」,這個詞彙已經存在了";