Skip to content

Commit 9051e3e

Browse files
Merge pull request #1567 from VictoriousRaptor/UpdateWording
Update wording
2 parents 3eca74f + 2a1d917 commit 9051e3e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
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+
}

Flow.Launcher/Languages/en.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
<system:String x:Key="hideNotifyIconToolTip">When the icon is hidden from the tray, the Settings menu can be opened by right-clicking on the search window.</system:String>
6565
<system:String x:Key="querySearchPrecision">Query Search Precision</system:String>
6666
<system:String x:Key="querySearchPrecisionToolTip">Changes minimum match score required for results.</system:String>
67-
<system:String x:Key="ShouldUsePinyin">Should Use Pinyin</system:String>
68-
<system:String x:Key="ShouldUsePinyinToolTip">Allows using Pinyin to search. Pinyin is the standard system of romanized spelling for translating Chinese</system:String>
67+
<system:String x:Key="ShouldUsePinyin">Search with Pinyin</system:String>
68+
<system:String x:Key="ShouldUsePinyinToolTip">Allows using Pinyin to search. Pinyin is the standard system of romanized spelling for translating Chinese.</system:String>
6969
<system:String x:Key="shadowEffectNotAllowed">Shadow effect is not allowed while current theme has blur effect enabled</system:String>
7070

7171
<!-- Setting Plugin -->
@@ -149,7 +149,7 @@
149149
<system:String x:Key="builtinShortcuts">Built-in Shortcuts</system:String>
150150
<system:String x:Key="customQuery">Query</system:String>
151151
<system:String x:Key="customShortcut">Shortcut</system:String>
152-
<system:String x:Key="customShortcutExpansion">Expanded</system:String>
152+
<system:String x:Key="customShortcutExpansion">Expansion</system:String>
153153
<system:String x:Key="builtinShortcutDescription">Description</system:String>
154154
<system:String x:Key="delete">Delete</system:String>
155155
<system:String x:Key="edit">Edit</system:String>

0 commit comments

Comments
 (0)