Skip to content

Commit f5097c2

Browse files
authored
Merge pull request #4395 from Flow-Launcher/crowdin
Add Crowdin translation links to settings pages
2 parents 7c39d04 + b06680b commit f5097c2

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

Flow.Launcher.Infrastructure/Constant.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static class Constant
2424
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).ProductVersion;
2525
public static readonly string Dev = "Dev";
2626
public const string Documentation = "https://flowlauncher.com/docs/#/usage-tips";
27+
public const string CrowdinProjectUrl = "https://crowdin.com/project/flow-launcher";
2728

2829
public static readonly int ThumbnailSize = 64;
2930
private static readonly string ImagesDirectory = Path.Combine(ProgramDirectory, "Images");

Flow.Launcher/Languages/en.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
<system:String x:Key="DoublePinyinSchemasXingKongJianDao">Xing Kong Jian Dao</system:String>
145145
<system:String x:Key="DoublePinyinSchemasDaNiu">Da Niu</system:String>
146146
<system:String x:Key="DoublePinyinSchemasXiaoLang">Xiao Lang</system:String>
147+
<system:String x:Key="HelpUsTranslateFlow">Help us translate Flow</system:String>
147148

148149
<system:String x:Key="AlwaysPreview">Always Preview</system:String>
149150
<system:String x:Key="AlwaysPreviewToolTip">Always open preview panel when Flow activates. Press {0} to toggle preview.</system:String>
@@ -455,6 +456,7 @@
455456
<system:String x:Key="website">Website</system:String>
456457
<system:String x:Key="github">GitHub</system:String>
457458
<system:String x:Key="docs">Docs</system:String>
459+
<system:String x:Key="crowdin">Crowdin</system:String>
458460
<system:String x:Key="version">Version</system:String>
459461
<system:String x:Key="icons">Icons</system:String>
460462
<system:String x:Key="about_activate_times">You have activated Flow Launcher {0} times</system:String>

Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public string CacheFolderSize
4444
public string Documentation => Constant.Documentation;
4545
public string Docs => Constant.Docs;
4646
public string Github => Constant.GitHub;
47+
public string Crowdin => Constant.CrowdinProjectUrl;
4748

4849
public string Version => Constant.Version switch
4950
{

Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ private void UpdateEnumDropdownLocalizations()
226226
Settings.CustomBrowser.OnDisplayNameChanged();
227227
}
228228

229+
public string Crowdin => Constant.CrowdinProjectUrl;
230+
229231
public string Language
230232
{
231233
get => Settings.Language;

Flow.Launcher/SettingPages/Views/SettingsPaneAbout.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
<ui:HyperlinkButton Content="{DynamicResource website}" NavigateUri="{Binding Website}" />
7878
<ui:HyperlinkButton Content="{DynamicResource documentation}" NavigateUri="{Binding Documentation}" />
7979
<ui:HyperlinkButton Content="{DynamicResource github}" NavigateUri="{Binding Github}" />
80+
<ui:HyperlinkButton Content="{DynamicResource crowdin}" NavigateUri="{Binding Crowdin}" />
8081
</StackPanel>
8182
</ui:SettingsCard>
8283

Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,16 @@
565565
<ui:FontIcon Glyph="&#xf2b7;" />
566566
</ui:SettingsCard.HeaderIcon>
567567

568-
<ComboBox
569-
MaxWidth="200"
570-
Margin="10 0 0 0"
571-
DisplayMemberPath="Display"
572-
ItemsSource="{Binding Languages}"
573-
SelectedValue="{Binding Language}"
574-
SelectedValuePath="LanguageCode" />
568+
<StackPanel Orientation="Horizontal">
569+
<ui:HyperlinkButton Content="{DynamicResource HelpUsTranslateFlow}" NavigateUri="{Binding Crowdin}" />
570+
<ComboBox
571+
MaxWidth="200"
572+
Margin="10 0 0 0"
573+
DisplayMemberPath="Display"
574+
ItemsSource="{Binding Languages}"
575+
SelectedValue="{Binding Language}"
576+
SelectedValuePath="LanguageCode" />
577+
</StackPanel>
575578
</ui:SettingsCard>
576579
<Border Visibility="{Binding KoreanIMERegistryKeyExists, Converter={StaticResource BoolToVisibilityConverter}}">
577580
<ui:InfoBar

0 commit comments

Comments
 (0)