summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-07-24 13:10:53 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-09-11 17:55:17 +0200
commit475f6e293e3341f72f56bd9b75e6dc6231a10a59 (patch)
tree37cb3f6edd4c4ecadf55cbdb733ae3fd60acba4a
parent72869e26877771900ebee7ea70a616715373a0aa (diff)
downloadfreeipa-475f6e293e3341f72f56bd9b75e6dc6231a10a59.zip
freeipa-475f6e293e3341f72f56bd9b75e6dc6231a10a59.tar.gz
freeipa-475f6e293e3341f72f56bd9b75e6dc6231a10a59.tar.xz
webui: better otp token type label
https://fedorahosted.org/freeipa/ticket/4402 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
-rw-r--r--install/ui/src/freeipa/otptoken.js4
-rw-r--r--install/ui/test/data/ipa_init.json4
-rw-r--r--ipalib/plugins/internal.py8
3 files changed, 10 insertions, 6 deletions
diff --git a/install/ui/src/freeipa/otptoken.js b/install/ui/src/freeipa/otptoken.js
index c9570a6..c32df3c 100644
--- a/install/ui/src/freeipa/otptoken.js
+++ b/install/ui/src/freeipa/otptoken.js
@@ -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' }
]
},
{
diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json
index 7f268de..6d1cfc5 100644
--- a/install/ui/test/data/ipa_init.json
+++ b/install/ui/test/data/ipa_init.json
@@ -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",
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py
index 9311a72..6f110f1 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -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"),