Home | History | Annotate | Download | only in Lib

Lines Matching refs:tmsg

293                 tmsg = buf[toff:tend]

300 for item in tmsg.splitlines():
331 tmsg = tmsg.split('\x00')
334 tmsg = [unicode(x, self._charset) for x in tmsg]
335 for i in range(len(tmsg)):
336 catalog[(msgid1, i)] = tmsg[i]
340 tmsg = unicode(tmsg, self._charset)
341 catalog[msg] = tmsg
348 tmsg = self._catalog.get(message, missing)
349 if tmsg is missing:
353 # Encode the Unicode tmsg back to an 8-bit string, if possible
355 return tmsg.encode(self._output_charset)
357 return tmsg.encode(self._charset)
358 return tmsg
362 tmsg = self._catalog.get(message, missing)
363 if tmsg is missing:
368 return tmsg.encode(self._output_charset)
369 return tmsg.encode(locale.getpreferredencoding())
373 tmsg = self._catalog[(msgid1, self.plural(n))]
375 return tmsg.encode(self._output_charset)
377 return tmsg.encode(self._charset)
378 return tmsg
389 tmsg = self._catalog[(msgid1, self.plural(n))]
391 return tmsg.encode(self._output_charset)
392 return tmsg.encode(locale.getpreferredencoding())
403 tmsg = self._catalog.get(message, missing)
404 if tmsg is missing:
408 return tmsg
412 tmsg = self._catalog[(msgid1, self.plural(n))]
417 tmsg = unicode(msgid1)
419 tmsg = unicode(msgid2)
420 return tmsg