2013-06-19 13:27:14 +02:00
|
|
|
<?php
|
2017-01-30 21:36:44 +01:00
|
|
|
/* μlogger
|
2013-06-19 13:27:14 +02:00
|
|
|
*
|
2017-01-30 21:36:44 +01:00
|
|
|
* Copyright(C) 2017 Bartek Fabiszewski (www.fabiszewski.net)
|
2013-06-19 13:27:14 +02:00
|
|
|
*
|
|
|
|
* This is free software; you can redistribute it and/or modify it under
|
2017-04-07 00:05:28 +02:00
|
|
|
* the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2013-06-19 13:27:14 +02:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
2017-04-07 00:05:28 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2013-06-19 13:27:14 +02:00
|
|
|
*/
|
2017-04-09 23:35:55 +02:00
|
|
|
|
2017-04-07 18:37:17 +02:00
|
|
|
// available languages
|
2017-04-09 23:35:55 +02:00
|
|
|
$langsArr = [
|
2017-04-07 18:37:17 +02:00
|
|
|
"en" => "English",
|
|
|
|
"pl" => "Polski",
|
|
|
|
"de" => "Deutsch",
|
|
|
|
"hu" => "Magyar",
|
|
|
|
"fr" => "Français",
|
2017-04-09 21:22:20 +02:00
|
|
|
"it" => "Italiano",
|
|
|
|
"es" => "Español"
|
2017-04-07 18:37:17 +02:00
|
|
|
];
|
2016-10-29 14:05:13 +02:00
|
|
|
|
2017-04-07 18:37:17 +02:00
|
|
|
// always load en base
|
2017-04-11 17:00:40 +02:00
|
|
|
require_once(ROOT_DIR . "/lang/en.php");
|
2016-10-29 14:05:13 +02:00
|
|
|
|
2017-04-07 18:37:17 +02:00
|
|
|
// override with translated strings if needed
|
|
|
|
// missing strings will be displayed in English
|
|
|
|
if ($config::$lang != "en" && array_key_exists($config::$lang, $langsArr)) {
|
2017-04-11 17:00:40 +02:00
|
|
|
require_once(ROOT_DIR . "/lang/{$config::$lang}.php");
|
2017-04-07 18:37:17 +02:00
|
|
|
}
|
2014-11-08 22:59:13 +01:00
|
|
|
|
2017-04-14 15:55:00 +02:00
|
|
|
// choose password messages based on config
|
2017-04-14 17:24:09 +02:00
|
|
|
$lang['passrules'] = isset($lang["passrules"][$config::$pass_strength]) ? $lang["passrules"][$config::$pass_strength] : "";
|
2017-04-14 15:55:00 +02:00
|
|
|
$lang['passlenmin'] = sprintf($lang["passlenmin"], $config::$pass_lenmin);
|
|
|
|
|
2017-04-17 13:15:44 +02:00
|
|
|
?>
|