Exemplo n.º 1
0
 def ts2po(self, tssource):
     converter = ts2po.ts2po()
     tsfile = wStringIO.StringIO(tssource)
     outputpo = converter.convertfile(tsfile)
     print("The generated po:")
     print(bytes(outputpo))
     return outputpo
Exemplo n.º 2
0
 def ts2po(self, tssource):
     converter = ts2po.ts2po()
     tsfile = BytesIO(tssource.encode())
     outputpo = converter.convertfile(tsfile)
     print("The generated po:")
     print(bytes(outputpo))
     return outputpo