Skip to content

Commit aed134f

Browse files
committed
Add translations
1 parent 06b3219 commit aed134f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Flow.Launcher.Infrastructure/Http/Http.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var userName when string.IsNullOrEmpty(userName) =>
8282
}
8383
catch (UriFormatException e)
8484
{
85-
API.ShowMsg("Please try again", "Unable to parse Http Proxy");
85+
API.ShowMsg(API.GetTranslation("pleaseTryAgain"), API.GetTranslation("parseProxyFailed"));
8686
Log.Exception(ClassName, "Unable to parse Uri", e);
8787
}
8888
}

Flow.Launcher/Languages/en.xaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
<system:String x:Key="pluginsHaveErrored">The following plugins have errored and cannot be loaded:</system:String>
3131
<system:String x:Key="referToLogs">Please refer to the logs for more information</system:String>
3232

33+
<!-- Http -->
34+
<system:String x:Key="pleaseTryAgain">Please try again</system:String>
35+
<system:String x:Key="parseProxyFailed">Unable to parse Http Proxy</system:String>
36+
3337
<!-- MainWindow -->
3438
<system:String x:Key="registerHotkeyFailed">Failed to register hotkey "{0}". The hotkey may be in use by another program. Change to a different hotkey, or exit another program.</system:String>
3539
<system:String x:Key="unregisterHotkeyFailed">Failed to unregister hotkey "{0}". Please try again or see log for details</system:String>
@@ -152,6 +156,8 @@
152156
<system:String x:Key="KoreanImeOpenLinkButton">Open</system:String>
153157
<system:String x:Key="KoreanImeRegistry">Use Previous Korean IME</system:String>
154158
<system:String x:Key="KoreanImeRegistryTooltip">You can change the Previous Korean IME settings directly from here</system:String>
159+
<system:String x:Key="KoreanImeSettingChangeFailTitle">Failed to change Korean IME setting</system:String>
160+
<system:String x:Key="KoreanImeSettingChangeFailSubTitle">Please check your system registry access or contact support.</system:String>
155161
<system:String x:Key="homePage">Home Page</system:String>
156162
<system:String x:Key="homePageToolTip">Show home page results when query text is empty.</system:String>
157163
<system:String x:Key="historyResultsForHomePage">Show History Results in Home Page</system:String>

Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ public bool LegacyKoreanIMEEnabled
216216
}
217217
else
218218
{
219-
//Since this is rarely seen text, language support is not provided.
220-
App.API.ShowMsg("Failed to change Korean IME setting", "Please check your system registry access or contact support.");
219+
// Since this is rarely seen text, language support is not provided.
220+
App.API.ShowMsg(App.API.GetTranslation("KoreanImeSettingChangeFailTitle"), App.API.GetTranslation("KoreanImeSettingChangeFailSubTitle"));
221221
}
222222
}
223223
}

0 commit comments

Comments
 (0)