API15:JLanguage
From Joomla! Documentation
(Difference between revisions)
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JLanguage}}
===Defined in===
l...) |
|||
| Line 17: | Line 17: | ||
|[[API15:JLanguage/getInstance|getInstance]] | |[[API15:JLanguage/getInstance|getInstance]] | ||
|Returns a reference to a language object | |Returns a reference to a language object | ||
| + | |- | ||
| + | |[[API15:JLanguage/_|_]] | ||
| + | |Translate function, mimics the php gettext (alias _) function | ||
|- | |- | ||
|[[API15:JLanguage/transliterate|transliterate]] | |[[API15:JLanguage/transliterate|transliterate]] | ||
| Line 87: | Line 90: | ||
|Set the language attributes to the given language | |Set the language attributes to the given language | ||
|} | |} | ||
| + | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.language.language' );</source> | <source lang="php">jimport( 'joomla.language.language' );</source> | ||
Latest revision as of 12:38, 25 March 2010
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.
[Edit Descripton] Description:JLanguage
Contents |
[edit] Defined in
libraries/joomla/language/language.php
[edit] Methods
| Method name | Description |
|---|---|
| __construct | Constructor activating the default information of the language |
| getInstance | Returns a reference to a language object |
| _ | Translate function, mimics the php gettext (alias _) function |
| transliterate | Transliterate function |
| exists | Check if a language exists |
| load | Loads a single language file and appends the results to the existing strings |
| get | Get a matadata language property |
| getName | Getter for Name |
| getPaths | Get a list of language files that have been loaded |
| getPdfFontName | Getter for PDF Font Name |
| getWinCP | Getter for Windows locale code page |
| getBackwardLang | Getter for backward compatible language name |
| getTag | Get for the language tag (as defined in RFC 3066) |
| getLocale | Get locale property |
| isRTL | Get the RTL property |
| setDebug | Set the Debug property |
| getDebug | Get the Debug property |
| getDefault | Get the default language code |
| setDefault | Set the default language code |
| getOrphans | Get the list of orphaned strings if being tracked |
| getUsed | Get the list of used strings |
| hasKey | Determines is a key exists |
| getMetadata | Returns a associative array holding the metadata |
| getKnownLanguages | Returns a list of known languages for an area |
| getLanguagePath | Get the path to a language |
| setLanguage | Set the language attributes to the given language |
[edit] Importing
jimport( 'joomla.language.language' );
[Edit See Also] SeeAlso:JLanguage
[edit] Examples
<CodeExamplesForm />
