diff --git a/src/App/App.csproj b/src/App/App.csproj index 497fc35e0..f2dde2180 100644 --- a/src/App/App.csproj +++ b/src/App/App.csproj @@ -82,6 +82,11 @@ + + True + True + AppResources.resx + @@ -180,7 +185,12 @@ True - + + + ResXFileCodeGenerator + AppResources.Designer.cs + + diff --git a/src/App/Pages/VaultListPage.cs b/src/App/Pages/VaultListPage.cs index a682ebc58..87f5c587c 100644 --- a/src/App/Pages/VaultListPage.cs +++ b/src/App/Pages/VaultListPage.cs @@ -5,6 +5,7 @@ using System.Threading.Tasks; using Acr.UserDialogs; using Bit.App.Abstractions; using Bit.App.Models.View; +using Bit.App.Resources; using Xamarin.Forms; using XLabs.Ioc; @@ -36,7 +37,7 @@ namespace Bit.App.Pages listView.ItemSelected += SiteSelected; listView.ItemTemplate = new DataTemplate(() => new VaultListViewCell(this)); - Title = "My Vault"; + Title = AppResources.MyVault; Content = listView; NavigationPage.SetBackButtonTitle(this, string.Empty); } diff --git a/src/App/Resources/AppResources.Designer.cs b/src/App/Resources/AppResources.Designer.cs new file mode 100644 index 000000000..5c3ee0f7a --- /dev/null +++ b/src/App/Resources/AppResources.Designer.cs @@ -0,0 +1,190 @@ +//------------------------------------------------------------------------------ +// +// 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 Bit.App.Resources { + using System; + using System.Reflection; + + + /// + /// 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", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class AppResources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal AppResources() { + } + + /// + /// 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("Bit.App.Resources.AppResources", typeof(AppResources).GetTypeInfo().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 Add Site. + /// + internal static string AddSite { + get { + return ResourceManager.GetString("AddSite", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Email. + /// + internal static string Email { + get { + return ResourceManager.GetString("Email", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Folder. + /// + internal static string Folder { + get { + return ResourceManager.GetString("Folder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (none). + /// + internal static string FolderNone { + get { + return ResourceManager.GetString("FolderNone", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Log In. + /// + internal static string LogIn { + get { + return ResourceManager.GetString("LogIn", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Log Out. + /// + internal static string LogOut { + get { + return ResourceManager.GetString("LogOut", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Master Password. + /// + internal static string MasterPassword { + get { + return ResourceManager.GetString("MasterPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to My Vault. + /// + internal static string MyVault { + get { + return ResourceManager.GetString("MyVault", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Notes. + /// + internal static string Notes { + get { + return ResourceManager.GetString("Notes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password. + /// + internal static string Password { + get { + return ResourceManager.GetString("Password", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Settings. + /// + internal static string Settings { + get { + return ResourceManager.GetString("Settings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sync. + /// + internal static string Sync { + get { + return ResourceManager.GetString("Sync", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to URI. + /// + internal static string URI { + get { + return ResourceManager.GetString("URI", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username. + /// + internal static string Username { + get { + return ResourceManager.GetString("Username", resourceCulture); + } + } + } +} diff --git a/src/App/Resources/AppResources.resx b/src/App/Resources/AppResources.resx new file mode 100644 index 000000000..d73f9291b --- /dev/null +++ b/src/App/Resources/AppResources.resx @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Add Site + The title for the add site page. + + + Email + Label for an email address. + + + Folder + Label for a folder. + + + (none) + Sites that have no folder specified go in this special "catch-all" folder. + + + Log In + The login button text. + + + Log Out + The log out button text. + + + Master Password + Label for a master password. + + + My Vault + The title for the vault page. + + + Notes + Label for notes. + + + Password + Label for a password. + + + Settings + The title for the settings page. + + + Sync + The title for the sync page. + + + URI + Label for a uri/url. + + + Username + Label for a username. + + \ No newline at end of file