diff --git a/src/CraftSharp/Pages/Connexion.razor b/src/CraftSharp/Pages/Connexion.razor index d7ed316..d5e4e01 100644 --- a/src/CraftSharp/Pages/Connexion.razor +++ b/src/CraftSharp/Pages/Connexion.razor @@ -4,27 +4,27 @@ @inject NavigationManager NavManager
-

Connexion

+

@Localizer["Title"]

diff --git a/src/CraftSharp/Pages/Connexion.razor.cs b/src/CraftSharp/Pages/Connexion.razor.cs index 4552c57..61aba99 100644 --- a/src/CraftSharp/Pages/Connexion.razor.cs +++ b/src/CraftSharp/Pages/Connexion.razor.cs @@ -10,6 +10,7 @@ using Newtonsoft.Json; using System.Text.RegularExpressions; using Newtonsoft.Json.Linq; using System.Text; +using Microsoft.Extensions.Localization; namespace CraftSharp.Pages { @@ -24,7 +25,8 @@ namespace CraftSharp.Pages [Inject] public HttpClient httpClient { get; set; } - + [Inject] + public IStringLocalizer Localizer { get; set; } private string error { get; set; } private ConnexionModel loginRequest { get; set; } = new ConnexionModel(); diff --git a/src/CraftSharp/Pages/Inscription.razor b/src/CraftSharp/Pages/Inscription.razor index 76ca222..009e527 100644 --- a/src/CraftSharp/Pages/Inscription.razor +++ b/src/CraftSharp/Pages/Inscription.razor @@ -3,32 +3,32 @@ @inject NavigationManager NavManager
-

Inscription

+

@Localizer["Title"]

diff --git a/src/CraftSharp/Pages/Inscription.razor.cs b/src/CraftSharp/Pages/Inscription.razor.cs index a3c523f..38f2417 100644 --- a/src/CraftSharp/Pages/Inscription.razor.cs +++ b/src/CraftSharp/Pages/Inscription.razor.cs @@ -7,6 +7,7 @@ using CraftSharp.Models; using CraftSharp.Services; using Newtonsoft.Json; using System.Net.Http; +using Microsoft.Extensions.Localization; namespace CraftSharp.Pages { @@ -17,7 +18,8 @@ namespace CraftSharp.Pages [Inject] public NavigationManager NavigationManager { get; set; } - + [Inject] + public IStringLocalizer Localizer { get; set; } [Inject] public HttpClient httpClient { get; set; } diff --git a/src/CraftSharp/Resources/Pages.Connexion.fr-FR.resx b/src/CraftSharp/Resources/Pages.Connexion.fr-FR.resx new file mode 100644 index 0000000..88fc136 --- /dev/null +++ b/src/CraftSharp/Resources/Pages.Connexion.fr-FR.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Creer un compte + + + Se connecter + + + Entrez votre mot de passe + + + Entrez votre pseudonyme + + + Connexion + + \ No newline at end of file diff --git a/src/CraftSharp/Resources/Pages.Connexion.resx b/src/CraftSharp/Resources/Pages.Connexion.resx new file mode 100644 index 0000000..f119eab --- /dev/null +++ b/src/CraftSharp/Resources/Pages.Connexion.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Create an account + + + To log in + + + Enter your password + + + Enter your nickname + + + Login + + \ No newline at end of file diff --git a/src/CraftSharp/Resources/Pages.Connexion.tr-TR.resx b/src/CraftSharp/Resources/Pages.Connexion.tr-TR.resx new file mode 100644 index 0000000..39a724c --- /dev/null +++ b/src/CraftSharp/Resources/Pages.Connexion.tr-TR.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Bir hesap oluşturun + + + Giriş yapmak + + + Şifrenizi girin + + + Takma adınızı giriniz + + + Giriş + + \ No newline at end of file diff --git a/src/CraftSharp/Resources/Pages.Inscription.fr-FR.resx b/src/CraftSharp/Resources/Pages.Inscription.fr-FR.resx new file mode 100644 index 0000000..1549443 --- /dev/null +++ b/src/CraftSharp/Resources/Pages.Inscription.fr-FR.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Vous avez un compte ? Connectez vous + + + Confirmez votre mot de passe + + + Entrez votre mot de passe + + + Entrez votre pseudonyme + + + S'inscrire + + + Inscription + + \ No newline at end of file diff --git a/src/CraftSharp/Resources/Pages.Inscription.resx b/src/CraftSharp/Resources/Pages.Inscription.resx new file mode 100644 index 0000000..8a2f9e0 --- /dev/null +++ b/src/CraftSharp/Resources/Pages.Inscription.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Have an account? Login + + + Confirm your password + + + Enter your password + + + Enter your nickname + + + register + + + Registration + + \ No newline at end of file diff --git a/src/CraftSharp/Resources/Pages.Inscription.tr-TR.resx b/src/CraftSharp/Resources/Pages.Inscription.tr-TR.resx new file mode 100644 index 0000000..360cf7a --- /dev/null +++ b/src/CraftSharp/Resources/Pages.Inscription.tr-TR.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + hesabınız var mı? Giriş yapmak + + + Parolanızı onaylayın + + + Şifrenizi girin + + + Takma adınızı giriniz + + + Kayıt ol + + + Kayıt + + \ No newline at end of file diff --git a/src/CraftSharp/Shared/InscriptionLayout.razor b/src/CraftSharp/Shared/InscriptionLayout.razor index eb6b7a0..bea9c8c 100644 --- a/src/CraftSharp/Shared/InscriptionLayout.razor +++ b/src/CraftSharp/Shared/InscriptionLayout.razor @@ -3,6 +3,9 @@
+
+ +
diff --git a/src/CraftSharp/Shared/InscriptionLayout.razor.css b/src/CraftSharp/Shared/InscriptionLayout.razor.css index bb16e76..208c1bb 100644 --- a/src/CraftSharp/Shared/InscriptionLayout.razor.css +++ b/src/CraftSharp/Shared/InscriptionLayout.razor.css @@ -12,6 +12,7 @@ body { background-image: url("Images/fond.jpg"); width: 100%; min-height: 100vh; + color: white; } header img { @@ -54,4 +55,4 @@ button { h1 { color: white; font-family: Minecraft; -} \ No newline at end of file +}