Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
 def __unicode__(self):
     return '%s' % to_unicode(self.msg)
Exemplo n.º 3
0
 def __unicode__(self):
     return '%s' % to_unicode(self.value)
Exemplo n.º 4
0
 def __unicode__(self):
     return to_unicode(self.text())
Exemplo n.º 5
0
 def __unicode__(self):
     return to_unicode(self.__str__())
Exemplo n.º 6
0
 def __unicode__(self):
     return '%s' % to_unicode(self.msg)
Exemplo n.º 7
0
 def __unicode__(self):
     return '%s' % to_unicode(self.value)
Exemplo n.º 8
0
 def __unicode__(self):
     return to_unicode(self.text())
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
 def __unicode__(self):
     return to_unicode(self.__str__())