code: def restore_placeholders(msgid, translation):
      
      placehoders = re.findall(r'(\s*)(%(?:\(\w+\))?[sd])(\s*)', msgid)
      return re.sub(
          r'(\s*)(__[\w]+?__)(\s*)',
          lambda matches: '{0}{1}{2}'.format(placehoders[0][0], placehoders[0][1], placehoders.pop(0)[2]),
          translation)
docs: Restore placeholders in the translated message.