Свойство | Type | Description | |
---|---|---|---|
$extension_manager | Extension manager | ||
$php_ext | Extension of PHP files | ||
$phpbb_root_path | Path to phpBB's root |
Méthode | Description | |
---|---|---|
__construct ( string $phpbb_root_path, string $php_ext ) | Constructor | |
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 | |
set_extension_manager ( phpbb\extension\manager $extension_manager ) | Extension manager setter |
Méthode | Description | |
---|---|---|
get_language_file_path ( string $path, string $filename, $locales ) : string | This function implements language fallback logic | |
load_file ( string $path, string $component, array $locale, array &$lang ) | Prepares language file loading | |
load_language_file ( string $path, array &$lang ) | Loads language file |
public __construct ( string $phpbb_root_path, string $php_ext ) | ||
$phpbb_root_path | string | Path to phpBB's root |
$php_ext | string | Extension of PHP files |
public load ( string $component, string | array $locale, array &$lang ) | ||
$component | string | Name of the language component |
$locale | string | array | ISO code of the language to load, or array of ISO codes if you want to specify additional language fallback steps |
$lang | array | Array reference containing language strings |
public load_extension ( string $extension, string $component, string | array $locale, array &$lang ) | ||
$extension | string | Name of the extension |
$component | string | Name of the language component |
$locale | string | array | ISO code of the language to load, or array of ISO codes if you want to specify additional language fallback steps |
$lang | array | Array reference containing language strings |
protected load_language_file ( string $path, array &$lang ) | ||
$path | string | Path to language file to load |
$lang | array | Reference of the array of language strings |
public set_extension_manager ( phpbb\extension\manager $extension_manager ) | ||
$extension_manager | phpbb\extension\manager | Extension manager |