JLanguage
Languages/translation handler class
Located in /joomla/i18n/language.php (line 86)
JObject (Subpackage Base) JLanguage (Subpackage I18N)
Debug language, If true, highlights if string isn't found
The default language
The default language is used when a language file in the requested language does not exist.
Identifying string of the language
The language to load
Array holding the language metadata
An array of orphaned text
Transaltions
Constructor activating the default information of the language
- $lang
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Check if a language exists
This is a simple, quick check for the directory that should contain language files for the given user.
- string $lang: Language to check
Get a matadata language property
- string $property: The name of the property
- mixed $default: The default value
- JObject::get()
- Returns a property of the object or the default value if the property is not set.
Returns a reference to a language object
This method must be invoked as:
$browser = &JLanguage::getInstance([$lang);
- string $lang: The language to use.
Returns a list of known languages for an area
- string $basePath: The basepath to use
Get the path to a language
- string $basePath: The basepath to use
- string $language: The language tag
Returns a associative array holding the metadata
- string $lang: The name of the language
Getter for Name
- string $value: An optional value
Loads a single language file and appends the results to the existing strings
- string $prefix: The prefix
- string $basePath: The basepath to use
Set the language attributes to the given language
Once called, the language still needs to be loaded using JLanguage::load()
- string $lang: Language code
Translator function, mimics the php gettext (alias _) function
- string $string: The string to translate
- boolean $jsSafe: Make the result javascript safe
Parses INI type of files for language information
- string $dir: Directory of files
Searches for language directories within a certain base dir
- string $dir: directory of files
Parse XML file for language information
- string $path: Path to the xml files
Parses XML files for language information
- string $dir: Directory of files
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getPublicProperties()
JObject::set()
JObject::toString()
Documentation generated on Mon, 05 Mar 2007 21:09:14 +0000 by phpDocumentor 1.3.1