Actions

API17

Difference between revisions of "JLanguage::load"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JLanguage::load|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JLanguage::load|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JLanguage::load ($extension= 'joomla', $basePath=JPATH_BASE, $lang=null, $reload=false, $default=true)
+
public function load (
 +
        $extension= 'joomla'
 +
        $basePath=JPATH_BASE
 +
        $lang=null
 +
        $reload=false
 +
        $default=true
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 44: Line 47:
 
|boolean
 
|boolean
 
|true
 
|true
|Flag that force the default language to be loaded if the current does not exist  
+
|Flag that force the default language to be loaded if the current does not exist
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' boolean True, if the file has successfully loaded.
boolean True, if the file has successfully loaded.
+
* '''Defined''' on line 622 of libraries/joomla/language/language.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/language/language.php (line 609)
+
* see source code in [[jplatform:language/language.php#cl-609|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JLanguage::load source code''' on [[jplatform:language/language.php#cl-614|BitBucket]]
 +
* {{JVer|11.1}} Class [[JLanguage/11.1|JLanguage]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Language/11.1|Language]]
 +
* [[JLanguage::load|Other versions of JLanguage::load]]
 +
{{SeeAlso:JLanguage::load}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JLanguage::load|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JLanguage::load|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JLanguage/11.1|JLanguage]]
+
===User contributed notes===
* [[JLanguage::load|Other versions of this method]]
+
{{SeeAlso:JLanguage::load}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 68: Line 70:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JLanguage]][[Category:JLanguage::load]]</noinclude>
 
<noinclude>[[Category:JLanguage]][[Category:JLanguage::load]]</noinclude>

Revision as of 21:18, 27 April 2011

Replacement filing cabinet.png
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.

Joomla 11.1 JLanguage::load

Description

Loads a single language file and appends the results to the existing strings.

Description:JLanguage::load [Edit Descripton]

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 Joomla 11.1

See also

SeeAlso:JLanguage::load [Edit See Also]

User contributed notes

<CodeExamplesForm />