def METHOD_NAME(
    input_file, output_file, template_file, pot=False, duplicatestyle="msgctxt"
):
    store = factory.getobject(input_file)
    location_index = build_location_index(store)
    header_index = {"Author": store.parseheader()["Last-Translator"]}
    output = write_symbian(template_file, header_index, location_index)
    for line in output:
        output_file.write(line)
    return 1