From 42b60bd23074103688ab9ee7a98cf8b3a865baf2 Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 17 Sep 2021 22:35:07 +0200 Subject: [PATCH 1/9] Multi-language correction --- plugins/dynamix.docker.manager/include/DockerContainers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix.docker.manager/include/DockerContainers.php b/plugins/dynamix.docker.manager/include/DockerContainers.php index dfc99ae95..2ed03879c 100644 --- a/plugins/dynamix.docker.manager/include/DockerContainers.php +++ b/plugins/dynamix.docker.manager/include/DockerContainers.php @@ -125,7 +125,7 @@ foreach ($containers as $ct) { echo " "._('apply update').""; break; case 2: - echo "
".('rebuild ready')."
"; + echo "
"._('rebuild ready')."
"; echo " "._('rebuilding').""; break; default: From 7355a10bb40de229a521d33f752353e8e390ad19 Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 17 Sep 2021 23:24:49 +0200 Subject: [PATCH 2/9] Multi-language correction --- plugins/dynamix.vm.manager/VMSettings.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix.vm.manager/VMSettings.page b/plugins/dynamix.vm.manager/VMSettings.page index f7ad09c01..075f498cc 100644 --- a/plugins/dynamix.vm.manager/VMSettings.page +++ b/plugins/dynamix.vm.manager/VMSettings.page @@ -23,7 +23,7 @@ require_once "$docroot/plugins/dynamix.vm.manager/include/libvirt_helpers.php"; // If either kvm_intel or kvm_amd are loaded then Intel VT-x (vmx) or AMD-V (svm) cpu virtualization support was found $hardware = !empty(shell_exec("/etc/rc.d/rc.libvirt test")); if (!$hardware) { - echo "

".('Your hardware does not have Intel VT-x or AMD-V capability').". "._('This is required to create VMs in KVM').". "._('Please disable the VM function').". "; + echo "

"._('Your hardware does not have Intel VT-x or AMD-V capability').". "._('This is required to create VMs in KVM').". "._('Please disable the VM function').". "; echo " "._('Click here to see the Unraid Wiki for more information')."

"; } From 462b67d6ebd3bd0149f7bab7989aaebebaaf74c1 Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 17 Sep 2021 23:49:34 +0200 Subject: [PATCH 3/9] Multi-language correction --- plugins/dynamix/include/Browse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/Browse.php b/plugins/dynamix/include/Browse.php index 46c6d30da..61a9dfd35 100644 --- a/plugins/dynamix/include/Browse.php +++ b/plugins/dynamix/include/Browse.php @@ -46,7 +46,7 @@ $dir = urldecode($_GET['dir']??''); $path = unscript($_GET['path']??''); $user = unscript($_GET['user']??''); $all = $docroot.preg_replace('/([\'" &()[\]\\\\])/','\\\\$1',$dir).'/*'; -$fix = substr($dir,0,4)=='/mnt' ? (explode('/',trim_slash($dir))[2] ?: _('---')) : _('flash'); +$fix = substr($dir,0,4)=='/mnt' ? (explode('/',trim_slash($dir))[2] ?: '---') : _('flash'); $fmt = "%F {$display['time']}"; $dirs = $files = []; $total = $i = 0; From 878d84a58964b49945ad97cbcd2522ed661fd2cf Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 18 Sep 2021 10:09:48 +0200 Subject: [PATCH 4/9] Multi-language correction --- plugins/dynamix/nchan/update_2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/nchan/update_2 b/plugins/dynamix/nchan/update_2 index cd8be7a0f..aa65ce1ed 100755 --- a/plugins/dynamix/nchan/update_2 +++ b/plugins/dynamix/nchan/update_2 @@ -21,7 +21,7 @@ require_once "$docroot/webGui/include/publish.php"; extract(parse_plugin_cfg('dynamix',true)); // add translations -$_SERVER['REQUEST_URI'] = 'dashboard'; +$_SERVER['REQUEST_URI'] = 'dashboard/main'; $_SESSION['locale'] = $display['locale']; require_once "$docroot/webGui/include/Translations.php"; // remember current language From e8a05699cbbbfa381c33749a889cf9bcca2ffcfb Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 18 Sep 2021 10:37:01 +0200 Subject: [PATCH 5/9] Multi-language correction --- plugins/dynamix.my.servers/include/myservers2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix.my.servers/include/myservers2.php b/plugins/dynamix.my.servers/include/myservers2.php index 155e00a46..e4145b040 100644 --- a/plugins/dynamix.my.servers/include/myservers2.php +++ b/plugins/dynamix.my.servers/include/myservers2.php @@ -202,7 +202,7 @@ 'humanReadable' => _('Multiple License Keys Present'), 'error' => [ 'heading' => '@:stateData.EGUID1.humanReadable', - 'message' => _('There are multiple license key files present on your USB flash device and none of them correspond to the USB Flash boot device').'. '.('Please remove all key files except the one you want to replace from the */config* directory on your USB Flash boot device').'. '._('Alternately you may purchase a license key for this USB flash device').'. '._('If you want to replace one of your license keys with a new key bound to this USB Flash device please first remove all other key files first').'.', + 'message' => _('There are multiple license key files present on your USB flash device and none of them correspond to the USB Flash boot device').'. '._('Please remove all key files except the one you want to replace from the */config* directory on your USB Flash boot device').'. '._('Alternately you may purchase a license key for this USB flash device').'. '._('If you want to replace one of your license keys with a new key bound to this USB Flash device please first remove all other key files first').'.', ], ], 'EBLACKLISTED' => [ @@ -230,7 +230,7 @@ 'humanReadable' => _('Trial Requires Internet Connection'), 'error' => [ 'heading' => _('Cannot validate Unraid Trial key'), - 'message' => _('Your Trial key requires an internet connection').'. '.('Please check Settings > Network').'.', + 'message' => _('Your Trial key requires an internet connection').'. '._('Please check Settings > Network').'.', ], ], 'STALE' => [ From a4a84d2343e293980687eef0c3887885d7fb0049 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 18 Sep 2021 15:51:53 +0200 Subject: [PATCH 6/9] Multi-language correction --- plugins/dynamix/DashStats.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/DashStats.page b/plugins/dynamix/DashStats.page index 547b1b916..9cd98ccb7 100644 --- a/plugins/dynamix/DashStats.page +++ b/plugins/dynamix/DashStats.page @@ -355,7 +355,7 @@ foreach ($ports as $port) { ' onclick="toggleVPN($(this),'')" title="Toggle tunnel state">_(Activity)__(Handshake)_ $peer):?> -_(---)__(inactive)_ +---_(inactive)_ From fe846b9a82762b906fb726e31c69e31e9c0417fc Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 18 Sep 2021 18:25:46 +0200 Subject: [PATCH 7/9] Multi-language correction --- plugins/dynamix/WG0.page | 2 +- plugins/dynamix/WGX.page | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix/WG0.page b/plugins/dynamix/WG0.page index c6a805b17..789785985 100644 --- a/plugins/dynamix/WG0.page +++ b/plugins/dynamix/WG0.page @@ -1392,7 +1392,7 @@ _(Peer preshared key)_: : " onchange="highlight($(document.wg0),this,)" placeholder="(_(optional)_)"> -: wg_peer_preshared_key_help: +:wg_peer_preshared_key_help: