示例#1
0
 def resx2po(self, resxsource, template=None, filter=None):
     """ Helper that converts resx source to po source without requiring files """
     inputfile = wStringIO.StringIO(resxsource)
     inputresx = resx.RESXFile(inputfile)
     convertor = resx2po.resx2po()
     outputpo = convertor.convert_store(inputresx)
     return outputpo
示例#2
0
 def resx2po(self, resxsource, template=None, filter=None):
     """ Helper that converts resx source to po source without requiring files """
     inputfile = wStringIO.StringIO(resxsource)
     inputresx = resx.RESXFile(inputfile)
     convertor = resx2po.resx2po()
     outputpo = convertor.convert_store(inputresx)
     return outputpo
示例#3
0
 def resx2po(resxsource, template=None, filter=None):
     """Helper that converts resx source to po source without requiring files"""
     inputfile = BytesIO(resxsource.encode())
     inputresx = resx.RESXFile(inputfile)
     convertor = resx2po.resx2po()
     return convertor.convert_store(inputresx)