mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 10:28:28 +03:00
appresources for ios yubikey
This commit is contained in:
parent
eefd9bf31c
commit
145dac500c
3 changed files with 27 additions and 2 deletions
|
@ -232,7 +232,8 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
else if(_providerType == TwoFactorProviderType.YubiKey)
|
else if(_providerType == TwoFactorProviderType.YubiKey)
|
||||||
{
|
{
|
||||||
instruction.Text = AppResources.YubiKeyInstruction;
|
instruction.Text = Device.RuntimePlatform == Device.iOS ? AppResources.YubiKeyInstructionIos :
|
||||||
|
AppResources.YubiKeyInstruction;
|
||||||
|
|
||||||
var image = new CachedImage
|
var image = new CachedImage
|
||||||
{
|
{
|
||||||
|
@ -268,7 +269,7 @@ namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
var tryAgainButton = new ExtendedButton
|
var tryAgainButton = new ExtendedButton
|
||||||
{
|
{
|
||||||
Text = "Try Again",
|
Text = AppResources.TryAgain,
|
||||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
||||||
Margin = new Thickness(15, 0, 15, 0),
|
Margin = new Thickness(15, 0, 15, 0),
|
||||||
Command = new Command(() => ListenYubiKey(true, true)),
|
Command = new Command(() => ListenYubiKey(true, true)),
|
||||||
|
|
18
src/App/Resources/AppResources.Designer.cs
generated
18
src/App/Resources/AppResources.Designer.cs
generated
|
@ -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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Two-step Login.
|
/// Looks up a localized string similar to Two-step Login.
|
||||||
/// </summary>
|
/// </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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to YubiKey Security Key.
|
/// Looks up a localized string similar to YubiKey Security Key.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1296,4 +1296,10 @@
|
||||||
<data name="HoldYubikeyNearTop" xml:space="preserve">
|
<data name="HoldYubikeyNearTop" xml:space="preserve">
|
||||||
<value>Hold your Yubikey near the top of the device.</value>
|
<value>Hold your Yubikey near the top of the device.</value>
|
||||||
</data>
|
</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>
|
</root>
|
Loading…
Reference in a new issue