diff options
author | root <root@viserion.(none)> | 2013-04-11 16:18:12 +0000 |
---|---|---|
committer | root <root@viserion.(none)> | 2013-04-11 16:18:12 +0000 |
commit | ee49f194c1659df01e0d26d634e13b13614b1683 (patch) | |
tree | 1bdc68eac5c81c5bfafe287a659266ee8ad33d69 /ishtar_common/wizards.py | |
parent | 6235aa64139d746b4d5d8c5afdaecef8a40196e3 (diff) | |
parent | b8df763695252dd9c6ba7e98ca7b23991f77aea1 (diff) | |
download | Ishtar-ee49f194c1659df01e0d26d634e13b13614b1683.tar.bz2 Ishtar-ee49f194c1659df01e0d26d634e13b13614b1683.zip |
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r-- | ishtar_common/wizards.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index e421c25dd..699c3a858 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -33,6 +33,7 @@ class Wizard(NamedUrlWizardView): label = '' modification = None # True when the wizard modify an item storage_name = 'django.contrib.formtools.wizard.storage.session.SessionStorage' + translated_keys = ['title'] @staticmethod def _check_right(step, condition=True): @@ -203,6 +204,8 @@ class Wizard(NamedUrlWizardView): value = cleaned_data[key] if not value and value != False: continue + if key in self.translated_keys: + value = _(value) if type(value) == bool: if value == True: value = _(u"Yes") |