Function __global->_find_all_langs

Definitions

sources/lang3.php

  • Get an array of all the installed languages that can be found in root/lang/ and root/lang_custom/.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$even_empty_langs boolean No No False N/A N/A Whether to even find empty languages

Returns

  • The installed languages (map, lang=>type)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get an array of all the installed languages that can be found in root/lang/ and root/lang_custom/.
 *
 * @param  boolean $even_empty_langs Whether to even find empty languages
 * @return array The installed languages (map, lang=>type)
 */

function _find_all_langs(bool $even_empty_langs = false) : array