Home | History | Annotate | Download | only in Lib

Lines Matching refs:tmsg

366                 tmsg = buf[toff:tend]
373 for item in tmsg.splitlines():
404 tmsg = tmsg.split('\x00')
407 tmsg = [unicode(x, self._charset) for x in tmsg]
408 for i in range(len(tmsg)):
409 catalog[(msgid1, i)] = tmsg[i]
413 tmsg = unicode(tmsg, self._charset)
414 catalog[msg] = tmsg
421 tmsg = self._catalog.get(message, missing)
422 if tmsg is missing:
426 # Encode the Unicode tmsg back to an 8-bit string, if possible
428 return tmsg.encode(self._output_charset)
430 return tmsg.encode(self._charset)
431 return tmsg
435 tmsg = self._catalog.get(message, missing)
436 if tmsg is missing:
441 return tmsg.encode(self._output_charset)
442 return tmsg.encode(locale.getpreferredencoding())
446 tmsg = self._catalog[(msgid1, self.plural(n))]
448 return tmsg.encode(self._output_charset)
450 return tmsg.encode(self._charset)
451 return tmsg
462 tmsg = self._catalog[(msgid1, self.plural(n))]
464 return tmsg.encode(self._output_charset)
465 return tmsg.encode(locale.getpreferredencoding())
476 tmsg = self._catalog.get(message, missing)
477 if tmsg is missing:
481 return tmsg
485 tmsg = self._catalog[(msgid1, self.plural(n))]
490 tmsg = unicode(msgid1)
492 tmsg = unicode(msgid2)
493 return tmsg