phpBB API Documentation
Class

phpbb\language\language_file_loader

class language_file_loader

Language file loader

Methods

__construct(string $phpbb_root_path, string $php_ext)

Constructor

set_extension_manager(manager $extension_manager)

Extension manager setter

load(string $component, string|array $locale, array $lang)

Loads language array for the given component

load_extension(string $extension, string $component, string|array $locale, array $lang)

Loads language array for the given extension component

Details

at line 44
public __construct(string $phpbb_root_path, string $php_ext)

Constructor

Parameters

string $phpbb_root_path Path to phpBB's root
string $php_ext Extension of PHP files

at line 57
public set_extension_manager(manager $extension_manager)

Extension manager setter

Parameters

manager $extension_manager Extension manager

at line 70
public load(string $component, string|array $locale, array $lang)

Loads language array for the given component

Parameters

string $component Name of the language component
string|array $locale ISO code of the language to load, or array of ISO codes if you want to specify additional language fallback steps
array $lang Array reference containing language strings

at line 89
public load_extension(string $extension, string $component, string|array $locale, array $lang)

Loads language array for the given extension component

Parameters

string $extension Name of the extension
string $component Name of the language component
string|array $locale ISO code of the language to load, or array of ISO codes if you want to specify additional language fallback steps
array $lang Array reference containing language strings