def METHOD_NAME(self, translations):
    """
    update msgctxt for all POEntry objects replacing ids
    :param translations: dict of lang code mapped to it list of POEntries
    """
    for po_entries in translations.values():
        for po_entry in po_entries:
            # make sure the format is as expected, if not skip
            context_entries = po_entry.msgctxt.split(":")
            if len(context_entries) == 3:
                resource_id = context_entries[-1]
                # replace if we have been asked to replace it
                if resource_id in self.id_mapping:
                    po_entry.msgctxt = po_entry.msgctxt.replace(resource_id, self.id_mapping[resource_id])