If a language fails to load, normally because the file does
not exist, or is inaccessible, the equivalent default language will be loaded. Note that the
new translations are merged with previously loaded translations.
Parameters [extension] Name of the extension
[basePath] Basis for building language path
Returns true on success
Appendix
[ 415 ]
setDebug( debug : boolean ) : boolean
Turns debug on or off.
Parameters debug Turn debug on or off
Returns Previous debug value
setDefault( lang : string ) : string
Sets the default language.
Parameters lang Default language
Returns Previous default language value
setLanguage( lang : string ) : string
Sets the language and loads the metadata. This does not load the translations; use the
load() method to load the translations.
Parameters lang Language identifier
Returns Returns previous language
_( string : string, jsSafe : boolean=false ) : string
Attempts to translate string. jsSafe, if true, will add slashes to the translated string.
If a translation cannot be found the original string will be returned.
Pages:
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575