diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2013-04-11 16:18:12 +0000 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2013-04-11 16:18:12 +0000 |
| commit | 5a8f66d8349b00812a4a8b55317688a7832a10a3 (patch) | |
| tree | 1bdc68eac5c81c5bfafe287a659266ee8ad33d69 /ishtar_common/wizards.py | |
| parent | 176b0ebae664c68a2c25edf2823aad589953b2bc (diff) | |
| parent | 135a2370cfef4f3faea88cc6a1ab3f1eb797013d (diff) | |
| download | Ishtar-5a8f66d8349b00812a4a8b55317688a7832a10a3.tar.bz2 Ishtar-5a8f66d8349b00812a4a8b55317688a7832a10a3.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") |
