Common properties include name and tag.
Parameters
property Property to retrieve
[default] Default if the property is not set
Returns Value of the property
getBackwardLang( ) : string
Gets the backward-compatible language name. Used for legacy support.
Returns Backward-compatible language name
getDebug( ) : boolean
Checks if the language object is in debug mode.
Returns true if the language object is in debug mode
getDefault( ) : string
Gets the default language.
Returns Default language
&getInstance( lang : string ) : JLanguage
Gets a global instance of JLanguage. If an instance for the specified lang does not exist, it
will be created.
Parameters lang Language to load
Returns A global instance of JLanguage
Appendix
[ 413 ]
getKnownLanguages( basePath : string=JPATH_BASE ) : array
Gets a two-dimensional associative array of all the known languages. The array
contains keys named the same as the languages, which contain associative arrays of the
corresponding language metadata.
Parameters [basePath] Path on which to look for the languages folder
Returns Two-dimensional associative array languages and metadata
getLanguagePath( basePath : string=JPATH_BASE, language :
string=null ) : string
Gets the path to a language.
Pages:
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572