Multi-language support

This commit is contained in:
bergware
2020-03-25 17:53:32 +01:00
parent 87ac2c9ba6
commit d9166c26e2
2 changed files with 10 additions and 0 deletions

View File

@@ -17,5 +17,10 @@ Markdown="false"
*/
?>
<?
// add vm translations (if needed)
if (substr($_SERVER['REQUEST_URI'],0,4) != '/VMs') {
$vms = "$docroot/languages/$locale/vms.dot";
if (file_exists($vms)) $language = array_merge($language,unserialize(file_get_contents($vms)));
}
eval('?>'.parse_file("$docroot/plugins/dynamix.vm.manager/include/VMedit.php",false));
?>

View File

@@ -17,5 +17,10 @@ Markdown="false"
*/
?>
<?
// add vm translations (if needed)
if (substr($_SERVER['REQUEST_URI'],0,4) != '/VMs') {
$vms = "$docroot/languages/$locale/vms.dot";
if (file_exists($vms)) $language = array_merge($language,unserialize(file_get_contents($vms)));
}
eval('?>'.parse_file("$docroot/plugins/dynamix.vm.manager/include/VMedit.php",false));
?>