Home | History | Annotate | Download | only in python2.7

Lines Matching refs:unicode

220         return unicode(message)
226 return unicode(msgid1)
228 return unicode(msgid2)
242 def install(self, unicode=False, names=None):
244 __builtin__.__dict__['_'] = unicode and self.ugettext or self.gettext
249 __builtin__.__dict__['ngettext'] = (unicode and self.ungettext
317 # Unicode using the character encoding specified in the charset
324 # if the Unicode conversion fails.
330 msgid1 = unicode(msgid1, self._charset)
331 tmsg = [unicode(x, self._charset) for x in tmsg]
336 msg = unicode(msg, self._charset)
337 tmsg = unicode(tmsg, self._charset)
350 # Encode the Unicode tmsg back to an 8-bit string, if possible
404 return unicode(message)
414 tmsg = unicode(msgid1)
416 tmsg = unicode(msgid2)
492 def install(domain, localedir=None, unicode=False, codeset=None, names=None):
494 t.install(unicode, names)