doxyth/gendoc.py
def delegate_create_lang_selection_file(self):
        """
        ### &doc_id gendoc:delegate_lang_file

        Creates the language selection file_name from the corresponding templates
        """

        if self.verbose:
            print("Creating language selection file_name")

        try:
            from .version import version as doxythversion
        except (ImportError, ModuleNotFoundError):
            doxythversion = '<unknown version>'

        replacements = {
            "doxythversion": doxythversion,
            **self.retrieve_replacements_from_doxyfile()
        }

        # Grab the templates
        template, snippet = get_templates()

        # Change the templates to custom templates if they exist
        if exists(abspath(self.translations_dir) + os.sep + '_TEMPLATE.html'):
            with open(abspath(self.translations_dir) + os.sep + '_TEMPLATE.html', encoding='utf-8') as t:
                template = t.read()

        if exists(abspath(self.translations_dir) + os.sep + '_SNIPPET.html'):
            with open(abspath(self.translations_dir) + os.sep + '_SNIPPET.html') as s:
                snippet = s.read()

        # Build the HTML file_name
        HTMLBuilder(self.docs_output_path, self.available_translations, replacements, template, snippet)

        ### &doc_id gendoc:delegate_lang_file

        Creates the language selection file_name from the corresponding templates
        
&doc_id gendoc:delegate_lang_file
Creates the language selection file_name from the corresponding templates
&doc_id gendoc : delegate_lang_file Creates the language selection file_name from the corresponding templates
def delegate_create_lang_selection_file(self):
        if self.verbose:
            print("Creating language selection file_name")
        try:
            from .version import version as doxythversion
        except (ImportError, ModuleNotFoundError):
            doxythversion = '<unknown version>'
        replacements = {
            "doxythversion": doxythversion,
            **self.retrieve_replacements_from_doxyfile()
        }
        template, snippet = get_templates()
        if exists(abspath(self.translations_dir) + os.sep + '_TEMPLATE.html'):
            with open(abspath(self.translations_dir) + os.sep + '_TEMPLATE.html', encoding='utf-8') as t:
                template = t.read()
        if exists(abspath(self.translations_dir) + os.sep + '_SNIPPET.html'):
            with open(abspath(self.translations_dir) + os.sep + '_SNIPPET.html') as s:
                snippet = s.read()
        HTMLBuilder(self.docs_output_path, self.available_translations, replacements, template, snippet)
def delegate_create_lang_selection_file ( self ) : if self . verbose : print ( "Creating language selection file_name" ) try : from . version import version as doxythversion except ( ImportError , ModuleNotFoundError ) : doxythversion = '<unknown version>' replacements = { "doxythversion" : doxythversion , ** self . retrieve_replacements_from_doxyfile ( ) } template , snippet = get_templates ( ) if exists ( abspath ( self . translations_dir ) + os . sep + '_TEMPLATE.html' ) : with open ( abspath ( self . translations_dir ) + os . sep + '_TEMPLATE.html' , encoding = 'utf-8' ) as t : template = t . read ( ) if exists ( abspath ( self . translations_dir ) + os . sep + '_SNIPPET.html' ) : with open ( abspath ( self . translations_dir ) + os . sep + '_SNIPPET.html' ) as s : snippet = s . read ( ) HTMLBuilder ( self . docs_output_path , self . available_translations , replacements , template , snippet )
&doc_id gendoc:delegate_lang_file
Creates the language selection file_name from the corresponding templates
&doc_id gendoc : delegate_lang_file Creates the language selection file_name from the corresponding templates
"""
        ### &doc_id gendoc:delegate_lang_file

        Creates the language selection file_name from the corresponding templates
        """ # Grab the templates # Change the templates to custom templates if they exist # Build the HTML file_name
self