From bd9af0bbaf7245a3b91c7df3e68fbf6ec6e8c063 Mon Sep 17 00:00:00 2001 From: Dhiogo Acioli Date: Sun, 27 Aug 2023 13:45:25 -0400 Subject: [PATCH] profile data translation review --- MM.API/MM.API.csproj | 2 +- MM.Shared/Enums/Resources/Zodiac.Designer.cs | 171 ++++++++++++ MM.Shared/Enums/Resources/Zodiac.es.resx | 156 +++++++++++ MM.Shared/Enums/Resources/Zodiac.pt.resx | 156 +++++++++++ MM.Shared/Enums/Resources/Zodiac.resx | 156 +++++++++++ MM.Shared/Enums/Zodiac.cs | 24 +- MM.Shared/MM.Shared.csproj | 27 ++ MM.Shared/Models/Profile/ProfileModel.cs | 18 +- .../ProfileInterestModel.Designer.cs | 135 ++++++++++ .../Resources/ProfileInterestModel.es.resx | 144 ++++++++++ .../Resources/ProfileInterestModel.pt.resx | 144 ++++++++++ .../Resources/ProfileInterestModel.resx | 144 ++++++++++ .../ProfileMyRelationship.Designer.cs | 90 +++++++ .../Resources/ProfileMyRelationship.resx | 129 +++++++++ MM.WEB/Core/AppStateStatic.cs | 9 + MM.WEB/MM.WEB.csproj | 17 +- MM.WEB/Modules/Auth/ProfilePrincipal.razor | 2 +- .../Profile/Component/MyRelationships.razor | 16 +- MM.WEB/Modules/Profile/ProfileData.razor | 44 ++-- .../{CustomDate.razor => Birthdate.razor} | 4 +- MM.WEB/Modules/Shared/Field/FieldText.razor | 9 +- .../Shared/Field/ProfileDataSelect.razor | 6 +- MM.WEB/Modules/Store/Index.razor | 245 ------------------ .../Support/Component/FeedbackComponent.razor | 2 +- .../Modules/Support/Component/NewTicket.razor | 4 +- MM.WEB/Resources/BuildDate.txt | 2 +- MM.WEB/Resources/Buttons.Designer.cs | 189 ++++++++++++++ MM.WEB/Resources/Buttons.es.resx | 162 ++++++++++++ MM.WEB/Resources/Buttons.pt.resx | 162 ++++++++++++ MM.WEB/Resources/Buttons.resx | 162 ++++++++++++ MM.WEB/Resources/CardHeader.Designer.cs | 36 +++ MM.WEB/Resources/CardHeader.es.resx | 12 + MM.WEB/Resources/CardHeader.pt.resx | 12 + MM.WEB/Resources/CardHeader.resx | 12 + .../Resources/GlobalTranslations.Designer.cs | 189 ++++++++------ MM.WEB/Resources/GlobalTranslations.es.resx | 99 +++---- MM.WEB/Resources/GlobalTranslations.pt.resx | 97 +++---- MM.WEB/Resources/GlobalTranslations.resx | 97 +++---- MM.WEB/Resources/SeoTranslations.Designer.cs | 18 -- MM.WEB/Resources/SeoTranslations.es.resx | 3 - MM.WEB/Resources/SeoTranslations.pt.resx | 3 - MM.WEB/Resources/SeoTranslations.resx | 6 - MM.WEB/Shared/HeadLayout.razor | 4 +- 43 files changed, 2561 insertions(+), 558 deletions(-) create mode 100644 MM.Shared/Enums/Resources/Zodiac.Designer.cs create mode 100644 MM.Shared/Enums/Resources/Zodiac.es.resx create mode 100644 MM.Shared/Enums/Resources/Zodiac.pt.resx create mode 100644 MM.Shared/Enums/Resources/Zodiac.resx create mode 100644 MM.Shared/Models/Profile/Resources/ProfileInterestModel.Designer.cs create mode 100644 MM.Shared/Models/Profile/Resources/ProfileInterestModel.es.resx create mode 100644 MM.Shared/Models/Profile/Resources/ProfileInterestModel.pt.resx create mode 100644 MM.Shared/Models/Profile/Resources/ProfileInterestModel.resx create mode 100644 MM.Shared/Models/Profile/Resources/ProfileMyRelationship.Designer.cs create mode 100644 MM.Shared/Models/Profile/Resources/ProfileMyRelationship.resx rename MM.WEB/Modules/Shared/Field/{CustomDate.razor => Birthdate.razor} (95%) delete mode 100644 MM.WEB/Modules/Store/Index.razor create mode 100644 MM.WEB/Resources/Buttons.Designer.cs create mode 100644 MM.WEB/Resources/Buttons.es.resx create mode 100644 MM.WEB/Resources/Buttons.pt.resx create mode 100644 MM.WEB/Resources/Buttons.resx diff --git a/MM.API/MM.API.csproj b/MM.API/MM.API.csproj index cc5287d..39301bd 100644 --- a/MM.API/MM.API.csproj +++ b/MM.API/MM.API.csproj @@ -49,7 +49,7 @@ - + diff --git a/MM.Shared/Enums/Resources/Zodiac.Designer.cs b/MM.Shared/Enums/Resources/Zodiac.Designer.cs new file mode 100644 index 0000000..373c0bc --- /dev/null +++ b/MM.Shared/Enums/Resources/Zodiac.Designer.cs @@ -0,0 +1,171 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MM.Shared.Enums.Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Zodiac { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Zodiac() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MM.Shared.Enums.Resources.Zodiac", typeof(Zodiac).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Aquarius. + /// + internal static string Aquarius { + get { + return ResourceManager.GetString("Aquarius", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Aries. + /// + internal static string Aries { + get { + return ResourceManager.GetString("Aries", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cancer. + /// + internal static string Cancer { + get { + return ResourceManager.GetString("Cancer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Capricorn. + /// + internal static string Capricorn { + get { + return ResourceManager.GetString("Capricorn", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gemini. + /// + internal static string Gemini { + get { + return ResourceManager.GetString("Gemini", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Leo. + /// + internal static string Leo { + get { + return ResourceManager.GetString("Leo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Libra. + /// + internal static string Libra { + get { + return ResourceManager.GetString("Libra", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Pisces. + /// + internal static string Pisces { + get { + return ResourceManager.GetString("Pisces", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sagittarius. + /// + internal static string Sagittarius { + get { + return ResourceManager.GetString("Sagittarius", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Scorpio. + /// + internal static string Scorpio { + get { + return ResourceManager.GetString("Scorpio", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Taurus. + /// + internal static string Taurus { + get { + return ResourceManager.GetString("Taurus", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Virgo. + /// + internal static string Virgo { + get { + return ResourceManager.GetString("Virgo", resourceCulture); + } + } + } +} diff --git a/MM.Shared/Enums/Resources/Zodiac.es.resx b/MM.Shared/Enums/Resources/Zodiac.es.resx new file mode 100644 index 0000000..e9f6181 --- /dev/null +++ b/MM.Shared/Enums/Resources/Zodiac.es.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Acuario + + + Aries + + + Cáncer + + + Capricornio + + + Géminis + + + Leo + + + Libra + + + Piscis + + + Sagitario + + + Escorpio + + + Tauro + + + Virgo + + \ No newline at end of file diff --git a/MM.Shared/Enums/Resources/Zodiac.pt.resx b/MM.Shared/Enums/Resources/Zodiac.pt.resx new file mode 100644 index 0000000..5207327 --- /dev/null +++ b/MM.Shared/Enums/Resources/Zodiac.pt.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Aquário + + + Áries + + + Câncer + + + Capricórnio + + + Gêmeos + + + Leão + + + Libra + + + Peixes + + + Sagitário + + + Escorpião + + + Touro + + + Virgem + + \ No newline at end of file diff --git a/MM.Shared/Enums/Resources/Zodiac.resx b/MM.Shared/Enums/Resources/Zodiac.resx new file mode 100644 index 0000000..f020d1e --- /dev/null +++ b/MM.Shared/Enums/Resources/Zodiac.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Aquarius + + + Aries + + + Cancer + + + Capricorn + + + Gemini + + + Leo + + + Libra + + + Pisces + + + Sagittarius + + + Scorpio + + + Taurus + + + Virgo + + \ No newline at end of file diff --git a/MM.Shared/Enums/Zodiac.cs b/MM.Shared/Enums/Zodiac.cs index e037dbd..03b1c43 100644 --- a/MM.Shared/Enums/Zodiac.cs +++ b/MM.Shared/Enums/Zodiac.cs @@ -2,40 +2,40 @@ { public enum Zodiac { - [Custom(Name = "Aries", Description = "Pontos fortes: corajoso, determinado, confiante, entusiasmado, otimista, honesto, apaixonado; Fraquezas: impaciente, temperamental, mal humorado, impulsivo, agressivo.")] + [Custom(Name = "Aries", ResourceType = typeof(Resources.Zodiac))] Aries = 1, - [Custom(Name = "Touro", Description = "Pontos fortes: confiável, paciente, prático, dedicado, responsável, estável; Fraquezas: teimoso, possessivo, intransigente.")] + [Custom(Name = "Taurus", ResourceType = typeof(Resources.Zodiac))] Taurus = 2, - [Custom(Name = "Gêmeos", Description = "Pontos fortes: gentil, afetuoso, curioso, adaptável, capacidade de aprender rápido e trocar ideias; Fraquezas: nervoso, inconsistente, indeciso.")] + [Custom(Name = "Gemini", ResourceType = typeof(Resources.Zodiac))] Gemini = 3, - [Custom(Name = "Câncer", Description = "Pontos fortes: tenaz, altamente imaginativo, leal, emocional, simpático, persuasivo; Fraquezas: temperamental, pessimista, desconfiado, manipulador, inseguro.")] + [Custom(Name = "Cancer", ResourceType = typeof(Resources.Zodiac))] Cancer = 4, - [Custom(Name = "Leão", Description = "Pontos fortes: criativo, apaixonado, generoso, caloroso, alegre, bem-humorado; Fraquezas: arrogante, teimoso, egocêntrico, preguiçoso, inflexível.")] + [Custom(Name = "Leo", ResourceType = typeof(Resources.Zodiac))] Leo = 5, - [Custom(Name = "Virgem", Description = "Pontos fortes: leal, analítico, gentil, trabalhador, prático; Fraquezas: timidez, preocupação, excessivamente crítica consigo mesmo e com os outros, tudo é trabalho e não se diverte.")] + [Custom(Name = "Virgo", ResourceType = typeof(Resources.Zodiac))] Virgo = 6, - [Custom(Name = "Libra", Description = "Pontos fortes: cooperativo, diplomático, gracioso, justo, social; Fraquezas: indeciso, evita confrontos, carrega rancor, autopiedade.")] + [Custom(Name = "Libra", ResourceType = typeof(Resources.Zodiac))] Libra = 7, - [Custom(Name = "Escorpião", Description = "Pontos fortes: engenhoso, corajoso, apaixonado, teimoso, um verdadeiro amigo; Fraquezas: desconfiado, ciumento, reservado, violento.")] + [Custom(Name = "Scorpio", ResourceType = typeof(Resources.Zodiac))] Scorpio = 8, - [Custom(Name = "Sagitário", Description = "Pontos fortes: generoso, idealista, ótimo senso de humor; Fraquezas: promete mais do que pode entregar, muito impaciente, dirá qualquer coisa, não importa o quão pouco diplomático seja.")] + [Custom(Name = "Sagittarius", ResourceType = typeof(Resources.Zodiac))] Sagittarius = 9, - [Custom(Name = "Capricórnio", Description = "Pontos fortes: responsável, disciplinado, autocontrole, bons gerentes; Fraquezas: sabe-tudo, implacável, condescendente, esperando o pior.")] + [Custom(Name = "Capricorn", ResourceType = typeof(Resources.Zodiac))] Capricorn = 10, - [Custom(Name = "Aquário", Description = "Pontos fortes: Progressivo, original, independente, humanitário; Fraquezas: decorre da expressão emocional, temperamental, intransigente, indiferente.")] + [Custom(Name = "Aquarius", ResourceType = typeof(Resources.Zodiac))] Aquarius = 11, - [Custom(Name = "Peixes", Description = "Pontos fortes: Compassivo, artístico, intuitivo, gentil, sábio, musical; Fraquezas: Medo, excessivamente confiante, triste, desejo de escapar da realidade, pode ser uma vítima ou um mártir.")] + [Custom(Name = "Pisces", ResourceType = typeof(Resources.Zodiac))] Pisces = 12 } } \ No newline at end of file diff --git a/MM.Shared/MM.Shared.csproj b/MM.Shared/MM.Shared.csproj index 02dd0ba..7a445a4 100644 --- a/MM.Shared/MM.Shared.csproj +++ b/MM.Shared/MM.Shared.csproj @@ -23,6 +23,11 @@ + + True + True + Zodiac.resx + True True @@ -33,11 +38,21 @@ True ProfileBioModel.resx + + True + True + ProfileInterestModel.resx + True True ProfileLifestyleModel.resx + + True + True + ProfileMyRelationship.resx + True True @@ -236,6 +251,18 @@ + + ResXFileCodeGenerator + Zodiac.Designer.cs + + + PublicResXFileCodeGenerator + ProfileInterestModel.Designer.cs + + + ResXFileCodeGenerator + ProfileMyRelationship.Designer.cs + PublicResXFileCodeGenerator TicketModel.Designer.cs diff --git a/MM.Shared/Models/Profile/ProfileModel.cs b/MM.Shared/Models/Profile/ProfileModel.cs index 8d96eb0..f714298 100644 --- a/MM.Shared/Models/Profile/ProfileModel.cs +++ b/MM.Shared/Models/Profile/ProfileModel.cs @@ -180,28 +180,28 @@ public ProfileModel() : base(DocumentType.Profile) #region INTEREST - [Custom(Name = "Comidas")] + [Custom(Name = "Food", ResourceType =typeof(Resources.ProfileInterestModel))] public IReadOnlyList Food { get; set; } = Array.Empty(); - [Custom(Name = "Férias")] + [Custom(Name = "Vacation", ResourceType = typeof(Resources.ProfileInterestModel))] public IReadOnlyList Vacation { get; set; } = Array.Empty(); - [Custom(Name = "Esportes")] + [Custom(Name = "Sports", ResourceType = typeof(Resources.ProfileInterestModel))] public IReadOnlyList Sports { get; set; } = Array.Empty(); - [Custom(Name = "Lazer")] + [Custom(Name = "LeisureActivities", ResourceType = typeof(Resources.ProfileInterestModel))] public IReadOnlyList LeisureActivities { get; set; } = Array.Empty(); - [Custom(Name = "Música")] + [Custom(Name = "MusicGenre", ResourceType = typeof(Resources.ProfileInterestModel))] public IReadOnlyList MusicGenre { get; set; } = Array.Empty(); - [Custom(Name = "Filme")] + [Custom(Name = "MovieGenre", ResourceType = typeof(Resources.ProfileInterestModel))] public IReadOnlyList MovieGenre { get; set; } = Array.Empty(); - [Custom(Name = "TV")] + [Custom(Name = "TVGenre", ResourceType = typeof(Resources.ProfileInterestModel))] public IReadOnlyList TVGenre { get; set; } = Array.Empty(); - [Custom(Name = "Leitura")] + [Custom(Name = "ReadingGenre", ResourceType = typeof(Resources.ProfileInterestModel))] public IReadOnlyList ReadingGenre { get; set; } = Array.Empty(); #endregion INTEREST @@ -405,7 +405,7 @@ public class Partner { [Required] [EmailAddress] - [Custom(Name = "Convidar Parceiro", Prompt = "Email do parceiro", Description = "Precisa ser o mesmo e-mail que será usado no cadastro/login")] + [Custom(Name = "Email_Name", Prompt = "Email_Prompt", Description = "Email_Description", ResourceType = typeof(Resources.ProfileMyRelationship))] public string? Email { get; set; } public string? Id { get; set; } diff --git a/MM.Shared/Models/Profile/Resources/ProfileInterestModel.Designer.cs b/MM.Shared/Models/Profile/Resources/ProfileInterestModel.Designer.cs new file mode 100644 index 0000000..4cfdca0 --- /dev/null +++ b/MM.Shared/Models/Profile/Resources/ProfileInterestModel.Designer.cs @@ -0,0 +1,135 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MM.Shared.Models.Profile.Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class ProfileInterestModel { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal ProfileInterestModel() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [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("MM.Shared.Models.Profile.Resources.ProfileInterestModel", typeof(ProfileInterestModel).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Food. + /// + public static string Food { + get { + return ResourceManager.GetString("Food", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Leisure. + /// + public static string LeisureActivities { + get { + return ResourceManager.GetString("LeisureActivities", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Movie. + /// + public static string MovieGenre { + get { + return ResourceManager.GetString("MovieGenre", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Music. + /// + public static string MusicGenre { + get { + return ResourceManager.GetString("MusicGenre", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reading. + /// + public static string ReadingGenre { + get { + return ResourceManager.GetString("ReadingGenre", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sports. + /// + public static string Sports { + get { + return ResourceManager.GetString("Sports", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TV. + /// + public static string TVGenre { + get { + return ResourceManager.GetString("TVGenre", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Vacation. + /// + public static string Vacation { + get { + return ResourceManager.GetString("Vacation", resourceCulture); + } + } + } +} diff --git a/MM.Shared/Models/Profile/Resources/ProfileInterestModel.es.resx b/MM.Shared/Models/Profile/Resources/ProfileInterestModel.es.resx new file mode 100644 index 0000000..1e75529 --- /dev/null +++ b/MM.Shared/Models/Profile/Resources/ProfileInterestModel.es.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 + + + Música + + + Lectura + + + Deportivo + + + Víveres + + + Ocio + + + Película + + + TELEVISIÓN + + + Vacaciones + + \ No newline at end of file diff --git a/MM.Shared/Models/Profile/Resources/ProfileInterestModel.pt.resx b/MM.Shared/Models/Profile/Resources/ProfileInterestModel.pt.resx new file mode 100644 index 0000000..5ae1404 --- /dev/null +++ b/MM.Shared/Models/Profile/Resources/ProfileInterestModel.pt.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 + + + Leitura + + + Esportes + + + Música + + + Comida + + + Lazer + + + Filme + + + TV + + + Férias + + \ No newline at end of file diff --git a/MM.Shared/Models/Profile/Resources/ProfileInterestModel.resx b/MM.Shared/Models/Profile/Resources/ProfileInterestModel.resx new file mode 100644 index 0000000..29e9113 --- /dev/null +++ b/MM.Shared/Models/Profile/Resources/ProfileInterestModel.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 + + + Food + + + Leisure + + + Movie + + + Music + + + Reading + + + Sports + + + TV + + + Vacation + + \ No newline at end of file diff --git a/MM.Shared/Models/Profile/Resources/ProfileMyRelationship.Designer.cs b/MM.Shared/Models/Profile/Resources/ProfileMyRelationship.Designer.cs new file mode 100644 index 0000000..fbbddb8 --- /dev/null +++ b/MM.Shared/Models/Profile/Resources/ProfileMyRelationship.Designer.cs @@ -0,0 +1,90 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MM.Shared.Models.Profile.Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class ProfileMyRelationship { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal ProfileMyRelationship() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MM.Shared.Models.Profile.Resources.ProfileMyRelationship", typeof(ProfileMyRelationship).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to It needs to be the same email that will be used for registration/login. + /// + internal static string Email_Description { + get { + return ResourceManager.GetString("Email_Description", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invite Partner. + /// + internal static string Email_Name { + get { + return ResourceManager.GetString("Email_Name", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Partner email. + /// + internal static string Email_Prompt { + get { + return ResourceManager.GetString("Email_Prompt", resourceCulture); + } + } + } +} diff --git a/MM.Shared/Models/Profile/Resources/ProfileMyRelationship.resx b/MM.Shared/Models/Profile/Resources/ProfileMyRelationship.resx new file mode 100644 index 0000000..c94e778 --- /dev/null +++ b/MM.Shared/Models/Profile/Resources/ProfileMyRelationship.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + It needs to be the same email that will be used for registration/login + + + Invite Partner + + + Partner email + + \ No newline at end of file diff --git a/MM.WEB/Core/AppStateStatic.cs b/MM.WEB/Core/AppStateStatic.cs index 10534e8..40584f5 100644 --- a/MM.WEB/Core/AppStateStatic.cs +++ b/MM.WEB/Core/AppStateStatic.cs @@ -22,5 +22,14 @@ static AppStateStatic() Language = (Language?)language ?? Language.en; } + + public static string GetLanguageCode() + { + switch (Language) + { + case Language.pt: return "pt"; + default: return "en"; + } + } } } \ No newline at end of file diff --git a/MM.WEB/MM.WEB.csproj b/MM.WEB/MM.WEB.csproj index c6f80de..aec3f5b 100644 --- a/MM.WEB/MM.WEB.csproj +++ b/MM.WEB/MM.WEB.csproj @@ -44,10 +44,10 @@ - - - - + + + + @@ -84,6 +84,11 @@ True Resources.resx + + True + True + Buttons.resx + True True @@ -114,6 +119,10 @@ PublicResXFileCodeGenerator Resources.Designer.cs + + PublicResXFileCodeGenerator + Buttons.Designer.cs + PublicResXFileCodeGenerator CardHeader.Designer.cs diff --git a/MM.WEB/Modules/Auth/ProfilePrincipal.razor b/MM.WEB/Modules/Auth/ProfilePrincipal.razor index d18871b..b1b78a5 100644 --- a/MM.WEB/Modules/Auth/ProfilePrincipal.razor +++ b/MM.WEB/Modules/Auth/ProfilePrincipal.razor @@ -59,7 +59,7 @@ diff --git a/MM.WEB/Modules/Profile/Component/MyRelationships.razor b/MM.WEB/Modules/Profile/Component/MyRelationships.razor index 720e615..bba1524 100644 --- a/MM.WEB/Modules/Profile/Component/MyRelationships.razor +++ b/MM.WEB/Modules/Profile/Component/MyRelationships.razor @@ -11,7 +11,7 @@ - Vínculos existentes + @Resources.CardHeader.MyConnections @@ -21,11 +21,11 @@ @item.Email @if (string.IsNullOrEmpty(item.Id)) { - Vínculo Inativo + @Resources.GlobalTranslations.InactiveConnection } else { - Vínculo Ativo + @Resources.GlobalTranslations.ActiveConnection } - - - - - @if (profile.Modality == Modality.RelationshipAnalysis) + + + + + + @if (profile?.Modality == Modality.RelationshipAnalysis) { - + } @@ -61,8 +61,8 @@ CssIcon="@FontAwesomeIcons.Weight" Required="true" ShowHelper="false"> - +