mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 10:34:07 +00:00
i18n resource strings for lock and settings pages
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Bit.App.Pages
|
||||
|
||||
var fingerprintButton = new ExtendedButton
|
||||
{
|
||||
Text = "Use Fingerprint to Unlock",
|
||||
Text = AppResources.UseFingerprintToUnlock,
|
||||
Command = new Command(async () => await CheckFingerprintAsync()),
|
||||
VerticalOptions = LayoutOptions.EndAndExpand,
|
||||
Style = (Style)Application.Current.Resources["btn-primary"]
|
||||
@@ -64,7 +64,7 @@ namespace Bit.App.Pages
|
||||
Children = { fingerprintIcon, fingerprintButton, logoutButton }
|
||||
};
|
||||
|
||||
Title = "Verify Fingerprint";
|
||||
Title = AppResources.VerifyFingerprint;
|
||||
Content = stackLayout;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace Bit.App.Pages
|
||||
|
||||
public async Task LogoutAsync()
|
||||
{
|
||||
if(!await _userDialogs.ConfirmAsync("Are you sure you want to log out?", null, AppResources.Yes, AppResources.Cancel))
|
||||
if(!await _userDialogs.ConfirmAsync(AppResources.LogoutConfirmation, null, AppResources.Yes, AppResources.Cancel))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -95,7 +95,7 @@ namespace Bit.App.Pages
|
||||
|
||||
public async Task CheckFingerprintAsync()
|
||||
{
|
||||
var result = await _fingerprint.AuthenticateAsync("Use your fingerprint to verify.");
|
||||
var result = await _fingerprint.AuthenticateAsync(AppResources.FingerprintDirection);
|
||||
if(result.Authenticated)
|
||||
{
|
||||
_settings.AddOrUpdateValue(Constants.Locked, false);
|
||||
|
||||
@@ -85,13 +85,13 @@ namespace Bit.App.Pages
|
||||
table.EstimatedRowHeight = 70;
|
||||
}
|
||||
|
||||
var loginToolbarItem = new ToolbarItem("Submit", null, async () =>
|
||||
var loginToolbarItem = new ToolbarItem(AppResources.Submit, null, async () =>
|
||||
{
|
||||
await CheckPasswordAsync();
|
||||
}, ToolbarItemOrder.Default, 0);
|
||||
|
||||
ToolbarItems.Add(loginToolbarItem);
|
||||
Title = "Verify Master Password";
|
||||
Title = AppResources.VerifyMasterPassword;
|
||||
Content = scrollView;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
// TODO: keep track of invalid attempts and logout?
|
||||
|
||||
_userDialogs.Alert("Invalid Master Password. Try again.");
|
||||
_userDialogs.Alert(AppResources.InvalidMasterPassword);
|
||||
PasswordCell.Entry.Text = string.Empty;
|
||||
PasswordCell.Entry.Focus();
|
||||
}
|
||||
@@ -137,7 +137,7 @@ namespace Bit.App.Pages
|
||||
|
||||
private async Task LogoutAsync()
|
||||
{
|
||||
if(!await _userDialogs.ConfirmAsync("Are you sure you want to log out?", null, AppResources.Yes, AppResources.Cancel))
|
||||
if(!await _userDialogs.ConfirmAsync(AppResources.LogoutConfirmation, null, AppResources.Yes, AppResources.Cancel))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
var instructionLabel = new Label
|
||||
{
|
||||
Text = "Enter your PIN code.",
|
||||
Text = AppResources.EnterPIN,
|
||||
LineBreakMode = LineBreakMode.WordWrap,
|
||||
FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)),
|
||||
HorizontalTextAlignment = TextAlignment.Center,
|
||||
@@ -68,7 +68,7 @@ namespace Bit.App.Pages
|
||||
PinControl.Label.GestureRecognizers.Add(tgr);
|
||||
instructionLabel.GestureRecognizers.Add(tgr);
|
||||
|
||||
Title = "Verify PIN";
|
||||
Title = AppResources.VerifyPIN;
|
||||
Content = stackLayout;
|
||||
Content.GestureRecognizers.Add(tgr);
|
||||
BindingContext = Model;
|
||||
@@ -102,7 +102,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
// TODO: keep track of invalid attempts and logout?
|
||||
|
||||
_userDialogs.Alert("Invalid PIN. Try again.");
|
||||
_userDialogs.Alert(AppResources.InvalidPIN);
|
||||
Model.PIN = string.Empty;
|
||||
PinControl.Entry.Focus();
|
||||
}
|
||||
@@ -110,7 +110,7 @@ namespace Bit.App.Pages
|
||||
|
||||
private async Task LogoutAsync()
|
||||
{
|
||||
if(!await _userDialogs.ConfirmAsync("Are you sure you want to log out?", null, AppResources.Yes, AppResources.Cancel))
|
||||
if(!await _userDialogs.ConfirmAsync(AppResources.LogoutConfirmation, null, AppResources.Yes, AppResources.Cancel))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user