Function __global->require_all_lang

Definitions

sources/lang.php

  • Include all the language files for use in the script.NOTE: This may reduce performance, so you should only use it if you really have to.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$lang ?LANGUAGE_NAME No No Null N/A N/A The language to include files from (null: use current user's language)
$only_if_for_lang boolean No No False N/A N/A Only load it up if it is specifically defined for our language

Preview

Code (PHP)

/**
 * Include all the language files for use in the script.NOTE: This may reduce performance, so you should only use it if you really have to.
 *
 * @param  ?LANGUAGE_NAME $lang The language to include files from (null: use current user's language)
 * @param  boolean $only_if_for_lang Only load it up if it is specifically defined for our language
 */

function require_all_lang(?string $lang = null, bool $only_if_for_lang = false)