doxyth/gendoc.py
def analyze_translations_dir(self, path):
        """
        ### &doc_id gendoc:analyze_translations_dir

        Reads through the translations directory to look for language codes.

        This functions looks at all the directories to see if they match a known (and valid) two-letters ISO 639-1
        language code. If they do, it stores the code and returns the list of all valid codes when done.

        Args:
            path: The given path of the translations root directory
        """

        for d in os.listdir(path):
            res = is_valid_lang_dir(d)
            if not res:
                if len(d) == 2:
                    print(f"Warning: ISO 639-1 language code not recognised: {d}. Ignoring this directory.")
                continue

            if self.verbose:
                print(f"Found code {d.upper()}")
            self.available_translations.append(d)

        ### &doc_id gendoc:analyze_translations_dir

        Reads through the translations directory to look for language codes.

        This functions looks at all the directories to see if they match a known (and valid) two-letters ISO 639-1
        language code. If they do, it stores the code and returns the list of all valid codes when done.

        Args:
            path: The given path of the translations root directory
        
&doc_id gendoc:analyze_translations_dir
Reads through the translations directory to look for language codes.

This functions looks at all the directories to see if they match a known (and valid) two-letters ISO 639-1
language code. If they do, it stores the code and returns the list of all valid codes when done.
&doc_id gendoc : analyze_translations_dir Reads through the translations directory to look for language codes . This functions looks at all the directories to see if they match a known ( and valid ) two - letters ISO 639 - 1 language code . If they do it stores the code and returns the list of all valid codes when done .
def analyze_translations_dir(self, path):
        for d in os.listdir(path):
            res = is_valid_lang_dir(d)
            if not res:
                if len(d) == 2:
                    print(f"Warning: ISO 639-1 language code not recognised: {d}. Ignoring this directory.")
                continue
            if self.verbose:
                print(f"Found code {d.upper()}")
            self.available_translations.append(d)
def analyze_translations_dir ( self , path ) : for d in os . listdir ( path ) : res = is_valid_lang_dir ( d ) if not res : if len ( d ) == 2 : print ( f"Warning: ISO 639-1 language code not recognised: {d}. Ignoring this directory." ) continue if self . verbose : print ( f"Found code {d.upper()}" ) self . available_translations . append ( d )
&doc_id gendoc:analyze_translations_dir
Reads through the translations directory to look for language codes.
&doc_id gendoc : analyze_translations_dir Reads through the translations directory to look for language codes .
"""
        ### &doc_id gendoc:analyze_translations_dir

        Reads through the translations directory to look for language codes.

        This functions looks at all the directories to see if they match a known (and valid) two-letters ISO 639-1
        language code. If they do, it stores the code and returns the list of all valid codes when done.

        Args:
            path: The given path of the translations root directory
        """
self
path
The given path of the translations root directory
The given path of the translations root directory