def METHOD_NAME(self, page, content):
    """Deactivate all pages not listed for translation.
    This allows for include pages to only be translated when included which improves performance
    when building a single file such as the case for presentations.
    """
    if page.local not in self.get('translate'):
        page['active'] = False