API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JLanguage::__construct | ( | $ | lang = null | ) |
JLanguage::_ | ( | $ | string, |
$ | jsSafe = false |
||
) |
Translate function, mimics the php gettext (alias _) function
public
string | $string | The string to translate |
boolean | $jsSafe | Make the result javascript safe |
JLanguage::_getCallerInfo | ( | ) |
JLanguage::_load | ( | $ | filename, |
$ | extension = 'unknown' , |
||
$ | overwrite = true |
||
) |
Loads a language file
This method will not note the successful loading of a file - use load() instead
private
string | The name of the file |
string | The name of the extension |
JLanguage::_parseLanguageFiles | ( | $ | dir = null | ) |
Searches for language directories within a certain base dir
public
string | $dir | directory of files |
Références $langs, $languages, $path, _parseXMLLanguageFiles(), JFolder::folders(), et jimport().
Référencé par getKnownLanguages().
JLanguage::_parseXMLLanguageFile | ( | $ | path | ) |
Parse XML file for language information
public
string | $path | Path to the xml files |
Références $metadata, $path, et JFactory::getXMLParser().
Référencé par _parseXMLLanguageFiles(), et getMetadata().
JLanguage::_parseXMLLanguageFiles | ( | $ | dir = null | ) |
Parses XML files for language information
public
string | $dir | Directory of files |
Références $content, $file, $lang, $languages, $metadata, _parseXMLLanguageFile(), JFolder::files(), et jimport().
Référencé par _parseLanguageFiles().
JLanguage::exists | ( | $ | lang, |
$ | basePath = JPATH_BASE |
||
) |
Check if a language exists
This is a simple, quick check for the directory that should contain language files for the given user.
public
string | $lang | Language to check |
string | $basePath | Optional path to check |
Références $lang, $path, JFolder::exists(), et jimport().
Référencé par JSite::initialise(), et JAdministrator::initialise().
JLanguage::get | ( | $ | property, |
$ | default = null |
||
) |
Get a matadata language property
public
string | $property | The name of the property |
mixed | $default | The default value |
Réimplémentée à partir de JObject.
JLanguage::getBackwardLang | ( | ) |
Getter for backward compatible language name
public
JLanguage::getDebug | ( | ) |
Get the Debug property
public
JLanguage::getDefault | ( | ) |
Get the default language code
public
& JLanguage::getInstance | ( | $ | lang | ) |
Returns a reference to a language object
This method must be invoked as:
$browser = &JLanguage::getInstance([$lang);
public
string | $lang | The language to use. |
Références $lang.
Référencé par JFactory::_createLanguage().
JLanguage::getKnownLanguages | ( | $ | basePath = JPATH_BASE | ) |
Returns a list of known languages for an area
public
string | $basePath | The basepath to use |
Références _parseLanguageFiles(), et getLanguagePath().
Référencé par JLanguageHelper::createLanguageList(), et JLanguageHelper::detectLanguage().
JLanguage::getLanguagePath | ( | $ | basePath = JPATH_BASE , |
$ | language = null |
||
) |
Get the path to a language
public
string | $basePath | The basepath to use |
string | $language | The language tag |
Référencé par InstallerModelLanguages::_loadItems(), getKnownLanguages(), JInstallation::getLocaliseAdmin(), getMetadata(), et load().
JLanguage::getLocale | ( | ) |
JLanguage::getMetadata | ( | $ | lang | ) |
Returns a associative array holding the metadata
public
string | The name of the language |
Références $file, $lang, $path, _parseXMLLanguageFile(), et getLanguagePath().
JLanguage::getName | ( | ) |
Getter for Name
public
JLanguage::getOrphans | ( | ) |
Get the list of orphaned strings if being tracked
public
JLanguage::getPaths | ( | $ | extension = null | ) |
Get a list of language files that have been loaded
public
string | $extension | An option extension name |
JLanguage::getPdfFontName | ( | ) |
Getter for PDF Font Name
public
JLanguage::getTag | ( | ) |
Get for the language tag (as defined in RFC 3066)
public
JLanguage::getUsed | ( | ) |
Get the list of used strings
Used strings are those strings requested and found either as a string or a constant
public
JLanguage::getWinCP | ( | ) |
Getter for Windows locale code page
public
JLanguage::hasKey | ( | $ | key | ) |
Determines is a key exists
public
key | $key | The key to check |
JLanguage::isRTL | ( | ) |
Get the RTL property
public
JLanguage::load | ( | $ | extension = 'joomla' , |
$ | basePath = JPATH_BASE , |
||
$ | lang = null , |
||
$ | reload = false |
||
) |
Loads a single language file and appends the results to the existing strings
public
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 |
Références $filename, $lang, $path, et getLanguagePath().
JLanguage::setDebug | ( | $ | debug | ) |
JLanguage::setDefault | ( | $ | lang | ) |
JLanguage::setLanguage | ( | $ | lang | ) |
Set the language attributes to the given language
Once called, the language still needs to be loaded using JLanguage::load()
public
string | $lang | Language code |
Références $lang.
JLanguage::transliterate | ( | $ | string | ) |
Transliterate function
This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents"
public
string | $string | The string to transliterate |
JLanguage::$_debug = false |
JLanguage::$_default = 'en-GB' |
JLanguage::$_lang = null |
JLanguage::$_metadata = null |
JLanguage::$_orphans = array() |
JLanguage::$_paths = array() |
JLanguage::$_strings = null |
JLanguage::$_used = array() |