API17

API17:JLanguage::

From Joomla! Documentation

Revision as of 03:21, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Joomla 11.1 JLanguage::_

Description

Translate function, mimics the php gettext (alias _) function.


public function _ (
        $string
        $jsSafe=false
        $interpretBackSlashes=true
)
Parameter Type Default Description
$string string The string to translate
$jsSafe boolean false Make the result javascript safe
$interpretBackSlashes boolean true $interpretBackslashes Interpret and
  • Returns string The translation of the string
  • Defined on line 276 of libraries/joomla/language/language.php
  • Since Joomla 11.1

See also


User contributed notes

Code Examples