SGL_Translation3_DriverLocated in /SGL/Translation3/Driver.php (line 6)
| Class | Description |
|---|---|
SGL_Translation3_Driver_Array
|
void
loadDictionary
(string $dictionary, [ $langCode = null], [ $aOptions = array()], string $langCodeCharset)
mixed
$defaultLangCode
(line 35)
The framework default langCode
mixed
$defaultLangCodeCharset
(line 20)
The default language code charset
mixed
$dictionary
(line 40)
Current dictionary
mixed
$langCode
(line 30)
The current language code, eg, en
mixed
$langCodeCharset
(line 25)
The current language code charset, eg, en-utf-8
mixed
$_aDictionaries
= array() (line 46)
A hash of translation arrays ie default (module), cms(module), navigation, categories
keyed by langCode, ie zh-TW
mixed
$_aLanguages
= array() (line 15)
Supported languages
mixed
$_aOptions
= array(
static extractCharset (line 350)
static getDefaultCharset (line 360)
static isAllowedLangCodeCharset (line 374)
Is a language allowed ?
static resolveLanguageFromBrowser (line 386)
Resolve language from browser settings.
static resolveLanguageFromDomain (line 416)
Resolve language from domain name.
static _removeMetaData (line 269)
Remove meta data from translation array.
Constructor __construct (line 48)
addTranslations (line 251)
Adds an array of key => value translations.
clearCache (line 457)
getAvailableLanguages (line 300)
getDefaultLangCode (line 110)
getDictionary (line 442)
Fetches a dictionary
getLangCode (line 72)
Returns language langCode i.e. fr for fr-utf-8
getLangCodeCharset (line 100)
init (line 59)
Initializea the Translate Driver, setting available languages, the default language and the current language.
langCodeToLangCodeCharset (line 184)
loadDefaultDictionaries (line 201)
Loading default dictionaries following SGL process.
Additionaly you can add default dictionaries to be loaded in the Translation module's conf.ini file
loadDictionary (line 153)
Fetches a dictionary and loads it into _aDictionaries array + $GLOBALS['_SGL']['TRANSLATION'] for BC.
save (line 455)
Saves current dictionary translations
setAvailableLanguages (line 466)
setDefaultLangCode (line 93)
setDictionary (line 137)
Sets current dictionary.
setLangCode (line 119)
Sets current language code.
setOptions (line 86)
toString (line 464)
Returns the driver name
translate (line 293)
Enter description here...
update (line 448)
Updates a string in dictionary given its key
_resolveLangCode (line 312)
Resolve current language.
Documentation generated on Tue, 23 Feb 2010 18:14:29 +0000 by phpDocumentor 1.4.3