summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-11 18:05:05 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-11 18:05:05 +0200
commitf632080d3484fee51b506ba23b9cde1eddee7489 (patch)
tree3898e42a7a454b74a16446d5f642e9a18581e17b /ishtar_common/wizards.py
parente2aa1b4933081add885e241a2e33f49fcc1c1d81 (diff)
downloadIshtar-f632080d3484fee51b506ba23b9cde1eddee7489.tar.bz2
Ishtar-f632080d3484fee51b506ba23b9cde1eddee7489.zip
Fix translation of title (closes #593)
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py3
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")