From 67fbd55ae9862e162daad4a7dda63a82506bc711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Bispo?= Date: Mon, 20 Jun 2022 12:39:53 +0100 Subject: [PATCH] PS-70 added text labels to resource files --- src/App/Pages/Vault/ViewPageViewModel.cs | 4 ++-- src/App/Resources/AppResources.Designer.cs | 14 ++++++++++++-- src/App/Resources/AppResources.resx | 6 ++++++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/App/Pages/Vault/ViewPageViewModel.cs b/src/App/Pages/Vault/ViewPageViewModel.cs index 829776af5..4e02f850f 100644 --- a/src/App/Pages/Vault/ViewPageViewModel.cs +++ b/src/App/Pages/Vault/ViewPageViewModel.cs @@ -211,12 +211,12 @@ namespace Bit.App.Pages var fs = new FormattedString(); fs.Spans.Add(new Span { - Text = "Upgrade to premium ", + Text = AppResources.UpgradeToPremium, TextColor = ThemeManager.GetResourceColor("PrimaryColor") }); fs.Spans.Add(new Span { - Text = "to view verification codes", + Text = AppResources.ToViewVerificationCodes, TextColor = ThemeManager.GetResourceColor("MutedColor") }); return fs; diff --git a/src/App/Resources/AppResources.Designer.cs b/src/App/Resources/AppResources.Designer.cs index aa9dc4771..4ce17e622 100644 --- a/src/App/Resources/AppResources.Designer.cs +++ b/src/App/Resources/AppResources.Designer.cs @@ -1,7 +1,6 @@ //------------------------------------------------------------------------------ // // 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. @@ -10,7 +9,6 @@ namespace Bit.App.Resources { using System; - using System.Reflection; [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] @@ -4030,5 +4028,17 @@ namespace Bit.App.Resources { return ResourceManager.GetString("DisplayItemsContainingTOTP", resourceCulture); } } + + public static string UpgradeToPremium { + get { + return ResourceManager.GetString("UpgradeToPremium", resourceCulture); + } + } + + public static string ToViewVerificationCodes { + get { + return ResourceManager.GetString("ToViewVerificationCodes", resourceCulture); + } + } } } diff --git a/src/App/Resources/AppResources.resx b/src/App/Resources/AppResources.resx index 859c26b91..75a400dd3 100644 --- a/src/App/Resources/AppResources.resx +++ b/src/App/Resources/AppResources.resx @@ -2251,4 +2251,10 @@ Display items containing TOTP + + Upgrade to premium + + + to view verification codes +