summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-07-24 13:10:53 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-07-28 13:41:48 +0200
commit3a4b874e9bc101d5b7ebf15afacf8bc64c4455d3 (patch)
treed57fe4846826d021ce76a8fad717a760d4855eb7
parent9aed80b81431334856fa884efd25607098c5bc11 (diff)
downloadfreeipa-3a4b874e9bc101d5b7ebf15afacf8bc64c4455d3.tar.gz
freeipa-3a4b874e9bc101d5b7ebf15afacf8bc64c4455d3.tar.xz
freeipa-3a4b874e9bc101d5b7ebf15afacf8bc64c4455d3.zip
webui: better otp token type label
-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 e495c913e..aa1623727 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 8a482134d..bbb19d1bf 100644
--- a/install/ui/test/data/ipa_init.json
+++ b/install/ui/test/data/ipa_init.json
@@ -371,7 +371,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 1a8d9cad3..816c32731 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -513,9 +513,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"),