Class JLanguageWrapperText
Methods summary
public
string
|
#
_( string $string, mixed $jsSafe = false, boolean $interpretBackSlashes = true, boolean $script = false )
Helper wrapper method for _
Helper wrapper method for _
Parameters
- $string
string - $string The string to translate.
- $jsSafe
mixed - $jsSafe Boolean: Make the result javascript safe.
- $interpretBackSlashes
boolean - $interpretBackSlashes To interpret backslashes (\\=\, \n=carriage return,
\t=tabulation).
- $script
boolean - $script To indicate that the string will be push in the javascript language
store.
Returns
string - The translated string or the key if $script is true.
Since
3.4
See
|
public
string
|
#
alt( string $string, string $alt, mixed $jsSafe = false, boolean $interpretBackSlashes = true, boolean $script = false )
Helper wrapper method for alt
Helper wrapper method for alt
Parameters
- $string
string - $string The string to translate.
- $alt
string - $alt The alternate option for global string.
- $jsSafe
mixed - $jsSafe Boolean: Make the result javascript safe.
- $interpretBackSlashes
boolean - $interpretBackSlashes To interpret backslashes (\\=\, \n=carriage return,
\t=tabulation).
- $script
boolean - $script To indicate that the string will be pushed in the javascript language
store.
Returns
string - The translated string or the key if $script is true.
Since
3.4
See
|
public
string
|
#
plural( string $string, integer $n )
Helper wrapper method for plural
Helper wrapper method for plural
Parameters
- $string
string - $string The format string.
- $n
integer - $n The number of items.
Returns
string - The translated strings or the key if 'script' is true in the array of options.
Since
3.4
See
|
public
string
|
#
sprintf( string $string )
Helper wrapper method for sprintf
Helper wrapper method for sprintf
Parameters
- $string
string - $string The format string.
Returns
string - The translated strings or the key if 'script' is true in the array of options.
Since
3.4
See
|
public
mixed
|
#
printf( format $string )
Helper wrapper method for printf
Helper wrapper method for printf
Parameters
- $string
format - $string The format string.
Returns
mixed
Since
3.4
See
|
public
string
|
#
script( string $string = null, boolean $jsSafe = false, boolean $interpretBackSlashes = true )
Helper wrapper method for script
Helper wrapper method for script
Parameters
- $string
string - $string The JText key.
- $jsSafe
boolean - $jsSafe Ensure the output is JavaScript safe.
- $interpretBackSlashes
boolean - $interpretBackSlashes Interpret \t and \n.
Returns
string
Since
3.4
See
|
Magic methods summary