def METHOD_NAME(
    self, template_store, input_store, blankmsgstr=False, duplicatestyle="msgctxt"
):
    """converts two .rc files to a .po file..."""
    output_store = po.pofile()
    output_header = output_store.init_headers(
        x_accelerator_marker="&",
        x_merge_on="location",
    )
    output_header.addnote(
        f"extracted from {template_store.filename}, {input_store.filename}",
        "developer",
    )
    input_store.makeindex()
    for template_unit in template_store.units:
        origpo = self.convert_unit(template_unit, "developer")
        # try and find a translation of the same name...
        template_unit_name = "".join(template_unit.getlocations())
        if template_unit_name in input_store.locationindex:
            translatedrc = input_store.locationindex[template_unit_name]
            translatedpo = self.convert_unit(translatedrc, "translator")
        else:
            translatedpo = None
        # if we have a valid po unit, get the translation and add it...
        if origpo is not None:
            if translatedpo is not None and not blankmsgstr:
                origpo.target = translatedpo.source
            output_store.addunit(origpo)
        elif translatedpo is not None:
            logging.error(
                "error converting original rc definition %s", template_unit.name
            )
    output_store.removeduplicates(duplicatestyle)
    return output_store