API16

JInstallerPackage/loadLanguage

From Joomla! Documentation

< API16:JInstallerPackage
Revision as of 17:53, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JInstalle...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API16" 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.

[Edit Descripton]

Template:Description:JInstallerPackage/loadLanguage

Syntax[edit]

loadLanguage($path)
Parameter Name Default Value Description
$path

Defined in[edit]

libraries/joomla/installer/adapters/package.php

Importing[edit]

jimport( 'joomla.installer.adapters.package' );

Source Body[edit]

public function loadLanguage($path)
{
        $this->manifest = &$this->parent->getManifest();
        $extension = strtolower(JFilterInput::getInstance()->clean((string)$this->manifest->name, 'cmd'));
        $lang =& JFactory::getLanguage();
        $source = $path;
                $lang->load($extension . '.manage', $source, null, false, false)
        ||      $lang->load($extension, $source, null, false, false)
        ||      $lang->load($extension . '.manage', JPATH_SITE, null, false, false)
        ||      $lang->load($extension , JPATH_SITE, null, false, false)
        ||      $lang->load($extension . '.manage', $source, $lang->getDefault(), false, false)
        ||      $lang->load($extension, $source, $lang->getDefault(), false, false)
        ||      $lang->load($extension . '.manage', JPATH_SITE, $lang->getDefault(), false, false)
        ||      $lang->load($extension , JPATH_SITE, $lang->getDefault(), false, false);
}

[Edit See Also] Template:SeeAlso:JInstallerPackage/loadLanguage

Examples[edit]

<CodeExamplesForm />