Bitrix Site Manager

Language files of component

Components include the language files using the function IncludeTemplateLangFile. This function searches for language files using the following algorithm:

  1. Firstly, language file is looked up in the folder

    /bitrix/templates/current site template ID/lang/language ID/path to component

  2. If the file cannot be found, it is looked up in the folder

    /bitrix/templates/.default/lang/language ID/path to component

  3. Then, if the file still cannot be found, the following folder is searched:

    /bitrix/modules/module ID/install/templates/lang/language ID/path to component
The "path to component" description can be found in this topic.

See also