JLanguage
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API17" 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.
JLanguage[edit]
Description[edit]
Template:Description:JLanguage [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | _ | Translate function, mimics the php gettext (alias _) function. |
public | __construct | Constructor activating the default information of the language. |
public | get | Get a metadata language property. |
public | getDebug | Get the Debug property. |
public | getDefault | Get the default language code. |
public | getErrorFiles | Get a list of language files that are in error state. |
public | getFirstDay | Get the first day of the week for this language. |
public | getIgnoredSearchWords | getIgnoredSearchWords function |
public | getIgnoredSearchWordsCallback | Getter for ignoredSearchWordsCallback function. |
public | getLocale | Get the language locale based on current language. |
public | getLowerLimitSearchWord | getLowerLimitSearchWord function |
public | getLowerLimitSearchWordCallback | Getter for lowerLimitSearchWordCallback function. |
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 | getPluralSufficesCallback | Getter for pluralSuffixesCallback function. |
public | getPluralSuffixes | pluralSuffixes function |
public | getPluralSuffixesCallback | Getter for pluralSuffixesCallback function. |
public | getSearchDisplayedCharactersNumber | getSearchDisplayedCharactersNumber function |
public | getSearchDisplayedCharactersNumberCallback | Getter for searchDisplayedCharactersNumberCallback function. |
public | getTag | Getter for the language tag (as defined in RFC 3066). |
public | getTransliterator | Getter for transliteration function. |
public | getUpperLimitSearchWord | getUpperLimitSearchWord function |
public | getUpperLimitSearchWordCallback | Getter for upperLimitSearchWordCallback function. |
public | getUsed | Get the list of used strings. |
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 | setIgnoredSearchWordsCallback | Setter for the ignoredSearchWordsCallback function. |
public | setLanguage | Set the language attributes to the given language. |
public | setLowerLimitSearchWordCallback | Setter for the lowerLimitSearchWordCallback function. |
public | setPluralSuffixesCallback | Set the pluralSuffixes function. |
public | setSearchDisplayedCharactersNumberCallback | Setter for the searchDisplayedCharactersNumberCallback function. |
public | setTransliterator | Set the transliteration function. |
public | setUpperLimitSearchWordCallback | Setter for the upperLimitSearchWordCallback function. |
public | transliterate | Transliterate function. |
public static | _parseLanguageFiles | Searches for language directories within a certain base dir. |
public static | _parseXMLLanguageFile | Parse XML file for language information. |
public static | _parseXMLLanguageFiles | Parses XML files for language information. |
public static | exists | Check if a language exists. |
public static | getInstance | Returns a language object. |
public static | getKnownLanguages | Returns a list of known languages for an area. |
public static | getLanguagePath | Get the path to a language. |
public static | getMetadata | Returns a associative array holding the metadata. |
public static | parseLanguageFiles | Searches for language directories within a certain base dir. |
public static | parseXMLLanguageFile | Parse XML file for language information. |
public static | parseXMLLanguageFiles | Parses XML files for language information. |
protected | getCallerInfo | Determine who called or . |
protected | loadLanguage | Loads a language file. |
protected | parse | Parses a language file. |
- Defined in libraries/joomla/language/language.php
- Extends JObject
Importing[edit]
jimport( 'joomla.language.language' );
See also[edit]
- JLanguage source code on BitBucket
- Subpackage Language
- Other versions of JLanguage
Template:SeeAlso:JLanguage [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />