From c4030737ceb06918a370fe30301d38cad31b908f Mon Sep 17 00:00:00 2001 From: Baptiste ARNAUD Date: Tue, 10 Dec 2019 08:36:34 +0100 Subject: [PATCH] A propos gerer sur la langue --- TheGameExtreme/Resx/AppResources.Designer.cs | 26 ++++++++++++++++++++ TheGameExtreme/Resx/AppResources.en-US.resx | 14 +++++++++++ TheGameExtreme/Resx/AppResources.en.resx | 14 +++++++++++ TheGameExtreme/Resx/AppResources.resx | 14 +++++++++++ TheGameExtreme/view/HomePage.xaml.cs | 10 +++----- 5 files changed, 71 insertions(+), 7 deletions(-) diff --git a/TheGameExtreme/Resx/AppResources.Designer.cs b/TheGameExtreme/Resx/AppResources.Designer.cs index c0a9a4a..c5619ec 100644 --- a/TheGameExtreme/Resx/AppResources.Designer.cs +++ b/TheGameExtreme/Resx/AppResources.Designer.cs @@ -60,6 +60,23 @@ namespace TheGameExtreme.Resx { } } + /// + /// Recherche une chaîne localisée semblable à OrderStacks + /// + ///A votre disposition, un mode de jeu en local, jouable jusqu'à 5 joueurs. + /// + ///Un mode multijoueur en cours de développement. + /// + ///Une présentation des règles du jeu. + /// + ///Une possibilité de changer le thème de l'application grâce aux images du soleil et lune.. + /// + public static string StrAbout { + get { + return ResourceManager.GetString("StrAbout", resourceCulture); + } + } + /// /// Recherche une chaîne localisée semblable à Pile ascendante. /// @@ -141,6 +158,15 @@ namespace TheGameExtreme.Resx { } } + /// + /// Recherche une chaîne localisée semblable à A propos. + /// + public static string StrInfo { + get { + return ResourceManager.GetString("StrInfo", resourceCulture); + } + } + /// /// Recherche une chaîne localisée semblable à La partie est terminée. /// diff --git a/TheGameExtreme/Resx/AppResources.en-US.resx b/TheGameExtreme/Resx/AppResources.en-US.resx index 9da829a..6f5f93c 100644 --- a/TheGameExtreme/Resx/AppResources.en-US.resx +++ b/TheGameExtreme/Resx/AppResources.en-US.resx @@ -117,6 +117,17 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + OrderStacks + +At your disposal, a local game mode, playable up to 5 players. + +A multiplayer mode in development. + +A presentation of the rules of the game. + +An opportunity to change the theme of the application through the images of the sun and moon. + Ascending stack @@ -144,6 +155,9 @@ Please enter your username + + About + The game is over! diff --git a/TheGameExtreme/Resx/AppResources.en.resx b/TheGameExtreme/Resx/AppResources.en.resx index 9da829a..6f5f93c 100644 --- a/TheGameExtreme/Resx/AppResources.en.resx +++ b/TheGameExtreme/Resx/AppResources.en.resx @@ -117,6 +117,17 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + OrderStacks + +At your disposal, a local game mode, playable up to 5 players. + +A multiplayer mode in development. + +A presentation of the rules of the game. + +An opportunity to change the theme of the application through the images of the sun and moon. + Ascending stack @@ -144,6 +155,9 @@ Please enter your username + + About + The game is over! diff --git a/TheGameExtreme/Resx/AppResources.resx b/TheGameExtreme/Resx/AppResources.resx index 31a18e4..83fa041 100644 --- a/TheGameExtreme/Resx/AppResources.resx +++ b/TheGameExtreme/Resx/AppResources.resx @@ -117,6 +117,17 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + OrderStacks + +A votre disposition, un mode de jeu en local, jouable jusqu'à 5 joueurs. + +Un mode multijoueur en cours de développement. + +Une présentation des règles du jeu. + +Une possibilité de changer le thème de l'application grâce aux images du soleil et lune. + Pile ascendante @@ -144,6 +155,9 @@ Entrez votre pseudo + + A propos + La partie est terminée diff --git a/TheGameExtreme/view/HomePage.xaml.cs b/TheGameExtreme/view/HomePage.xaml.cs index c9dc2e3..e46f0ab 100644 --- a/TheGameExtreme/view/HomePage.xaml.cs +++ b/TheGameExtreme/view/HomePage.xaml.cs @@ -1,7 +1,7 @@ using System; using Xamarin.Forms; using TheGameExtreme.IO; -using Android.Views; +using TheGameExtreme.Resx; namespace TheGameExtreme.view { @@ -23,9 +23,7 @@ namespace TheGameExtreme.view private async void OpenMultiPlayerMode(object sender, EventArgs args) { await DisplayAlert("Mode en cours de développement", null, "Fermer"); - //await Navigation.PushAsync(new MultiPlayerMode()); - - + //await Navigation.PushAsync(new MultiPlayerMode()); } private async void Rules_Clicked(object sender, EventArgs args) @@ -91,9 +89,7 @@ namespace TheGameExtreme.view private async void ImageButton_Clicked(object sender, EventArgs e) { - await DisplayAlert("A propos", "OrderStacks\n\n A votre disposition, un mode de jeu en local, jouable jusqu'à 5 joueurs.\n\n Un mode multijoueur en cours de développement.\n\n" + - "Une présentation des règles du jeu \n\n" + - "Une possibilité de changer le thème de l'application grâce aux images du soleil et lune.", "Fermer"); + await DisplayAlert(AppResources.StrInfo,AppResources.StrAbout, AppResources.StrCloseWind ); } } }