loadLanguage

Description

This function loads the language file associated with the specified template.

Syntax

mixed loadLanguage (string $template_name[, string $lang[, bool $fatal]])



Parameter $template_name

Expected type: String
Description: Which template to load the language file for (index, Wireless, etc.)



Parameter $lang

Expected type: String
Description: Which language to use (English, Spanish, etc.)



Parameter $fatal

Expected type: Boolean
Description: Whether or not to log an error message if the language file couldn't be loaded. Default is true



Return value

Expected type: Mixed
Description:

Possible types
Allowed values Description
Boolean false if the language file couldn't be loaded
String $lang, the language that was actually loaded (same as second parameter)


Advertisement: