Merge pull request #651 from bergware/mutli-language

Multi-language support
This commit is contained in:
tom mortensen
2020-04-15 12:39:49 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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)