Multi-language support

This commit is contained in:
bergware
2020-05-01 20:36:36 +02:00
parent b844e1e24c
commit ce0693071e
@@ -210,7 +210,7 @@ if ($method == 'install') {
echo "language: $error\n";
exit(1);
}
$lang = language('Language', $xml_file, $error) ?: str_replace('.xml', '', $name);
$lang = language('Language', $xml_file, $error) ?: substr($name,0,-4);
$link_file = "$plugins/dynamix.$name";
$lang_file = "$boot/dynamix.$name";
copy($xml_file, $lang_file);