• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component.php
  • Класс: CBitrixComponent
  • Вызов: CBitrixComponent::includeComponentLang
public function includeComponentLang($relativePath = "", $lang = false)
{
	if (!$this->__bInited)
		return null;

	if ($relativePath == "")
		$relativePath = "component.php";

	$path = $_SERVER["DOCUMENT_ROOT"].$this->__path."/".$relativePath;

	if($lang === false)
	{
		BitrixMainLocalizationLoc::loadMessages($path);
	}
	else
	{
		BitrixMainLocalizationLoc::loadLanguageFile($path, $lang);
	}
}