Difference between revisions of "JLanguage"
From Joomla! Documentation
m (clean up) |
|||
Line 1: | Line 1: | ||
− | + | {{subst:Description:JLanguage}} | |
− | |||
− | |||
− | {{Description:JLanguage}} | ||
===Defined in=== | ===Defined in=== | ||
Line 88: | Line 85: | ||
<source lang="php">jimport( 'joomla.language.language' );</source> | <source lang="php">jimport( 'joomla.language.language' );</source> | ||
− | + | ||
− | + | {{subst:SeeAlso:JLanguage}} | |
− | |||
− | {{SeeAlso:JLanguage}} | ||
===Examples=== | ===Examples=== |
Revision as of 09:12, 24 March 2017
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.
{{subst:Description:JLanguage}}
Defined in[edit]
libraries/joomla/language/language.php
Methods[edit]
Method name | Description |
---|---|
__construct | Constructor activating the default information of the language |
_ | Translate function, mimics the php gettext (alias _) function |
transliterate | Transliterate function |
getTransliterator | Getter for transliteration function |
setTransliterator | Set the transliteration function |
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 |
getTag | Get for the language tag (as defined in RFC 3066) |
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 |
setLanguage | Set the language attributes to the given language |
getInstance | Returns a language object |
exists | Check if a language 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 |
Importing[edit]
jimport( 'joomla.language.language' );
{{subst:SeeAlso:JLanguage}}
Examples[edit]
<CodeExamplesForm />