add langs array
This commit is contained in:
43
lang.php
Normal file
43
lang.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?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];
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user