Home | History | Annotate | Download | only in Lib

Lines Matching refs:tmsg

291                 tmsg = buf[toff:tend]

298 for item in tmsg.splitlines():
328 tmsg = tmsg.split('\x00')
331 tmsg = [unicode(x, self._charset) for x in tmsg]
332 for i in range(len(tmsg)):
333 catalog[(msgid1, i)] = tmsg[i]
337 tmsg = unicode(tmsg, self._charset)
338 catalog[msg] = tmsg
345 tmsg = self._catalog.get(message, missing)
346 if tmsg is missing:
350 # Encode the Unicode tmsg back to an 8-bit string, if possible
352 return tmsg.encode(self._output_charset)
354 return tmsg.encode(self._charset)
355 return tmsg
359 tmsg = self._catalog.get(message, missing)
360 if tmsg is missing:
365 return tmsg.encode(self._output_charset)
366 return tmsg.encode(locale.getpreferredencoding())
370 tmsg = self._catalog[(msgid1, self.plural(n))]
372 return tmsg.encode(self._output_charset)
374 return tmsg.encode(self._charset)
375 return tmsg
386 tmsg = self._catalog[(msgid1, self.plural(n))]
388 return tmsg.encode(self._output_charset)
389 return tmsg.encode(locale.getpreferredencoding())
400 tmsg = self._catalog.get(message, missing)
401 if tmsg is missing:
405 return tmsg
409 tmsg = self._catalog[(msgid1, self.plural(n))]
414 tmsg = unicode(msgid1)
416 tmsg = unicode(msgid2)
417 return tmsg