doxyth/verify.py
def verify_full_directory(path):
    """
    ### &doc_id verify:verify_full_directory

    Verifies the full translations directory.

    Args:
        path: The path to the translations directory
    """

    langs = {}
    for directory in [d for d in os.listdir(path) if isdir(join(path, d))]:
        res = is_valid_lang_dir(directory)
        if res:
            langs[directory] = verify_lang_directory(abspath(directory), True)

    for lang in langs:
        print(f"{lang.upper()}: Found {len(langs[lang])} entries.")

    first_key = list(langs.keys())[0]

    if not all(len(langs[first_key]) == len(langs[key]) for key in langs):
        print("Warning: All the languages do not have the same number of entries. Is this normal?")

    ### &doc_id verify:verify_full_directory

    Verifies the full translations directory.

    Args:
        path: The path to the translations directory
    
&doc_id verify:verify_full_directory
Verifies the full translations directory.
&doc_id verify : verify_full_directory Verifies the full translations directory .
def verify_full_directory(path):
    langs = {}
    for directory in [d for d in os.listdir(path) if isdir(join(path, d))]:
        res = is_valid_lang_dir(directory)
        if res:
            langs[directory] = verify_lang_directory(abspath(directory), True)
    for lang in langs:
        print(f"{lang.upper()}: Found {len(langs[lang])} entries.")
    first_key = list(langs.keys())[0]
    if not all(len(langs[first_key]) == len(langs[key]) for key in langs):
        print("Warning: All the languages do not have the same number of entries. Is this normal?")
def verify_full_directory ( path ) : langs = { } for directory in [ d for d in os . listdir ( path ) if isdir ( join ( path , d ) ) ] : res = is_valid_lang_dir ( directory ) if res : langs [ directory ] = verify_lang_directory ( abspath ( directory ) , True ) for lang in langs : print ( f"{lang.upper()}: Found {len(langs[lang])} entries." ) first_key = list ( langs . keys ( ) ) [ 0 ] if not all ( len ( langs [ first_key ] ) == len ( langs [ key ] ) for key in langs ) : print ( "Warning: All the languages do not have the same number of entries. Is this normal?" )
&doc_id verify:verify_full_directory
Verifies the full translations directory.
&doc_id verify : verify_full_directory Verifies the full translations directory .
"""
    ### &doc_id verify:verify_full_directory

    Verifies the full translations directory.

    Args:
        path: The path to the translations directory
    """
path
The path to the translations directory
The path to the translations directory