Removes any unnecessary clutter from the path.
Parameters path URI to clean
Returns Cleaned path
JLanguage
extends JObject
Handles languages and translation.
Properties
_debug : boolean Debug mode
_default : string Default language (en-GB)
_lang : string Language name
_metadata : array Language metadata
_orphans : array Strings that failed translation (only maintained during debug)
_paths : array Array of loaded language file paths
_strings : array Associative array of translations
_used : array Array of used strings (only maintained during debug)
Constructors
__construct( lang : string=null ) : JLanguage
Builds a new JLanguage object. Loads the specified language; if lang is not specified the
default language, en-GB, will be loaded.
Parameters [lang] Language to load
Appendix
[ 412 ]
Methods
exists( lang : string, basePath : string=JPATH_BASE ) : boolean
Checks if a language exists in the default language folder. basePath is one level above
where the languages reside.
Parameters lang Language to look for
[basePath] Basis for building language path
Returns true if the language exists
get( property : string, default : mixed=null ) : mixed
Gets metadata about the language.
Pages:
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571