webui: better otp token type label

https://fedorahosted.org/freeipa/ticket/4402

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-07-24 13:10:53 +02:00
parent 72869e2687
commit 475f6e293e
3 changed files with 10 additions and 6 deletions

View File

@ -227,8 +227,8 @@ return {
name: 'type',
default_value: 'totp',
options: [
{ label: 'TOTP', value: 'totp' },
{ label: 'HOTP', value: 'hotp' }
{ label: '@i18n:objects.otptoken.type_totp', value: 'totp' },
{ label: '@i18n:objects.otptoken.type_hotp', value: 'hotp' }
]
},
{

View File

@ -378,7 +378,9 @@
"otptoken": {
"details": "OTP Token Settings",
"disable": "Disable token",
"enable": "Enable token"
"enable": "Enable token",
"type_hotp": "Counter-based (HOTP)",
"type_totp": "Time-based (TOTP)"
},
"permission": {
"add_custom_attr": "Add custom attribute",

View File

@ -520,9 +520,11 @@ class i18n_messages(Command):
"users": _("Users"),
},
"otptoken": {
"details": "OTP Token Settings",
"disable": "Disable token",
"enable": "Enable token",
"details": _("OTP Token Settings"),
"disable": _("Disable token"),
"enable": _("Enable token"),
"type_hotp": _("Counter-based (HOTP)"),
"type_totp": _("Time-based (TOTP)"),
},
"permission": {
"add_custom_attr": _("Add custom attribute"),