Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | createLanguageList ($actualLanguage, $basePath=JPATH_BASE, $caching=false, $installed=false) |
static | detectLanguage () |
static | parseIniFile ($fileName, $debug=false) |
static | saveToIniFile ($fileName, array $strings) |
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) |
Language helper class
|
static |
Builds a list of the system languages which can be used in a select option
string | $actualLanguage | Client key for the area |
string | $basePath | Base path to use |
boolean | $caching | True if caching is used |
boolean | $installed | Get only installed languages |
Références $basePath, $clientId, $language, Language\$languages, $list, Language\$metadata, JPATH_ADMINISTRATOR, et null.
Référencé par LoginHelper\getLanguageList(), SetupModel\getLanguages(), et LanguageField\getOptions().
|
static |
Tries to detect the language.
Références elseif.
Référencé par CMSHelper\getCurrentLanguage(), ContentHelper\getCurrentLanguage(), SetupModel\getLanguages(), LanguageField\getNativeLanguage(), InstallationApplication\initialiseApp(), et SiteApplication\initialiseApp().
|
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, $path, et Language\$paths.
Référencé par DatabaseModel\initialise(), AdministratorApplication\initialiseApp(), SiteApplication\initialiseApp(), et SetupModel\validateDbConnection().
|
static |
Returns a list of known languages for an area
string | $basePath | The basepath to use |
Références $basePath.
Référencé par AdminLanguage\existing(), LanguageclientField\getOptions(), et PlgSystemLanguagecode\onContentPrepareForm().
|
static |
Get the path to a language
string | $basePath | The basepath to use. |
string | $language | The language tag. |
Références $basePath, et $language.
Référencé par Users\admin_language(), InstallationApplication\getLocaliseAdmin(), InstalledModel\getPath(), LanguagesModel\getPath(), PlgSampledataMultilang\getPath(), Users\language(), et Language\load().
|
static |
Returns an associative array holding the metadata.
string | $lang | The name of the language. |
Références Language\$lang, $result, JPATH_BASE, et null.
Référencé par Language\__construct(), et LanguagesHelper\getList().
|
static |
Parse strings from a language file.
string | $fileName | The language ini file path. |
boolean | $debug | If set to true debug language ini file. |
Références Language\$debug, Language\$strings, et null.
Référencé par OverridesModel\delete(), OverrideModel\getItem(), OverridesModel\getOverrides(), Language\parse(), StringsModel\refresh(), et OverrideModel\save().
|
static |
Searches for language directories within a certain base dir.
string | $dir | directory of files. |
Références $dir, Language\$languages, et Language\$metadata.
|
static |
Parse XML file for language information.
string | $path | Path to the XML files. |
Références Language\$metadata, $path, et $xml.
Référencé par Users\admin_language(), LanguageAdapter\createContentLanguage(), Users\language(), et InstalledController\switchAdminLanguage().
|
static |
Save strings to a language file.
string | $fileName | The language ini file path. |
array | $strings | The array of strings. |
Références $key, Language\$strings, et File\write().
Référencé par OverridesModel\delete(), et OverrideModel\save().