add language support
This commit is contained in:
crestAT
2016-02-06 09:31:37 +01:00
parent e223f0fe60
commit 7918d5791e
14 changed files with 21 additions and 7 deletions

View File

@@ -37,6 +37,7 @@ $dummy = gettext("The changes have been applied successfully.");
$dummy = gettext("The configuration has been changed.<br />You must apply the changes in order for them to take effect.");
$dummy = gettext("The following input errors were detected");
bindtextdomain("nas4free", "/usr/local/share/locale-obi");
$pgtitle = array(gettext("Extensions"), gettext("OneButtonInstaller")." ".$config['onebuttoninstaller']['version'], gettext("Configuration"));
if (!isset($config['onebuttoninstaller']) || !is_array($config['onebuttoninstaller'])) $config['onebuttoninstaller'] = array();
@@ -92,7 +93,9 @@ $pconfig['enable'] = isset($config['onebuttoninstaller']['enable']) ? true : fal
$pconfig['storage_path'] = !empty($config['onebuttoninstaller']['storage_path']) ? $config['onebuttoninstaller']['storage_path'] : $g['media_path'];
$pconfig['auto_update'] = isset($config['onebuttoninstaller']['auto_update']) ? true : false;
include("fbegin.inc");?>
bindtextdomain("nas4free", "/usr/local/share/locale"); // to get the right main menu language
include("fbegin.inc");
bindtextdomain("nas4free", "/usr/local/share/locale-obi"); ?>
<script type="text/javascript">
<!--
function enable_change(enable_change) {