Bitrix Site Manager

IncludeModuleLangFile

IncludeModuleLangFile(
 string abs_path,
 string lang = false
)

The function IncludeModuleLangFile includes a language file into the calling script file. This function is usually used to connect language files to modules.

The included language file must have the same name as the script file from which the function is called. The included language file must reside in the following directory: /bitrix/modules/module ID/lang/language ID/file path relative to the module root

Parameters

ParameterDescription
abs_path Absolute path to file for which the language message file is to be included.
lang The language ID.

Optional. By default, the current language is used (false).

See Also

Example



<?
// Include language file into the current script
IncludeModuleLangFile(__FILE__);
?>