def nameByLang(self, lang): for langcode in self._expand_languages(lang): if langcode in self.translated_name: return to_unicode(self.translated_name[langcode]) return to_unicode(self.name)
def __unicode__(self): return '%s' % to_unicode(self.msg)
def __unicode__(self): return '%s' % to_unicode(self.value)
def __unicode__(self): return to_unicode(self.text())
def __unicode__(self): return to_unicode(self.__str__())
def descriptionByLang(self, lang): for langcode in self._expand_languages(lang): if langcode in self.translated_description: return to_unicode(self.translated_description[langcode]) return to_unicode(self.description)