mirror of
https://github.com/unraid/webgui.git
synced 2026-03-01 13:49:18 -06:00
Multi-language support
This commit is contained in:
@@ -52,6 +52,7 @@ case 'add':
|
||||
$result = file_put_contents("/$boot/$file.lang.zip",base64_decode(preg_replace('/^data:.*;base64,/','',$_POST['filedata'])));
|
||||
if ($result) {
|
||||
foreach (glob("$path/*.dot",GLOB_NOSORT) as $dot) unlink($dot);
|
||||
@unlink("$docroot/webGui/javascript/translate.$file.js");
|
||||
exec("unzip -qqjLo -d ".escapeshellarg($path)." ".escapeshellarg("$boot/$file.lang.zip"));
|
||||
}
|
||||
$installed = [];
|
||||
|
||||
Reference in New Issue
Block a user