Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ extension AppDelegate {
func checkIfUserFilesExist() -> Bool {
if !LanguageModelManager.checkIfUserLanguageModelFilesExist() {
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("Failed to Create the User Phrase File", comment: ""), content: content, confirmButtonTitle: NSLocalizedString("OK", comment: ""), cancelButtonTitle: nil, cancelAsDefault: false, delegate: nil)
return false
}
return true
Expand Down
12 changes: 6 additions & 6 deletions Source/Base.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
/* No comment provided by engineer. */
"You're currently using McBopomofo %@ (%@), a new version %@ (%@) is now available. Do you want to visit McBopomofo's website to download the version?%@" = "You're currently using McBopomofo %@ (%@), a new version %@ (%@) is now available. Do you want to visit McBopomofo's website to download the version?%@";

"Chinese Conversion" = "Convert to Simplified Chinese";
"Convert to Simplified Chinese" = "Convert to Simplified Chinese";

"User Phrases" = "User Phrases";

"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.";
"Failed to Create the User Phrase File" = "Failed to Create the User Phrase File";

"Please check the permission of the path at \"%@\"." = "Please check the permission of the path at \"%@\".";

Expand All @@ -53,9 +53,9 @@

"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";

"Chinese conversion off" = "Chinese conversion off";
"Chinese Conversion Off" = "Chinese Conversion Off";

"Edit Phrase Replacement Table" = "Edit Phrase Replacement Table";

Expand Down Expand Up @@ -135,6 +135,6 @@

"Roman Numbers (Alphabets)" = "Roman Numbers (Alphabets)";

"Roman Numbers (Full-width Upper Case)" = "Roman Numbers (Full-width Upper Case)";
"Roman Numbers (Full-Width Upper Case)" = "Roman Numbers (Full-Width Upper Case)";

"Roman Numbers (Full-width Lower Case)" = "Roman Numbers (Full-width Lower Case)";
"Roman Numbers (Full-Width Lower Case)" = "Roman Numbers (Full-Width Lower Case)";
6 changes: 3 additions & 3 deletions Source/InputMethodController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class McBopomofoInputMethodController: IMKInputController {
let menu = NSMenu(title: "Input Method Menu")

let chineseConversionItem = menu.addItem(
withTitle: NSLocalizedString("Chinese Conversion", comment: ""),
withTitle: NSLocalizedString("Convert to Simplified Chinese", comment: ""),
action: #selector(toggleChineseConverter(_:)), keyEquivalent: "g")
chineseConversionItem.keyEquivalentModifierMask = [.command, .control]
chineseConversionItem.state = Preferences.chineseConversionEnabled.state
Expand Down Expand Up @@ -254,8 +254,8 @@ class McBopomofoInputMethodController: IMKInputController {
let enabled = Preferences.toggleChineseConversionEnabled()
NotifierController.notify(
message: enabled
? NSLocalizedString("Chinese conversion on", comment: "")
: NSLocalizedString("Chinese conversion off", comment: ""))
? NSLocalizedString("Chinese Conversion On", comment: "")
: NSLocalizedString("Chinese Conversion Off", comment: ""))
if let currentClient = currentClient {
keyHandler.clear()
self.handle(state: InputState.Empty(), client: currentClient)
Expand Down
4 changes: 2 additions & 2 deletions Source/InputState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ class InputState: NSObject {
{ .RomanNumber(style: .alphabets, number: "") }
),
(
NSLocalizedString("Roman Numbers (Full-width Upper Case)", comment: ""),
NSLocalizedString("Roman Numbers (Full-Width Upper Case)", comment: ""),
{ .RomanNumber(style: .fullWidthUpper, number: "") }
),
(
NSLocalizedString("Roman Numbers (Full-width Lower Case)", comment: ""),
NSLocalizedString("Roman Numbers (Full-Width Lower Case)", comment: ""),
{ .RomanNumber(style: .fullWidthLower, number: "") }
),
]
Expand Down
12 changes: 6 additions & 6 deletions Source/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
/* No comment provided by engineer. */
"You're currently using McBopomofo %@ (%@), a new version %@ (%@) is now available. Do you want to visit McBopomofo's website to download the version?%@" = "You're currently using McBopomofo %@ (%@), a new version %@ (%@) is now available. Do you want to visit McBopomofo's website to download the version?%@";

"Chinese Conversion" = "Convert to Simplified Chinese";
"Convert to Simplified Chinese" = "Convert to Simplified Chinese";

"User Phrases" = "User Phrases";

"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.";
"Failed to Create the User Phrase File" = "Failed to Create the User Phrase File";

"Please check the permission of the path at \"%@\"." = "Please check the permission of the path at \"%@\".";

Expand All @@ -53,9 +53,9 @@

"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";

"Chinese conversion off" = "Chinese conversion off";
"Chinese Conversion Off" = "Chinese Conversion Off";

"Edit Phrase Replacement Table" = "Edit Phrase Replacement Table";

Expand Down Expand Up @@ -137,6 +137,6 @@

"Roman Numbers (Alphabets)" = "Roman Numbers (Alphabets)";

"Roman Numbers (Full-width Upper Case)" = "Roman Numbers (Full-width Upper Case)";
"Roman Numbers (Full-Width Upper Case)" = "Roman Numbers (Full-Width Upper Case)";

"Roman Numbers (Full-width Lower Case)" = "Roman Numbers (Full-width Lower Case)";
"Roman Numbers (Full-Width Lower Case)" = "Roman Numbers (Full-Width Lower Case)";
12 changes: 6 additions & 6 deletions Source/zh-Hant.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
/* No comment provided by engineer. */
"You're currently using McBopomofo %@ (%@), a new version %@ (%@) is now available. Do you want to visit McBopomofo's website to download the version?%@" = "目前使用的小麥注音版本是 %1$@ (%2$@),網路上有更新版本 %3$@ (%4$@) 可供下載。是否要前往小麥注音網站下載新版來安裝?%5$@";

"Chinese Conversion" = "輸出簡體中文";
"Convert to Simplified Chinese" = "輸出簡體中文";

"User Phrases" = "使用者詞彙";

"Edit User Phrases" = "編輯使用者詞彙";

"Reload User Phrases" = "重新載入使用者詞彙";

"Unable to create the user phrase file." = "無法建立使用者詞彙檔案";
"Failed to Create the User Phrase File" = "無法建立使用者詞彙檔案";

"Please check the permission of the path at \"%@\"." = "請檢查以下路徑的寫入權限 \"%@\"。";

Expand All @@ -53,9 +53,9 @@

"The phrase being marked \"%@\" is longer than the allowed %d characters." = "您目前選擇了「%@」。自訂詞彙不能超過 %d 個字元。";

"Chinese conversion on" = "已經切換到簡體中文模式";
"Chinese Conversion On" = "已經切換到簡體中文模式";

"Chinese conversion off" = "已經切換到繁體中文模式";
"Chinese Conversion Off" = "已經切換到繁體中文模式";

"Edit Phrase Replacement Table" = "編輯詞彙替換表格";

Expand Down Expand Up @@ -135,6 +135,6 @@

"Roman Numbers (Alphabets)" = "羅馬數字 (字母)";

"Roman Numbers (Full-width Upper Case)" = "羅馬數字 (大寫全形)";
"Roman Numbers (Full-Width Upper Case)" = "羅馬數字 (大寫全形)";

"Roman Numbers (Full-width Lower Case)" = "羅馬數字 (小寫全形)";
"Roman Numbers (Full-Width Lower Case)" = "羅馬數字 (小寫全形)";