Multi-language support

This commit is contained in:
bergware
2020-08-01 07:23:59 +02:00
parent 14aae0cde8
commit 8da5cc17c1

View File

@@ -25,6 +25,7 @@ require_once "$docroot/plugins/dynamix.plugin.manager/include/PluginHelpers.php"
<style>
span#dropbox{margin-right:20px;}
i.top{position:relative;padding-left:4px;cursor:pointer;}
select.fixed{max-width:166px}
</style>
<script src="<?autov('/webGui/javascript/jquery.filedrop.js')?>"></script>
@@ -132,7 +133,7 @@ $(function() {
<input type="hidden" name="#section" value="display">
<input type="hidden" name="rtl" value="<?=$display['rtl']?>">
_(Language)_:
: <select name="locale" onchange="updateDirection(this.value)">
: <select name="locale" class="fixed" onchange="updateDirection(this.value)">
<?echo mk_option($display['locale'], "","English");
foreach (glob("$plugins/lang-*.xml",GLOB_NOSORT) as $xml_file) {
$lang = language('Language', $xml_file);