Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | getInstance ($lang, $debug=false) |
Fonctions membres protégées | |
loadLanguage ($fileName, $extension='unknown') | |
parse ($fileName) | |
getTrace () | |
getCallerInfo () | |
Attributs protégés | |
$debug = false | |
$default = 'en-GB' | |
$orphans = array() | |
$metadata = null | |
$locale = null | |
$lang = null | |
$paths = array() | |
$errorfiles = array() | |
$strings = array() | |
$used = array() | |
$counter = 0 | |
$override = array() | |
$transliterator = null | |
$pluralSuffixesCallback = null | |
$ignoredSearchWordsCallback = null | |
$lowerLimitSearchWordCallback = null | |
$upperLimitSearchWordCallback = null | |
$searchDisplayedCharactersNumberCallback = null | |
Attributs protégés statiques | |
static | $languages = array() |
Languages/translation handler class
Constructor activating the default information of the language.
string | $lang | The language |
boolean | $debug | Indicates if language debugging is enabled. |
Class exists. Try to find -a transliterate method, -a getPluralSuffixes method, -a getIgnoredSearchWords method -a getLowerLimitSearchWord method -a getUpperLimitSearchWord method -a getSearchDisplayCharactersNumber method
Références $class, Language\$debug, Language\$default, Language\$lang, $path, Language\$paths, LanguageHelper\getMetadata(), JPATH_ADMINISTRATOR, JPATH_BASE, JPATH_SITE, Language\load(), Language\loadLanguage(), null, Language\parse(), et Language\setDebug().
Translate function, mimics the php gettext (alias _) function.
The function checks if $jsSafe is true, then if $interpretBackslashes is true.
string | $string | The string to translate |
boolean | $jsSafe | Make the result javascript safe |
boolean | $interpretBackSlashes | Interpret and |
Références $info, $key, $value, elseif, Factory\getApplication(), Language\getCallerInfo(), et Language\getTrace().
debugFile | ( | $filename | ) |
Debugs a language file
string | $filename | Absolute path to the file to debug |
Références Language\$debug, $key, elseif, Language\getDebug(), et null.
Référencé par Language\parse().
get | ( | $property, | |
$default = null |
|||
) |
Get a metadata language property.
string | $property | The name of the property. |
mixed | $default | The default value. |
Références Language\$default.
getCalendar | ( | ) |
Getter for the calendar type
|
protected |
getDebug | ( | ) |
Get the Debug property.
Références Language\$debug.
Référencé par Language\debugFile().
getDefault | ( | ) |
Get the default language code.
Références Language\$default.
getErrorFiles | ( | ) |
Get a list of language files that are in error state.
Références Language\$errorfiles.
getFirstDay | ( | ) |
Get the first day of the week for this language.
getIgnoredSearchWords | ( | ) |
Returns an array of ignored search words
Références null.
getIgnoredSearchWordsCallback | ( | ) |
Getter for ignoredSearchWordsCallback function.
Références Language\$ignoredSearchWordsCallback.
|
static |
Returns a language object.
string | $lang | The language to use. |
boolean | $debug | The debug mode. |
Références Language\$debug, Language\$lang, $languages, class, et Factory\getContainer().
Référencé par OverrideModel\getForm(), CMSApplication\initialiseApp(), PlgSystemLanguageFilter\parseRule(), MessageModel\save(), InstalledController\setDefault(), OutputFilter\stringURLSafe(), et InstalledController\switchAdminLanguage().
getLocale | ( | ) |
Get the language locale based on current language.
Références Language\$locale.
getLowerLimitSearchWord | ( | ) |
Returns a lower limit integer for length of search words
Références null.
getLowerLimitSearchWordCallback | ( | ) |
Getter for lowerLimitSearchWordCallback function
Références Language\$lowerLimitSearchWordCallback.
getName | ( | ) |
Getter for Name.
getOrphans | ( | ) |
Get the list of orphaned strings if being tracked.
Références Language\$orphans.
getPaths | ( | $extension = null | ) |
Get a list of language files that have been loaded.
string | $extension | An optional extension name. |
Références $extension, et Language\$paths.
getPluralSuffixes | ( | $count | ) |
getPluralSuffixesCallback | ( | ) |
Getter for pluralSuffixesCallback function.
Références Language\$pluralSuffixesCallback.
getSearchDisplayedCharactersNumber | ( | ) |
Returns the number of characters displayed in search results.
Références null.
getSearchDisplayedCharactersNumberCallback | ( | ) |
Getter for searchDisplayedCharactersNumberCallback function
Références Language\$searchDisplayedCharactersNumberCallback.
getTag | ( | ) |
Getter for the language tag (as defined in RFC 3066)
|
protected |
getTransliterator | ( | ) |
Getter for transliteration function
Références Language\$transliterator.
getUpperLimitSearchWord | ( | ) |
Returns an upper limit integer for length of search words
Références null.
getUpperLimitSearchWordCallback | ( | ) |
Getter for upperLimitSearchWordCallback function
Références Language\$upperLimitSearchWordCallback.
getUsed | ( | ) |
Get the list of used strings.
Used strings are those strings requested and found either as a string or a constant.
Références Language\$used.
getWeekEnd | ( | ) |
Get the weekends days for this language.
hasKey | ( | $string | ) |
Determines is a key exists.
string | $string | The key to check. |
Références null.
Référencé par Text\alt().
isRtl | ( | ) |
Get the RTL property.
load | ( | $extension = 'joomla' , |
|
$basePath = JPATH_BASE , |
|||
$lang = null , |
|||
$reload = false , |
|||
$default = true |
|||
) |
Loads a single language file and appends the results to the existing strings
string | $extension | The extension for which a language file should be loaded. |
string | $basePath | The basepath to use. |
string | $lang | The language to load, default null for the current language. |
boolean | $reload | Flag that will force a language to be reloaded if set to true. |
boolean | $default | Flag that force the default language to be loaded if the current does not exist. |
Références $basePath, Language\$default, $extension, Language\$lang, $path, $result, LanguageHelper\getLanguagePath(), et Language\loadLanguage().
Référencé par Language\__construct().
|
protected |
Loads a language file.
This method will not note the successful loading of a file - use load() instead.
string | $fileName | The name of the file. |
string | $extension | The name of the extension. |
Références $extension, $result, Language\$strings, counter, et Language\parse().
Référencé par Language\__construct(), et Language\load().
|
protected |
Parses a language file.
string | $fileName | The name of the file. |
Références Language\$strings, Language\debugFile(), et LanguageHelper\parseIniFile().
Référencé par Language\__construct(), et Language\loadLanguage().
setDebug | ( | $debug | ) |
Set the Debug property.
boolean | $debug | The debug setting. |
Références Language\$debug.
Référencé par Language\__construct().
setDefault | ( | $lang | ) |
Set the default language code.
string | $lang | The language code. |
Références Language\$default, et Language\$lang.
setIgnoredSearchWordsCallback | ( | callable | $function | ) |
Setter for the ignoredSearchWordsCallback function
callable | $function | Function name or actual function. |
Références $function, et Language\$ignoredSearchWordsCallback.
setLowerLimitSearchWordCallback | ( | callable | $function | ) |
Setter for the lowerLimitSearchWordCallback function.
callable | $function | Function name or actual function. |
Références $function, et Language\$lowerLimitSearchWordCallback.
setPluralSuffixesCallback | ( | callable | $function | ) |
Set the pluralSuffixes function.
callable | $function | Function name or actual function. |
Références $function, et Language\$pluralSuffixesCallback.
setSearchDisplayedCharactersNumberCallback | ( | callable | $function | ) |
Setter for the searchDisplayedCharactersNumberCallback function.
callable | $function | Function name or the actual function. |
Références $function, et Language\$searchDisplayedCharactersNumberCallback.
setTransliterator | ( | callable | $function | ) |
Set the transliteration function.
callable | $function | Function name or the actual function. |
Références $function, et Language\$transliterator.
setUpperLimitSearchWordCallback | ( | callable | $function | ) |
Setter for the upperLimitSearchWordCallback function
callable | $function | Function name or the actual function. |
Références $function, et Language\$upperLimitSearchWordCallback.
transliterate | ( | $string | ) |
Transliterate function
This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents".
string | $string | The string to transliterate. |
Références null, StringHelper\strtolower(), et Transliterate\utf8_latin_to_ascii().
|
protected |
|
protected |
|
protected |
Référencé par Language\__construct(), Language\get(), Language\getDefault(), Language\load(), et Language\setDefault().
|
protected |
Référencé par Language\getErrorFiles().
|
protected |
Référencé par Language\getIgnoredSearchWordsCallback(), et Language\setIgnoredSearchWordsCallback().
|
protected |
Référencé par Text\_(), Language\__construct(), LanguageFactory\createLanguage(), CachingLanguageFactory\createLanguage(), LanguageHelper\exists(), Language\getInstance(), LanguageHelper\getMetadata(), Language\load(), Text\passSprintf(), Text\plural(), Text\printf(), Language\setDefault(), et Text\sprintf().
|
staticprotected |
Référencé par LanguageHelper\createLanguageList(), et LanguageHelper\parseLanguageFiles().
|
protected |
Référencé par Language\getLocale().
|
protected |
|
protected |
|
protected |
Référencé par Language\getOrphans().
|
protected |
|
protected |
Référencé par Language\__construct(), LanguageHelper\exists(), et Language\getPaths().
|
protected |
Référencé par Language\getPluralSuffixesCallback(), et Language\setPluralSuffixesCallback().
|
protected |
|
protected |
|
protected |
Référencé par Language\getTransliterator(), et Language\setTransliterator().
|
protected |
|
protected |
Référencé par Language\getUsed().