return file_exists($filename);
}
+ // getBrowserLanguage() returns a first supported language from browser settings.
function getBrowserLanguage()
{
$acclang = @$_SERVER['HTTP_ACCEPT_LANGUAGE'];
if (empty($acclang)) {
- return "";
+ return false;
}
$lang_prefs = explode(',', $acclang);
foreach ($lang_prefs as $lang_pref) {
$lang_pref_parts = explode(';', trim($lang_pref));
if ($this->hasLang($lang_pref_parts[0])) {
- return $lang_pref_parts[0];
+ return $lang_pref_parts[0]; // Return full language designation, such as pt-BR.
}
$lang_parts = explode('-', trim($lang_pref_parts[0]));
$lang_main = $lang_parts[0];
if ($this->hasLang($lang_main)) {
- return $lang_main;
+ return $lang_main; // Return main language designation, such as pt.
}
}
- return "";
+ return false;
}
// getLangFileList() returns a list of language files.
// Menus - short selection strings that are displayed on the top of application web pages.
// Example: https://timetracker.anuko.com (black menu on top).
-'menu.login' => 'Войти в систему',
+'menu.login' => 'Войти',
'menu.logout' => 'Выйти',
'menu.forum' => 'Форум',
'menu.help' => 'Справка',
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.9.24.3485 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.9.24.3486 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>