Skip to content

Commit

Permalink
Add french translations
Browse files Browse the repository at this point in the history
  • Loading branch information
reagcz committed Oct 14, 2024
1 parent 0875492 commit 0dfb5ac
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 4 deletions.
9 changes: 9 additions & 0 deletions IdeapadToolkit/Localization/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions IdeapadToolkit/Localization/Strings.cs-CZ.resx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@
<data name="FLIP_TO_BOOT" xml:space="preserve">
<value>Zapnout při otevření</value>
</data>
<data name="HOME" xml:space="preserve">
<value>Domů</value>
</data>
<data name="INTELLIGENT_COOLING" xml:space="preserve">
<value>Chytré chlazení</value>
</data>
Expand Down
45 changes: 45 additions & 0 deletions IdeapadToolkit/Localization/Strings.fr-FR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,49 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ALWAYS_ON_USB" xml:space="preserve">
<value>USB toujours activé</value>
</data>
<data name="ALWAYS_ON_USB_BATTERY" xml:space="preserve">
<value>USB toujours activé sur batterie</value>
</data>
<data name="BATTERY_CHARGING_MODE" xml:space="preserve">
<value>Mode de charge de la batterie</value>
</data>
<data name="BATTERY_SAVING" xml:space="preserve">
<value>Économie de batterie</value>
</data>
<data name="CONSERVATION" xml:space="preserve">
<value>Conservation</value>
</data>
<data name="EXTREME_PERFORMANCE" xml:space="preserve">
<value>Performances maximales</value>
</data>
<data name="FLIP_TO_BOOT" xml:space="preserve">
<value>Ouvrir le capot pour démarrer</value>
</data>
<data name="HOME" xml:space="preserve">
<value>Maison</value>
</data>
<data name="INTELLIGENT_COOLING" xml:space="preserve">
<value>Refroidissement intelligent</value>
</data>
<data name="LANGUAGE" xml:space="preserve">
<value>Langue</value>
</data>
<data name="NORMAL" xml:space="preserve">
<value>Normal</value>
</data>
<data name="OTHER" xml:space="preserve">
<value>Autres</value>
</data>
<data name="POWER_PROFILE" xml:space="preserve">
<value>Profil de performance</value>
</data>
<data name="RAPID" xml:space="preserve">
<value>Rapide</value>
</data>
<data name="RUN_ON_STARTUP" xml:space="preserve">
<value>Lancer au démarrage</value>
</data>
</root>
3 changes: 3 additions & 0 deletions IdeapadToolkit/Localization/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@
<data name="FLIP_TO_BOOT" xml:space="preserve">
<value>Flip to Boot</value>
</data>
<data name="HOME" xml:space="preserve">
<value>Home</value>
</data>
<data name="INTELLIGENT_COOLING" xml:space="preserve">
<value>Intelligent Cooling</value>
</data>
Expand Down
4 changes: 2 additions & 2 deletions IdeapadToolkit/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:loc="clr-namespace:IdeapadToolkit.Localization"
xmlns:local="clr-namespace:IdeapadToolkit"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mwpf="http://schemas.modernwpf.com/2019"
Expand All @@ -19,7 +20,6 @@
ui:TitleBar.Style="{DynamicResource TitleBarStyle}"
ui:WindowHelper.UseModernWindowStyle="True"
Background="#0b0b0b"
SizeToContent="Width"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<FrameworkElement.Resources>
Expand Down Expand Up @@ -62,7 +62,7 @@
ItemInvoked="NavigationView_ItemInvoked"
PaneDisplayMode="Top">
<mwpf:NavigationView.MenuItems>
<mwpf:NavigationViewItem Content="Home" Tag="{x:Type views:MainPage}">
<mwpf:NavigationViewItem Content="{x:Static loc:Strings.HOME}" Tag="{x:Type views:MainPage}">
<mwpf:NavigationViewItem.Icon>
<mwpf:SymbolIcon Symbol="Home" />
</mwpf:NavigationViewItem.Icon>
Expand Down
4 changes: 2 additions & 2 deletions IdeapadToolkit/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
FontSize="24"
Text="{x:Static loc:Strings.OTHER}" />
<ui:SimpleStackPanel Spacing="16">
<StackPanel Orientation="Horizontal">
<ui:SimpleStackPanel Orientation="Horizontal" Spacing="10">
<ui:ToggleSwitch
Width="auto"
ui:ControlHelper.Header="{x:Static loc:Strings.FLIP_TO_BOOT}"
Expand All @@ -105,7 +105,7 @@
Source="/Resources/admin.png" />
</Button.Content>
</Button>
</StackPanel>
</ui:SimpleStackPanel>
<ui:ToggleSwitch ui:ControlHelper.Header="{x:Static loc:Strings.ALWAYS_ON_USB}" IsOn="{Binding IsAlwaysOnUsbEnabled}" />
<ui:ToggleSwitch
ui:ControlHelper.Header="{x:Static loc:Strings.ALWAYS_ON_USB_BATTERY}"
Expand Down

0 comments on commit 0dfb5ac

Please sign in to comment.