Home | History | Annotate | Download | only in Lib

Lines Matching refs:unicode

222         return unicode(message)

228 return unicode(msgid1)
230 return unicode(msgid2)
244 def install(self, unicode=False, names=None):
246 __builtin__.__dict__['_'] = unicode and self.ugettext or self.gettext
251 __builtin__.__dict__['ngettext'] = (unicode and self.ungettext
320 # Unicode using the character encoding specified in the charset
327 # if the Unicode conversion fails.
333 msgid1 = unicode(msgid1, self._charset)
334 tmsg = [unicode(x, self._charset) for x in tmsg]
339 msg = unicode(msg, self._charset)
340 tmsg = unicode(tmsg, self._charset)
353 # Encode the Unicode tmsg back to an 8-bit string, if possible
407 return unicode(message)
417 tmsg = unicode(msgid1)
419 tmsg = unicode(msgid2)
495 def install(domain, localedir=None, unicode=False, codeset=None, names=None):
497 t.install(unicode, names)