Помогите, пожалуйста: не могу подключить языковые файлы в своем шаблоне в header.php. Языковые файлы лежат тут:
/templates/my_template/lang/en/template.php
/templates/my_template/lang/ru/template.php
В header.php пишу:
<? IncludeTemplateLangFile(__FILE__);?>
<?=GetMessage('MY_LANG_MESSAGE');?>
Код в /templates/my_template/lang/ru/template.php:
<?
$MESS["MY_LANG_MESSAGE"] = "Мое языковое сообщение";
?>
Код в /templates/my_template/lang/en/template.php:
<?
$MESS["MY_LANG_MESSAGE"] = "my lang message";
?>
/templates/my_template/lang/en/template.php
/templates/my_template/lang/ru/template.php
В header.php пишу:
<? IncludeTemplateLangFile(__FILE__);?>
<?=GetMessage('MY_LANG_MESSAGE');?>
Код в /templates/my_template/lang/ru/template.php:
<?
$MESS["MY_LANG_MESSAGE"] = "Мое языковое сообщение";
?>
Код в /templates/my_template/lang/en/template.php:
<?
$MESS["MY_LANG_MESSAGE"] = "my lang message";
?>