mirror of
https://github.com/unraid/webgui.git
synced 2026-01-18 07:30:14 -06:00
Merge pull request #651 from bergware/mutli-language
Multi-language support
This commit is contained in:
@@ -14,10 +14,11 @@
|
||||
$keys = parse_ini_file($_POST['#cfg'], true);
|
||||
$cleanup = isset($_POST['#cleanup']);
|
||||
$text = "";
|
||||
|
||||
foreach ($_POST as $field => $value) {
|
||||
if ($field[0] == '#') continue;
|
||||
list($section,$key) = explode('_', $field, 2);
|
||||
$n = strrpos($field,'_');
|
||||
$section = substr($field,0,$n);
|
||||
$key = substr($field,$n+1);
|
||||
$keys[$section][$key] = $value;
|
||||
}
|
||||
foreach ($keys as $section => $block) {
|
||||
|
||||
@@ -7,6 +7,7 @@ de_DE=Deutsch (German)
|
||||
el_GR=ελληνικά (Greek)
|
||||
es_ES=Español (Spanish)
|
||||
et_EE=Eesti (Estonian)
|
||||
fa_FA=فارسی (Persian)
|
||||
fi_FI=Suomi (Finnish)
|
||||
fr_FR=Français (French)
|
||||
ga_IE=Gaeilge (Irish)
|
||||
|
||||
Reference in New Issue
Block a user