Difference between revisions of "JLanguage::load"
From Joomla! Documentation
(Updated to r1448:247ba8d88526) |
m (preparing for archive only) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Loads a single language file and appends the results to the existing strings. | Loads a single language file and appends the results to the existing strings. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public function load ( | public function load ( | ||
Line 55: | Line 53: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JLanguage::load source code''' on [[jplatform:language/language.php#cl-614|BitBucket]] | * {{JVer|11.1}} '''JLanguage::load source code''' on [[jplatform:language/language.php#cl-614|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JLanguage | + | * {{JVer|11.1}} Class [[API17:JLanguage|JLanguage]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Language | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Language|Language]] |
− | * [[JLanguage::load|Other versions of JLanguage::load]] | + | * [[API17:JLanguage::load|Other versions of JLanguage::load]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JLanguage::load | category=JLanguage::load | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 73: | Line 69: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:22, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JLanguage::load[edit]
Description[edit]
Loads a single language file and appends the results to the existing strings.
public function load (
$extension= 'joomla'
$basePath=JPATH_BASE
$lang=null
$reload=false
$default=true
)
Parameter | Type | Default | Description |
---|---|---|---|
$extension | string | 'joomla' | The extension for which a language file should be loaded |
$basePath | string | JPATH_BASE | The basepath to use |
$lang | string | null | The language to load, default null for the current language |
$reload | boolean | false | Flag that will force a language to be reloaded if set to true |
$default | boolean | true | Flag that force the default language to be loaded if the current does not exist |
- Returns boolean True, if the file has successfully loaded.
- Defined on line 622 of libraries/joomla/language/language.php
- Since
See also[edit]
- JLanguage::load source code on BitBucket
- Class JLanguage
- Subpackage Language
- Other versions of JLanguage::load
User contributed notes[edit]
Code Examples[edit]