name should be unicode
This commit is contained in:
parent
f497e99002
commit
5c104a2eda
|
@ -408,6 +408,8 @@ class BaseOption(Base):
|
||||||
name = self.impl_getdoc()
|
name = self.impl_getdoc()
|
||||||
if name is None or name == '':
|
if name is None or name == '':
|
||||||
name = self.impl_getname()
|
name = self.impl_getname()
|
||||||
|
if isinstance(name, unicode):
|
||||||
|
name = name.encode('utf8')
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -248,11 +248,11 @@ msgstr "valeur invalide \"{}\", cette valeur est déjà dans \"{}\""
|
||||||
|
|
||||||
#: tiramisu/option/baseoption.py:590 tiramisu/option/baseoption.py:628
|
#: tiramisu/option/baseoption.py:590 tiramisu/option/baseoption.py:628
|
||||||
msgid "\"{0}\" is an invalid {1} for \"{2}\", {3}"
|
msgid "\"{0}\" is an invalid {1} for \"{2}\", {3}"
|
||||||
msgstr "\"{0}\" est une option de type {1} invalide pour \"{2}\", {3}"
|
msgstr "\"{0}\" est une valeur invalide pour l'option \"{2}\" de type {1}, {3}"
|
||||||
|
|
||||||
#: tiramisu/option/baseoption.py:594 tiramisu/option/baseoption.py:632
|
#: tiramisu/option/baseoption.py:594 tiramisu/option/baseoption.py:632
|
||||||
msgid "\"{0}\" is an invalid {1} for \"{2}\""
|
msgid "\"{0}\" is an invalid {1} for \"{2}\""
|
||||||
msgstr "\"{0}\" est une option de type {1} invalide pour \"{2}\""
|
msgstr "\"{0}\" est une valeur invalide pour l'option \"{2}\" de type {1}"
|
||||||
|
|
||||||
#: tiramisu/option/baseoption.py:606
|
#: tiramisu/option/baseoption.py:606
|
||||||
msgid "do_validation for {0}: error in value"
|
msgid "do_validation for {0}: error in value"
|
||||||
|
|
Loading…
Reference in New Issue