Parameters [dir] Path to look for languages in
Returns Two-dimensional associative array of languages and metadata
_parseXMLLanguageFile( path : string ) : array
Parses an individual XML language information file and returns an array of metadata.
Parameters path Path to XML language information file
Returns Associative array of metadata
_parseXMLLanguageFiles( dir : string=null ) : array
Gets a two-dimensional associative array of all the XML language information files in
dir. The array contains keys named the same as the languages, which contain arrays of
metadata. Normally there will only be one XML language information file per language.
Parameters [dir] Path to XML language information files
Returns Two-dimensional associative array of languages and metadata
JLanguageHelper
static
Performs language functions that are not specific to an individual language
Methods
static detectLanguage( ) : string
Attempts to detect the language using the HTTP headers. If unable to detect, assumes en-GB.
Returns Detected language
static createLanguageList( actualLanguage : string, basePath :
string=JPATH_BASE, caching : boolean=true ) : array
Gets an array of language options.
Pages:
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577