mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-08 21:15:19 +09:00
25 lines
576 B
PHP
25 lines
576 B
PHP
<?php
|
|
namespace fruithost;
|
|
use \fruithost\Auth;
|
|
|
|
class I18N {
|
|
public function __construct() {
|
|
$language = 'de_DE'; //Auth::getSettings('LANGUAGE', NULL, 'en_US');
|
|
$domain = 'fruithost';
|
|
|
|
putenv('LC_ALL=de_DE.UTF-8');
|
|
setlocale(LC_ALL, 'de_DE.UTF-8');
|
|
|
|
bindtextdomain($domain, PATH . 'languages/.nocache');
|
|
bindtextdomain($domain, PATH . 'languages');
|
|
bind_textdomain_codeset($domain, 'UTF-8');
|
|
textdomain($domain);
|
|
}
|
|
|
|
public static function __($string) {
|
|
print gettext($string);
|
|
}
|
|
}
|
|
|
|
new I18N();
|
|
?>
|