Skip to content

A Swiss Army knife for developers.

Improved support of flow direction

Etienne Baudoux51664c804dd3
diff --git a/src/dev/impl/DevToys/LanguageManager.cs b/src/dev/impl/DevToys/LanguageManager.cs
index 54078c4f3..6f66a1884 100644
--- a/src/dev/impl/DevToys/LanguageManager.cs
+++ b/src/dev/impl/DevToys/LanguageManager.cs
@@ -2210,6 +2210,11 @@ namespace DevToys
/// Gets the resource SearchKeywords.
/// </summary>
public string SearchKeywords => _resources.GetString("SearchKeywords");
+
+ /// <summary>
+ /// Gets the resource HelpTranslating.
+ /// </summary>
+ public string HelpTranslating => _resources.GetString("HelpTranslating");
}
public class SqlFormatterStrings : ObservableObject
diff --git a/src/dev/impl/DevToys/LanguageManager.tt b/src/dev/impl/DevToys/LanguageManager.tt
index 44a537fd9..1809f677c 100644
--- a/src/dev/impl/DevToys/LanguageManager.tt
+++ b/src/dev/impl/DevToys/LanguageManager.tt
@@ -192,6 +192,6 @@ namespace DevToys
}
<#
}
- }
+ }
#>
}
diff --git a/src/dev/impl/DevToys/Strings/en-US/Settings.resw b/src/dev/impl/DevToys/Strings/en-US/Settings.resw
index 6535f4a8a..cfe3b666d 100644
--- a/src/dev/impl/DevToys/Strings/en-US/Settings.resw
+++ b/src/dev/impl/DevToys/Strings/en-US/Settings.resw
@@ -231,4 +231,7 @@
<data name="SearchKeywords" xml:space="preserve">
<value>Configurations Options</value>
</data>
+ <data name="HelpTranslating" xml:space="preserve">
+ <value>Help us translating DevToys!</value>
+ </data>
</root>
\ No newline at end of file
diff --git a/src/dev/impl/DevToys/Views/MainPage.xaml b/src/dev/impl/DevToys/Views/MainPage.xaml
index 6fd68eb4b..1a0c0913d 100644
--- a/src/dev/impl/DevToys/Views/MainPage.xaml
+++ b/src/dev/impl/DevToys/Views/MainPage.xaml
@@ -16,7 +16,8 @@
xmlns:viewmanagement="using:Windows.UI.ViewManagement"
mc:Ignorable="d"
NavigationCacheMode="Enabled"
- muxc:BackdropMaterial.ApplyToRootOrPageBackground="True">
+ muxc:BackdropMaterial.ApplyToRootOrPageBackground="True"
+ FlowDirection="{Binding Instance.FlowDirection, Source={StaticResource LanguageManager}}">
<Page.Resources>
<converters:DoubleToGridLengthConverter x:Key="DoubleToGridLengthConverter"/>
<converters:BooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter" IsInverted="True"/>
diff --git a/src/dev/impl/DevToys/Views/Tools/Settings/SettingsToolPage.xaml b/src/dev/impl/DevToys/Views/Tools/Settings/SettingsToolPage.xaml
index 3d1dd9c68..4ecd4a647 100644
--- a/src/dev/impl/DevToys/Views/Tools/Settings/SettingsToolPage.xaml
+++ b/src/dev/impl/DevToys/Views/Tools/Settings/SettingsToolPage.xaml
@@ -26,12 +26,15 @@
<controls:ExpandableSettingControl.Icon>
<FontIcon Glyph="&#xF4F3;" />
</controls:ExpandableSettingControl.Icon>
- <ComboBox
- DisplayMemberPath="DisplayName"
- SelectedValuePath="InternalName"
- ItemsSource="{x:Bind ViewModel.AvailableLanguages}"
- SelectedValue="{x:Bind ViewModel.Language, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
- </ComboBox>
+ <StackPanel Orientation="Horizontal">
+ <HyperlinkButton Content="{x:Bind ViewModel.Strings.HelpTranslating}" NavigateUri="https://crowdin.com/project/devtoys" />
+ <ComboBox
+ DisplayMemberPath="DisplayName"
+ SelectedValuePath="InternalName"
+ ItemsSource="{x:Bind ViewModel.AvailableLanguages}"
+ SelectedValue="{x:Bind ViewModel.Language, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
+ </ComboBox>
+ </StackPanel>
</controls:ExpandableSettingControl>
<controls:ExpandableSettingControl
Title="{x:Bind ViewModel.Strings.AppTheme}"