diff --git a/MainWindow.xaml b/MainWindow.xaml
index 91f2f92..ff13b48 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -3,9 +3,9 @@
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:local="clr-namespace:ZC.TimeCalculator"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="Calculateur d'heures"
+ xmlns:translate="clr-namespace:ZC.TimeCalculator.Resources.Translation"
+ Title="{x:Static translate:AppTranslation.TIME_CALCULATOR}"
Width="425"
Height="176"
Icon="/Resources/Images/clock.png"
@@ -20,7 +20,7 @@
VerticalAlignment="Top"
HorizontalContentAlignment="Right"
VerticalContentAlignment="Center"
- Content="Requis" />
+ Content="{x:Static translate:AppTranslation.REQUIRED}" />
+ Content="{x:Static translate:AppTranslation.START}" />
+ Content="{x:Static translate:AppTranslation.START_BREAK}" />
+ Content="{x:Static translate:AppTranslation.END_BREAK}" />
+ Content="{x:Static translate:AppTranslation.SUPP_END}" />
+// Ce code a été généré par un outil.
+// Version du runtime :4.0.30319.42000
+//
+// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
+// le code est régénéré.
+//
+//------------------------------------------------------------------------------
+
+namespace ZC.TimeCalculator.Resources.Translation {
+ using System;
+
+
+ ///
+ /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
+ ///
+ // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
+ // à l'aide d'un outil, tel que ResGen ou Visual Studio.
+ // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
+ // avec l'option /str ou régénérez votre projet VS.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ public class AppTranslation {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal AppTranslation() {
+ }
+
+ ///
+ /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ZC.TimeCalculator.Resources.Translation.AppTranslation", typeof(AppTranslation).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Remplace la propriété CurrentUICulture du thread actuel pour toutes
+ /// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Recherche une chaîne localisée semblable à End.
+ ///
+ public static string END {
+ get {
+ return ResourceManager.GetString("END", resourceCulture);
+ }
+ }
+
+ ///
+ /// Recherche une chaîne localisée semblable à Break end.
+ ///
+ public static string END_BREAK {
+ get {
+ return ResourceManager.GetString("END_BREAK", resourceCulture);
+ }
+ }
+
+ ///
+ /// Recherche une chaîne localisée semblable à Required.
+ ///
+ public static string REQUIRED {
+ get {
+ return ResourceManager.GetString("REQUIRED", resourceCulture);
+ }
+ }
+
+ ///
+ /// Recherche une chaîne localisée semblable à Start.
+ ///
+ public static string START {
+ get {
+ return ResourceManager.GetString("START", resourceCulture);
+ }
+ }
+
+ ///
+ /// Recherche une chaîne localisée semblable à Break start.
+ ///
+ public static string START_BREAK {
+ get {
+ return ResourceManager.GetString("START_BREAK", resourceCulture);
+ }
+ }
+
+ ///
+ /// Recherche une chaîne localisée semblable à End (supp.).
+ ///
+ public static string SUPP_END {
+ get {
+ return ResourceManager.GetString("SUPP_END", resourceCulture);
+ }
+ }
+
+ ///
+ /// Recherche une chaîne localisée semblable à Supp. H..
+ ///
+ public static string SUPP_H {
+ get {
+ return ResourceManager.GetString("SUPP_H", resourceCulture);
+ }
+ }
+
+ ///
+ /// Recherche une chaîne localisée semblable à Time calculator.
+ ///
+ public static string TIME_CALCULATOR {
+ get {
+ return ResourceManager.GetString("TIME_CALCULATOR", resourceCulture);
+ }
+ }
+ }
+}
diff --git a/Resources/Translation/AppTranslation.fr-CH.resx b/Resources/Translation/AppTranslation.fr-CH.resx
new file mode 100644
index 0000000..b7b20de
--- /dev/null
+++ b/Resources/Translation/AppTranslation.fr-CH.resx
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Fin
+
+
+ Fin Pause
+
+
+ Requis
+
+
+ Arrivée
+
+
+ Début Pause
+
+
+ Fin (supp.)
+
+
+ H. supp.
+
+
+ Calculateur d'heures
+
+
\ No newline at end of file
diff --git a/Resources/Translation/AppTranslation.resx b/Resources/Translation/AppTranslation.resx
new file mode 100644
index 0000000..94d455c
--- /dev/null
+++ b/Resources/Translation/AppTranslation.resx
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ End
+
+
+ Break end
+
+
+ Required
+
+
+ Start
+
+
+ Break start
+
+
+ End (supp.)
+
+
+ Supp. H.
+
+
+ Time calculator
+
+
\ No newline at end of file
diff --git a/TimeCalculator.csproj b/TimeCalculator.csproj
index 367cc6c..cc300b8 100644
--- a/TimeCalculator.csproj
+++ b/TimeCalculator.csproj
@@ -63,6 +63,11 @@
+
+ True
+ True
+ AppTranslation.resx
+
MSBuild:Compile
@@ -95,6 +100,11 @@
ResXFileCodeGenerator
Resources.Designer.cs
+
+
+ PublicResXFileCodeGenerator
+ AppTranslation.Designer.cs
+
SettingsSingleFileGenerator
Settings.Designer.cs