1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

appresources for ios yubikey

This commit is contained in:
Kyle Spearrin 2018-06-04 21:08:55 -04:00
parent eefd9bf31c
commit 145dac500c
3 changed files with 27 additions and 2 deletions

View File

@ -232,7 +232,8 @@ namespace Bit.App.Pages
}
else if(_providerType == TwoFactorProviderType.YubiKey)
{
instruction.Text = AppResources.YubiKeyInstruction;
instruction.Text = Device.RuntimePlatform == Device.iOS ? AppResources.YubiKeyInstructionIos :
AppResources.YubiKeyInstruction;
var image = new CachedImage
{
@ -268,7 +269,7 @@ namespace Bit.App.Pages
{
var tryAgainButton = new ExtendedButton
{
Text = "Try Again",
Text = AppResources.TryAgain,
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
Margin = new Thickness(15, 0, 15, 0),
Command = new Command(() => ListenYubiKey(true, true)),

View File

@ -2922,6 +2922,15 @@ namespace Bit.App.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Try Again.
/// </summary>
public static string TryAgain {
get {
return ResourceManager.GetString("TryAgain", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Two-step Login.
/// </summary>
@ -3336,6 +3345,15 @@ namespace Bit.App.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to To continue, hold your YubiKey NEO against the back of the device..
/// </summary>
public static string YubiKeyInstructionIos {
get {
return ResourceManager.GetString("YubiKeyInstructionIos", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to YubiKey Security Key.
/// </summary>

View File

@ -1296,4 +1296,10 @@
<data name="HoldYubikeyNearTop" xml:space="preserve">
<value>Hold your Yubikey near the top of the device.</value>
</data>
<data name="TryAgain" xml:space="preserve">
<value>Try Again</value>
</data>
<data name="YubiKeyInstructionIos" xml:space="preserve">
<value>To continue, hold your YubiKey NEO against the back of the device.</value>
</data>
</root>