本文整理汇总了PHP中Translations::load方法的典型用法代码示例。如果您正苦于以下问题:PHP Translations::load方法的具体用法?PHP Translations::load怎么用?PHP Translations::load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Translations
的用法示例。
在下文中一共展示了Translations::load方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
}
if ($server_ext_prefix[$dbnr] != '') {
$kga['server_prefix'] = $server_ext_prefix[$dbnr];
}
}
}
$database = new Kimai_Database_Mysql($kga);
$database->connect($kga['server_hostname'], $kga['server_database'], $kga['server_username'], $kga['server_password'], $kga['utf8'], $kga['server_type']);
if (!$database->isConnected()) {
die('Kimai could not connect to database. Check your autoconf.php.');
}
Kimai_Registry::setDatabase($database);
global $translations;
$translations = new Translations($kga);
if ($kga['language'] != 'en') {
$translations->load($kga['language']);
}
$vars = $database->configuration_get_data();
if (!empty($vars)) {
$kga['currency_name'] = $vars['currency_name'];
$kga['currency_sign'] = $vars['currency_sign'];
$kga['show_sensible_data'] = $vars['show_sensible_data'];
$kga['show_update_warn'] = $vars['show_update_warn'];
$kga['check_at_startup'] = $vars['check_at_startup'];
$kga['show_daySeperatorLines'] = $vars['show_daySeperatorLines'];
$kga['show_gabBreaks'] = $vars['show_gabBreaks'];
$kga['show_RecordAgain'] = $vars['show_RecordAgain'];
$kga['show_TrackingNr'] = $vars['show_TrackingNr'];
$kga['date_format'][0] = $vars['date_format_0'];
$kga['date_format'][1] = $vars['date_format_1'];
$kga['date_format'][2] = $vars['date_format_2'];