From 6422eb85793d382cba24a3cec077039994ae82bd Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Wed, 23 Nov 2022 19:07:06 +0800
Subject: [PATCH 1/3] update wording
---
Flow.Launcher/Languages/en.xaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index de494da4bd5..c820e46b244 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -149,7 +149,7 @@
Built-in Shortcuts
Query
Shortcut
- Expanded
+ Expansion
Description
Delete
Edit
From e89c7732d3bc564dd39c3f7c606c1957de38052c Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Wed, 23 Nov 2022 19:51:43 +0800
Subject: [PATCH 2/3] update wording
---
Flow.Launcher/Languages/en.xaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index c820e46b244..89e886c6171 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -64,8 +64,8 @@
When the icon is hidden from the tray, the Settings menu can be opened by right-clicking on the search window.
Query Search Precision
Changes minimum match score required for results.
- Should Use Pinyin
- Allows using Pinyin to search. Pinyin is the standard system of romanized spelling for translating Chinese
+ Search with Pinyin
+ Allows using Pinyin to search. Pinyin is the standard system of romanized spelling for translating Chinese.
Shadow effect is not allowed while current theme has blur effect enabled
From 2a1d917243eb89660c837cffc4dc4d59723a041c Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Wed, 23 Nov 2022 20:01:48 +0800
Subject: [PATCH 3/3] Translate hard-coded English text in Pinyin dialog
---
Flow.Launcher.Core/Resource/Internationalization.cs | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Flow.Launcher.Core/Resource/Internationalization.cs b/Flow.Launcher.Core/Resource/Internationalization.cs
index 5c99bc23906..4568e92f36b 100644
--- a/Flow.Launcher.Core/Resource/Internationalization.cs
+++ b/Flow.Launcher.Core/Resource/Internationalization.cs
@@ -115,7 +115,11 @@ public bool PromptShouldUsePinyin(string languageCodeToSet)
if (languageToSet != AvailableLanguages.Chinese && languageToSet != AvailableLanguages.Chinese_TW)
return false;
- if (MessageBox.Show("Do you want to turn on search with Pinyin?", string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.No)
+ // No other languages should show the following text so just make it hard-coded
+ // "Do you want to search with pinyin?"
+ string text = languageToSet == AvailableLanguages.Chinese ? "是否启用拼音搜索?" : "是否啓用拼音搜索?" ;
+
+ if (MessageBox.Show(text, string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.No)
return false;
return true;
@@ -221,4 +225,4 @@ public string LanguageFile(string folder, string language)
}
}
}
-}
\ No newline at end of file
+}