Function __global->_get_lang_file_map

Definitions

sources/lang_compile.php

  • Extend a language map from strings in a given language file.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$b PATH No No required parameter N/A N/A The path to the language file
&$entries array Yes No required parameter N/A N/A The currently loaded language map
$section string No No strings N/A N/A The section to get
$given_whole_file boolean No No False N/A N/A Whether $b is in fact not a path, but the actual file contents
$apply_filter boolean No No True N/A N/A Apply the language pack filter
$lang ?LANGUAGE_NAME No No Null N/A N/A Language (null: current language)

Preview

Code (PHP)

/**
 * Extend a language map from strings in a given language file.
 *
 * @param  PATH $b The path to the language file
 * @param  array $entries The currently loaded language map
 * @param  string $section The section to get
 * @param  boolean $given_whole_file Whether $b is in fact not a path, but the actual file contents
 * @param  boolean $apply_filter Apply the language pack filter
 * @param  ?LANGUAGE_NAME $lang Language (null: current language)
 */

function _get_lang_file_map(string $b, array &$entries, string $section = 'strings', bool $given_whole_file = false, bool $apply_filter = true, ?string $lang = null)