Beispiel #1
0
    def convertfile(storefile):

        input_store = rcfile(storefile)
        convertor = rc2po()
        store = convertor.convert_store(input_store)
        store.rcfile = input_store
        return store
Beispiel #2
0
 def convertfile(storefile, template_store):
     input_store = rcfile()
     input_store.parse(storefile.read())
     convertor = rc2po()
     store = convertor.convert_store(input_store)
     store.rcfile = input_store
     return store
Beispiel #3
0
    def convertfile(storefile):
        from translate.storage.rc import rcfile
        from translate.convert.rc2po import rc2po

        input_store = rcfile(storefile)
        convertor = rc2po()
        store = convertor.convert_store(input_store)
        store.rcfile = input_store
        return store
Beispiel #4
0
 def convertfile(storefile, template_store):
     input_store = rcfile()
     input_store.parse(storefile.read())
     converter = rc2po()
     if template_store:
         store = converter.merge_store(template_store.store.rcfile, input_store)
     else:
         store = converter.convert_store(input_store)
     store.rcfile = input_store
     return store