JLanguage::exists
Checks if a language exists.
This is a simple, quick check for the directory that should contain language files for the given user.
Signature
public function exists(string
$lang,
[string
$basePath = JPATH_BASE] )
Parameters
-
$lang
- Language to check.
-
$basePath
- Optional path to check.
Returns
- boolean
- True if the language exists.