Files
vij/lang.php
arlemp@selectel.ru aa2d2284d8 add langs array
2021-12-10 18:00:54 +03:00

43 lines
2.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
function vij_lang($name, $lan){
static $lang_ru = [
'conf_politic' => 'Политика конфиденциальности',
'copyright' => 'Ветеринария и жизнь',
'subscript_btn' => 'Газета ВиЖ. Оформить подписку',
'svid_smi' => 'Свидетельство о регистрации СМИ',
'copyright_text' => 'При перепечатке и использовании информации с сайта «Ветеринария и жизнь» активная ссылка на использованный материал обязательна. При использовании материалов в печатных СМИ указывать источник — «Ветеринария и жизнь»',
'email_btn' => 'Подписаться',
'email_title' => 'Подпишитесь на нашу рассылку и будьте в курсе всех новостей',
'your_mail' => 'Ваша почта',
'gazeta' => 'Читать газету<br>«Ветеринария и Жизнь»',
'up_bth' => 'наверх'
];
static $lang_en = [
'conf_politic' => 'Privacy Policy',
'copyright' => 'Veterinary Medicine and Life',
'subscript_btn' => 'Subscription to the Veterinary Medicine and Life newspaper',
'svid_smi' => 'Media Registration Certificate',
'copyright_text' => 'It is required to provide a valid URL when reprinting and using information from the Veterinary Medicine and Life website. When using materials in print media, indicate the source - Veterinary Medicine and Life',
'email_btn' => 'Sign up',
'email_title' => 'Sign up to our newsletters to get the latest on your favourite topics from the Veterinary Medicine and Life',
'your_mail' => 'Your email',
'gazeta' => 'Veterinary Medicine and Life newspaper',
'up_bth' => 'UP'
];
if ($lan == 'ru' and isset($lang_ru[$name])){
return $lang_ru[$name];
}
elseif ($lan == 'en' and isset($lang_ru[$name])){
return $lang_en[$name];
}
}