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 committed 2014-09-11 17:55:17 +02:00
1 parent 72869e2687
commit 475f6e293e
3 files changed
+10 -6

No files matched your search

+2 -2
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' }
]
},
{
+3 -1
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",
+5 -3
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"),