- Strings.cs : ~80 new keys covering status messages, progress detail (DL/extraction/verify), license summary, license details dialog, onboarding statuses, settings field labels, restart/cancel/quit confirmations, toasts, resume choice, copyright. Strings.FormatSize and Strings.FormatDate / FormatLongDate switch units (o/Ko vs B/KB) and pattern (dd/MM/yyyy vs M/d/yyyy vs 2026年) by active language. - License terminology renamed across UI: "License" → "License de mise à jour" / "Software Update License" to clarify it gates UPDATES, not Proserve itself. Expired/revoked dialogs now spell out "you can still download versions released before this date and launch any installed version". - "🔒 License insuffisante" → "🔒 License de mise à jour requise pour cette version" / "Valid update license needed for this version" so users understand it's a per-version eligibility check, not a global block. - All hardcoded FR strings in views (SettingsDialog labels, LicenseDetails fields, Onboarding statuses, dialog titles, copyright, window chrome tooltips, "Sortie le", etc.) replaced with x:Static loc bindings. - All FormatSize duplicates (5 places) and date format strings (8 places) delegate to Strings helpers — single source of truth for localization. - Settings dialog: License section moved to the top before Language. It's the most important info and conditions what the user can download. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
116 lines
6.0 KiB
XML
116 lines
6.0 KiB
XML
<Window x:Class="PSLauncher.App.Views.LicenseDetailsDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:loc="clr-namespace:PSLauncher.Core.Localization;assembly=PSLauncher.Core"
|
|
Title="License"
|
|
Icon="pack://application:,,,/Resources/favicon.ico"
|
|
Width="500" Height="480"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterOwner"
|
|
Background="{StaticResource Brush.Bg.Window}">
|
|
<Grid Margin="32,28">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Header avec badge couleur -->
|
|
<Border Grid.Row="0" CornerRadius="8" Padding="20,16"
|
|
BorderThickness="2"
|
|
x:Name="HeaderBorder">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock x:Name="StatusIconText"
|
|
FontSize="32" FontWeight="Bold"
|
|
VerticalAlignment="Center" Margin="0,0,16,0" />
|
|
<StackPanel VerticalAlignment="Center">
|
|
<TextBlock x:Name="StatusTitleText"
|
|
FontSize="18" FontWeight="SemiBold"
|
|
Foreground="{StaticResource Brush.Text.Primary}" />
|
|
<TextBlock x:Name="StatusSubtitleText"
|
|
FontSize="13"
|
|
Foreground="{StaticResource Brush.Text.Secondary}"
|
|
Margin="0,2,0,0" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- Détails -->
|
|
<Border Grid.Row="2" Background="{StaticResource Brush.Bg.Card}"
|
|
BorderBrush="{StaticResource Brush.Border}" BorderThickness="1"
|
|
CornerRadius="6" Padding="20" Margin="0,16,0,0">
|
|
<StackPanel>
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Text="{x:Static loc:Strings.LicenseDetailsClient}"
|
|
Foreground="{StaticResource Brush.Text.Secondary}" FontSize="12" />
|
|
<TextBlock Grid.Column="1" x:Name="OwnerText"
|
|
FontWeight="SemiBold"
|
|
Foreground="{StaticResource Brush.Text.Primary}" />
|
|
</Grid>
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Text="{x:Static loc:Strings.LicenseDetailsValidity}"
|
|
Foreground="{StaticResource Brush.Text.Secondary}" FontSize="12" />
|
|
<TextBlock Grid.Column="1" x:Name="UntilText"
|
|
FontWeight="SemiBold"
|
|
Foreground="{StaticResource Brush.Text.Primary}" />
|
|
</Grid>
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Text="{x:Static loc:Strings.LicenseDetailsActivatedOn}"
|
|
Foreground="{StaticResource Brush.Text.Secondary}" FontSize="12" />
|
|
<TextBlock Grid.Column="1" x:Name="IssuedText"
|
|
Foreground="{StaticResource Brush.Text.Primary}" />
|
|
</Grid>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Text="{x:Static loc:Strings.LicenseDetailsMachineId}"
|
|
Foreground="{StaticResource Brush.Text.Secondary}" FontSize="12"
|
|
VerticalAlignment="Center" />
|
|
<Grid Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" x:Name="MachineIdText"
|
|
FontFamily="Consolas" FontSize="11"
|
|
Foreground="{StaticResource Brush.Text.Primary}"
|
|
TextTrimming="CharacterEllipsis" VerticalAlignment="Center" />
|
|
<Button Grid.Column="1" Style="{StaticResource SecondaryButton}"
|
|
Content="📋"
|
|
ToolTip="{x:Static loc:Strings.CopyTooltip}"
|
|
Click="OnCopyMachineId" />
|
|
</Grid>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- Footer actions -->
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,18,0,0">
|
|
<Button Style="{StaticResource SecondaryButton}"
|
|
Content="{x:Static loc:Strings.LicenseDetailsDeactivate}"
|
|
Click="OnDeactivate"
|
|
Margin="0,0,12,0" />
|
|
<Button Style="{StaticResource AccentButton}"
|
|
Content="{x:Static loc:Strings.ActionClose}"
|
|
IsCancel="True" IsDefault="True"
|
|
Padding="32,8"
|
|
Click="OnClose" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|