Multi-language support

This commit is contained in:
bergware
2020-05-06 19:46:00 +02:00
parent c0d4ce8a32
commit e568b3a3b4
2 changed files with 37 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
Menu="Buttons"
Title="English"
Icon="icon-u-switch"
Code="e982"
---
<?PHP
/* Copyright 2005-2020, Lime Technology
* Copyright 2012-2020, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<script>
function LanguageButton() {
$.post('/webGui/include/LanguageReset.php',{},function(){refresh();});
}
</script>
+15
View File
@@ -0,0 +1,15 @@
<?PHP
/* Copyright 2005-2020, Lime Technology
* Copyright 2012-2020, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<?
exec("sed -ri 's/^(locale=\")[^\"]+/\\1/' /boot/config/plugins/dynamix/dynamix.cfg");
?>