Function __global->get_translated_text

Definitions

sources/lang.php

  • Try to return the human-readable version of the content language string ID, passed in as $entry.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$entry mixed required parameter N/A N/A The ID (if multi-lang-content on), or the string itself (if multi-lang-content is off)
$db ?object Null N/A N/A The database connector to use (null: standard site connector)
$lang ?LANGUAGE_NAME Null N/A N/A The language (null: uses the current language)
$force boolean False N/A N/A Whether to force it to the specified language

Return

  • The human-readable version (null: could not look up when $force was on)
  • Type: ?string
  • Set: N/A
  • Range: N/A