Skip to content

Commit

Permalink
Add French translation for User Elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxhy committed May 22, 2024
1 parent c0cf53c commit 5dbbd45
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
18 changes: 18 additions & 0 deletions WpfApp/Properties/Resources.Designer.cs

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

6 changes: 6 additions & 0 deletions WpfApp/Properties/Resources.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@
<data name="Updates" xml:space="preserve">
<value>Mises à jour</value>
</data>
<data name="UserElevation" xml:space="preserve">
<value>Des permissions additionnelles peuvent être requises. Voulez-vous redémarrer l'application avec des privilèges administrateur ?</value>
</data>
<data name="UserElevationTitle" xml:space="preserve">
<value>Elévation de privilèges utilisateur</value>
</data>
<data name="UUID" xml:space="preserve">
<value>UUID</value>
</data>
Expand Down
6 changes: 6 additions & 0 deletions WpfApp/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@
<data name="Updates" xml:space="preserve">
<value>Updates</value>
</data>
<data name="UserElevation" xml:space="preserve">
<value>Additional permissions may be required. Would you like to restart the application with administrator privileges?</value>
</data>
<data name="UserElevationTitle" xml:space="preserve">
<value>User Elevation</value>
</data>
<data name="UUID" xml:space="preserve">
<value>UUID</value>
</data>
Expand Down
2 changes: 1 addition & 1 deletion WpfApp/UserElevationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private static bool IsAdministrator()

public static bool Elevate()
{
if (!string.IsNullOrEmpty(Environment.ProcessPath) && MessageBox.Show("Additional permissions may be required. Would you like to restart the application with administrator privileges?", "User Elevation", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
if (!string.IsNullOrEmpty(Environment.ProcessPath) && MessageBox.Show(Properties.Resources.UserElevation, Properties.Resources.UserElevationTitle, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
{
var psi = new ProcessStartInfo(Environment.ProcessPath, Environment.GetCommandLineArgs());
psi.UseShellExecute = true;
Expand Down

0 comments on commit 5dbbd45

Please sign in to comment.