Actions

API16

JInstallerLibrary/loadLanguage

From Joomla! Documentation

< API16:JInstallerLibrary
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.

Contents

Description

Custom loadLanguage method

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

loadLanguage($path)
Parameter Name Default Value Description
$path $path the path where to find language files

Defined in

libraries/joomla/installer/adapters/library.php

Importing

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

Source Body

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);
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />