ulogger-server/lang.php

42 lines
1.2 KiB
PHP
Raw Normal View History

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-11 17:00:40 +02:00
// available languages
2017-04-09 23:35:55 +02:00
$langsArr = [
"en" => "English",
"pl" => "Polski",
"de" => "Deutsch",
"hu" => "Magyar",
"fr" => "Français",
2017-04-09 21:22:20 +02:00
"it" => "Italiano",
"es" => "Español"
];
// always load en base
2017-04-11 17:00:40 +02:00
require_once(ROOT_DIR . "/lang/en.php");
// 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");
}
2014-11-08 22:59:13 +01:00
2013-06-19 13:27:14 +02:00
?>