Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques statiques | |
static | getInstance ($lang, $debug=false) |
static | exists ($lang, $basePath=JPATH_BASE) |
static | getMetadata ($lang) |
static | getKnownLanguages ($basePath=JPATH_BASE) |
static | getLanguagePath ($basePath=JPATH_BASE, $language=null) |
static | parseLanguageFiles ($dir=null) |
static | parseXMLLanguageFile ($path) |
Fonctions membres protégées | |
loadLanguage ($fileName, $extension='unknown') | |
parse ($fileName) | |
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(), 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 $key, $value, elseif, et Language\getCallerInfo().
debugFile | ( | $filename | ) |
Debugs a language file
string | $filename | Absolute path to the file to debug |
Références Language\$debug, $file, $key, elseif, Language\getDebug(), et null.
Référencé par Language\parse().
|
static |
Checks if a language exists.
This is a simple, quick check for the directory that should contain language files for the given user.
string | $lang | Language to check. |
string | $basePath | Optional path to check. |
Références $basePath, Language\$lang, et LanguageHelper\exists().
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 |
Determine who called Language or JText.
Références $class, $info, et $step.
Référencé par Language\_().
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, et Language\$lang.
Référencé par Factory\createLanguage(), et OutputFilter\stringURLSafe().
|
static |
Returns a list of known languages for an area
string | $basePath | The basepath to use |
Références $basePath, et LanguageHelper\getKnownLanguages().
|
static |
Get the path to a language
string | $basePath | The basepath to use. |
string | $language | The language tag. |
Références $basePath, $language, et LanguageHelper\getLanguagePath().
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.
|
static |
Returns an associative array holding the metadata.
string | $lang | The name of the language. |
Références Language\$lang, et LanguageHelper\getMetadata().
getName | ( | ) |
Getter for Name.
Référencé par JFormFieldText\setup().
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)
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 $key.
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, 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, Language\$strings, et Language\parse().
Référencé par Language\load().
|
protected |
Parses a language file.
string | $fileName | The name of the file. |
Références Language\$strings, et Language\debugFile().
Référencé par Language\__construct(), et Language\loadLanguage().
|
static |
Searches for language directories within a certain base dir.
string | $dir | directory of files. |
Références LanguageHelper\parseLanguageFiles().
|
static |
Parse XML file for language information.
string | $path | Path to the XML files. |
Références $path, et LanguageHelper\parseXMLLanguageFile().
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 | ( | $function | ) |
Setter for the ignoredSearchWordsCallback function
callable | $function | Function name or actual function. |
Références $function, et Language\$ignoredSearchWordsCallback.
setLanguage | ( | $lang | ) |
Set the language attributes to the given language.
Once called, the language still needs to be loaded using Language::load().
string | $lang | Language code. |
Références Language\$lang, et LanguageHelper\getMetadata().
setLowerLimitSearchWordCallback | ( | $function | ) |
Setter for the lowerLimitSearchWordCallback function.
callable | $function | Function name or actual function. |
Références $function, et Language\$lowerLimitSearchWordCallback.
setPluralSuffixesCallback | ( | $function | ) |
Set the pluralSuffixes function.
callable | $function | Function name or actual function. |
Références $function, et Language\$pluralSuffixesCallback.
setSearchDisplayedCharactersNumberCallback | ( | $function | ) |
Setter for the searchDisplayedCharactersNumberCallback function.
callable | $function | Function name or the actual function. |
Références $function, et Language\$searchDisplayedCharactersNumberCallback.
setTransliterator | ( | $function | ) |
Set the transliteration function.
callable | $function | Function name or the actual function. |
Références $function, et Language\$transliterator.
setUpperLimitSearchWordCallback | ( | $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, et Transliterate\utf8_latin_to_ascii().
|
protected |
|
protected |
Référencé par Language\__construct(), Language\debugFile(), Language\getDebug(), Language\getInstance(), et Language\setDebug().
|
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(), LanguageHelper\exists(), Language\exists(), LanguageHelper\getInstalledLanguages(), Language\getInstance(), LanguageHelper\getLanguages(), LanguageHelper\getMetadata(), Language\getMetadata(), Language\load(), Text\passSprintf(), Text\plural(), Text\printf(), Language\setDefault(), Language\setLanguage(), Text\sprintf(), et Porteren\stem().
|
staticprotected |
|
protected |
Référencé par JFormFieldTimezone\getGroups(), et 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 |
Référencé par Language\loadLanguage(), Language\parse(), et LanguageHelper\saveToIniFile().
|
protected |
Référencé par Language\getTransliterator(), et Language\setTransliterator().
|
protected |
|
protected |
Référencé par Language\getUsed().