Skip to content

Commit 2a1d917

Browse files
Translate hard-coded English text in Pinyin dialog
1 parent e89c773 commit 2a1d917

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Flow.Launcher.Core/Resource/Internationalization.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ public bool PromptShouldUsePinyin(string languageCodeToSet)
115115
if (languageToSet != AvailableLanguages.Chinese && languageToSet != AvailableLanguages.Chinese_TW)
116116
return false;
117117

118-
if (MessageBox.Show("Do you want to turn on search with Pinyin?", string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.No)
118+
// No other languages should show the following text so just make it hard-coded
119+
// "Do you want to search with pinyin?"
120+
string text = languageToSet == AvailableLanguages.Chinese ? "是否启用拼音搜索?" : "是否啓用拼音搜索?" ;
121+
122+
if (MessageBox.Show(text, string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.No)
119123
return false;
120124

121125
return true;
@@ -221,4 +225,4 @@ public string LanguageFile(string folder, string language)
221225
}
222226
}
223227
}
224-
}
228+
}

0 commit comments

Comments
 (0)