JLanguage/1.5
From Joomla! Documentation
< JLanguage(Difference between revisions)
(Layout updates) |
m (→See also: fixing link to API) |
||
| Line 143: | Line 143: | ||
<source lang="php">jimport( 'joomla.language.language' );</source> | <source lang="php">jimport( 'joomla.language.language' );</source> | ||
===See also=== | ===See also=== | ||
| − | * {{JVer|1.5}} '''JLanguage''' on [http://api.joomla.org/Joomla-Framework/Language/JLanguage.html api.joomla.org] | + | * {{JVer|1.5}} '''JLanguage''' on [http://api.joomla.org/1.5/Joomla-Framework/Language/JLanguage.html api.joomla.org] |
* {{JVer|1.5}} '''JLanguage source code''' on [[jframework15:language/language.php|JoomlaCode]] | * {{JVer|1.5}} '''JLanguage source code''' on [[jframework15:language/language.php|JoomlaCode]] | ||
* {{JVer|1.5}} Subpackage [[Subpackage Language/1.5|Language]] | * {{JVer|1.5}} Subpackage [[Subpackage Language/1.5|Language]] | ||
Latest revision as of 16:03, 13 February 2013
[edit]
JLanguage
[edit] Description
Description:JLanguage [Edit Descripton]
[edit] Methods
| Visibility | Method name | Description |
|---|---|---|
| public | _ | Translate function, mimics the php gettext (alias _) function. |
| public | __construct | Constructor activating the default information of the language. |
| public | _getCallerInfo | Determine who called or . |
| public | _load | Loads a language file. |
| public | _parseLanguageFiles | Searches for language directories within a certain base dir. |
| public | _parseXMLLanguageFile | Parse XML file for language information. |
| public | _parseXMLLanguageFiles | Parses XML files for language information. |
| public | exists | Check if a language exists. |
| public | get | Get a matadata language property. |
| public | getBackwardLang | Getter for backward compatible language name. |
| public | getDebug | Get the Debug property. |
| public | getDefault | Get the default language code. |
| public | getInstance | Returns a reference to a language object. |
| public | getKnownLanguages | Returns a list of known languages for an area. |
| public | getLanguagePath | Get the path to a language. |
| public | getLocale | Get locale property. |
| public | getMetadata | Returns a associative array holding the metadata. |
| public | getName | Getter for Name. |
| public | getOrphans | Get the list of orphaned strings if being tracked. |
| public | getPaths | Get a list of language files that have been loaded. |
| public | getPdfFontName | Getter for PDF Font Name. |
| public | getTag | Get for the language tag (as defined in RFC 3066). |
| public | getUsed | Get the list of used strings. |
| public | getWinCP | Getter for Windows locale code page. |
| public | hasKey | Determines is a key exists. |
| public | isRTL | Get the RTL property. |
| public | load | Loads a single language file and appends the results to the existing strings. |
| public | setDebug | Set the Debug property. |
| public | setDefault | Set the default language code. |
| public | setLanguage | Set the language attributes to the given language. |
| public | transliterate | Transliterate function. |
- Defined in libraries/joomla/language/language.php
- Extends JObject
[edit] Importing
jimport( 'joomla.language.language' );
[edit] See also
-
JLanguage on api.joomla.org
-
JLanguage source code on JoomlaCode
-
Subpackage Language
- Other versions of JLanguage
SeeAlso:JLanguage [Edit See Also]
[edit] User contributed notes
<CodeExamplesForm />