API17:JLanguage::
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JLanguage::_|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JLanguage::_|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public function _ ( |
| + | $string | ||
| + | $jsSafe=false | ||
| + | $interpretBackSlashes=true | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 38: | Line 39: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' string The translation of the string | |
| − | string The translation of the string | + | * '''Defined''' on line 276 of libraries/joomla/language/language.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/language/language.php | + | |
| − | * | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JLanguage::_ source code''' on [[jplatform:language/language.php#cl-268|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JLanguage/11.1|JLanguage]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Language/11.1|Language]] | ||
| + | * [[JLanguage::_|Other versions of JLanguage::_]] | ||
| + | {{SeeAlso:JLanguage::_}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JLanguage::_|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JLanguage::_|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 59: | Line 59: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JLanguage]][[Category:JLanguage::_]]</noinclude> | <noinclude>[[Category:JLanguage]][[Category:JLanguage::_]]</noinclude> | ||
Revision as of 21:16, 27 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JLanguage::_
Description
Translate function, mimics the php gettext (alias _) function.
Description:JLanguage:: [Edit Descripton]
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
See also
-
JLanguage::_ source code on BitBucket
-
Class JLanguage
-
Subpackage Language
- Other versions of JLanguage::_
SeeAlso:JLanguage:: [Edit See Also]
User contributed notes
<CodeExamplesForm />
