Add localization framework for the GUI (en-US baseline) (#764)

Credit to @jmolinap2 for their work in #643, which was used as inspiration.
This commit is contained in:
Sashank
2026-09-10 17:48:43 +02:00
committed by GitHub
parent 6012b02ea2
commit 32024662f3
62 changed files with 2947 additions and 742 deletions
+19 -19
View File
@@ -1,6 +1,6 @@
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Apply Changes"
Title="%LANG:DeployApplyChanges%"
Width="500"
SizeToContent="Height"
ResizeMode="NoResize"
@@ -24,8 +24,8 @@
Width="36" Height="32"
BorderThickness="0"
Cursor="Hand"
ToolTip="Cancel"
AutomationProperties.Name="Cancel">
ToolTip="%LANG:ApplyCancelTooltip%"
AutomationProperties.Name="%LANG:ApplyCancelTooltip%">
<Button.Template>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" BorderThickness="0" CornerRadius="0,8,0,0">
@@ -78,12 +78,12 @@
</TextBlock.Triggers>
</TextBlock>
<TextBlock Text="Applying Changes"
<TextBlock Text="%LANG:ApplyInProgressTitle%"
Style="{DynamicResource ModalTitleStyle}"/>
<!-- Current step name -->
<TextBlock x:Name="ApplyStepName"
Text="Preparing..."
<TextBlock x:Name="ApplyStepName"
Text="%LANG:ApplyPreparing%"
Style="{DynamicResource ModalSubtextStyle}"
TextTrimming="CharacterEllipsis"
MaxWidth="430"/>
@@ -99,9 +99,9 @@
Margin="0,2,0,8"/>
<!-- Step counter -->
<TextBlock x:Name="ApplyStepCounter"
Text="Step 0 of 0"
FontSize="12"
<TextBlock x:Name="ApplyStepCounter"
Text="%LANG:ApplyPreparing%"
FontSize="12"
Foreground="{DynamicResource AppFgColor}"
HorizontalAlignment="Right"
Opacity="0.8"/>
@@ -121,12 +121,12 @@
HorizontalAlignment="Center"
Margin="0,0,0,12"/>
<TextBlock x:Name="ApplyCompletionTitle"
Text="Changes Applied"
<TextBlock x:Name="ApplyCompletionTitle"
Text="%LANG:ApplyCompletionTitleSuccess%"
Style="{DynamicResource ModalTitleStyle}"/>
<TextBlock x:Name="ApplyCompletionMessage"
Text="Please note that some changes will only take effect after a reboot. Thanks for using Win11Debloat!"
<TextBlock x:Name="ApplyCompletionMessage"
Text="%LANG:ApplyCompletionMessageDefault%"
TextWrapping="Wrap"
Style="{DynamicResource ModalSubtextStyle}"/>
</StackPanel>
@@ -146,7 +146,7 @@
Foreground="#e8912d"
VerticalAlignment="Center"
Margin="0,0,8,0"/>
<TextBlock Text="A reboot is required for these changes to take effect:"
<TextBlock Text="%LANG:ApplyRebootRequiredHeader%"
FontSize="13"
FontWeight="SemiBold"
Foreground="{DynamicResource AppFgColor}"
@@ -161,16 +161,16 @@
<UniformGrid x:Name="ButtonPanel" Rows="1">
<Button x:Name="ApplyKofiBtn"
Style="{DynamicResource ModalSecondaryStretchedButtonStyle}"
AutomationProperties.Name="Support the creator">
AutomationProperties.Name="%LANG:TitleBarSupportCreator%">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="&#xEB52;" FontFamily="{DynamicResource AppIconFontFamily}" FontSize="14" VerticalAlignment="Center" Margin="0,0,8,-1"/>
<TextBlock Text="Support the creator" VerticalAlignment="Center" FontSize="14" Margin="0,0,0,1"/>
<TextBlock Text="%LANG:TitleBarSupportCreator%" VerticalAlignment="Center" FontSize="14" Margin="0,0,0,1"/>
</StackPanel>
</Button>
<Button x:Name="ApplyCloseBtn"
Style="{DynamicResource ModalPrimaryStretchedButtonStyle}"
AutomationProperties.Name="Close">
<TextBlock Text="Close" VerticalAlignment="Center" FontSize="14" Margin="0,0,0,1"/>
AutomationProperties.Name="%LANG:TitleBarClose%">
<TextBlock Text="%LANG:TitleBarClose%" VerticalAlignment="Center" FontSize="14" Margin="0,0,0,1"/>
</Button>
</UniformGrid>
</Border>