API17

Difference between revisions of "JLanguage::load"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 12: Line 12:
 
===Synopsis===
 
===Synopsis===
 
<source lang="php">
 
<source lang="php">
public JLanguage->load ($extension= 'joomla', $basePath=JPATH_BASE, $lang=null, $reload=false, $default=true)
+
public JLanguage::load ($extension= 'joomla', $basePath=JPATH_BASE, $lang=null, $reload=false, $default=true)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 50: Line 50:
 
boolean True, if the file has successfully loaded.
 
boolean True, if the file has successfully loaded.
 
===Defined in===
 
===Defined in===
libraries/joomla/language/language.php
+
libraries/joomla/language/language.php (line 609)
 +
* see source code in [[jplatform:language/language.php#cl-609|BitBucket]]
 
===Referenced by===
 
===Referenced by===
 
===See also===
 
===See also===

Revision as of 20:53, 23 April 2011

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.

Joomla 11.1 JLanguage::load[edit]

Description[edit]

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

Template:Description:JLanguage::load [Edit Descripton]

Since[edit]

Joomla 11.1

Synopsis[edit]

public JLanguage::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[edit]

boolean True, if the file has successfully loaded.

Defined in[edit]

libraries/joomla/language/language.php (line 609)

Referenced by[edit]

See also[edit]

[Edit See Also]

Template:SeeAlso:JLanguage::load

Examples[edit]

<CodeExamplesForm />