(*languages)
return paths
Get the paths given for strings and keyboard from current language.
    Includes inheritance if set, and hardcoded default languages.
Get the paths given for strings and keyboard from current language.
    Includes inheritance if set, and hardcoded default languages.
Get the paths given for strings and keyboard from current language . Includes inheritance if set and hardcoded default languages .
def get_language_paths(*languages):
    """Get the paths given for strings and keyboard from current language.
    Includes inheritance if set, and hardcoded default languages.
    """
    language_paths = [os.path.join(LANGUAGE_BASE_PATH, language + '.ini') for language in languages]
    paths = Config(PATH_DEFAULT, editable_dict=True).load(*language_paths)

    #Edit the links to use the language folder
    paths['NewLinks'] = {}

    paths['NewLinks']['Strings'] = os.path.join(LANGUAGE_BASE_PATH, STRINGS_FOLDER, paths['Links']['Strings']+'.ini')
    if paths['Inherit']['Strings']:
        paths['NewLinks']['StringsBackup'] = os.path.join(LANGUAGE_BASE_PATH, STRINGS_FOLDER, paths['Inherit']['Strings']+'.ini')
    paths['NewLinks']['StringsBase'] = os.path.join(LANGUAGE_BASE_PATH, STRINGS_FOLDER, 'en_GB.ini')

    paths['NewLinks']['KeyboardLayout'] = os.path.join(LANGUAGE_BASE_PATH, KEYBOARD_LAYOUT_FOLDER, paths['Links']['KeyboardLayout']+'.txt')
    paths['NewLinks']['KeyboardLayoutBase'] = os.path.join(LANGUAGE_BASE_PATH, KEYBOARD_LAYOUT_FOLDER, 'en_US.txt')

    paths['NewLinks']['KeyboardKeys'] = os.path.join(LANGUAGE_BASE_PATH, KEYBOARD_KEYS_FOLDER, paths['Links']['KeyboardKeys']+'.ini')
    if paths['Inherit']['KeyboardKeys']:
        paths['NewLinks']['KeyboardKeyBackup'] = os.path.join(LANGUAGE_BASE_PATH, KEYBOARD_KEYS_FOLDER, paths['Inherit']['Strings']+'.ini')
    paths['NewLinks']['KeyboardKeyBase'] = os.path.join(LANGUAGE_BASE_PATH, KEYBOARD_KEYS_FOLDER, 'en_GB.ini')

    return paths
def get_language_paths ( * languages ) : language_paths = [ os . path . join ( LANGUAGE_BASE_PATH , language + '.ini' ) for language in languages ] paths = Config ( PATH_DEFAULT , editable_dict = True ) . load ( * language_paths ) #Edit the links to use the language folder paths [ 'NewLinks' ] = { } paths [ 'NewLinks' ] [ 'Strings' ] = os . path . join ( LANGUAGE_BASE_PATH , STRINGS_FOLDER , paths [ 'Links' ] [ 'Strings' ] + '.ini' ) if paths [ 'Inherit' ] [ 'Strings' ] : paths [ 'NewLinks' ] [ 'StringsBackup' ] = os . path . join ( LANGUAGE_BASE_PATH , STRINGS_FOLDER , paths [ 'Inherit' ] [ 'Strings' ] + '.ini' ) paths [ 'NewLinks' ] [ 'StringsBase' ] = os . path . join ( LANGUAGE_BASE_PATH , STRINGS_FOLDER , 'en_GB.ini' ) paths [ 'NewLinks' ] [ 'KeyboardLayout' ] = os . path . join ( LANGUAGE_BASE_PATH , KEYBOARD_LAYOUT_FOLDER , paths [ 'Links' ] [ 'KeyboardLayout' ] + '.txt' ) paths [ 'NewLinks' ] [ 'KeyboardLayoutBase' ] = os . path . join ( LANGUAGE_BASE_PATH , KEYBOARD_LAYOUT_FOLDER , 'en_US.txt' ) paths [ 'NewLinks' ] [ 'KeyboardKeys' ] = os . path . join ( LANGUAGE_BASE_PATH , KEYBOARD_KEYS_FOLDER , paths [ 'Links' ] [ 'KeyboardKeys' ] + '.ini' ) if paths [ 'Inherit' ] [ 'KeyboardKeys' ] : paths [ 'NewLinks' ] [ 'KeyboardKeyBackup' ] = os . path . join ( LANGUAGE_BASE_PATH , KEYBOARD_KEYS_FOLDER , paths [ 'Inherit' ] [ 'Strings' ] + '.ini' ) paths [ 'NewLinks' ] [ 'KeyboardKeyBase' ] = os . path . join ( LANGUAGE_BASE_PATH , KEYBOARD_KEYS_FOLDER , 'en_GB.ini' ) return paths