-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -118,7 +118,7 @@ function loadlist() {
$('.iconstatus').each(function(){
if ($(this).hasClass('stopped')) $('div.'+$(this).prop('id')).hide();
});
- $('.autostart').switchButton({labels_placement:'right'});
+ $('.autostart').switchButton({labels_placement:'right', on_label:'_(On)_', off_label:'_(Off)_'});
$('.autostart').change(function(){
var more = $.cookie('docker_listview_mode')=='advanced';
var wait = $('#'+$(this).prop('id').replace('auto','wait'));
@@ -145,7 +145,7 @@ function loadlist() {
});
}
function sizes() {
- openBox('/plugins/dynamix.docker.manager/include/ContainerSize.php','Container Size',600,600);
+ openBox('/plugins/dynamix.docker.manager/include/ContainerSize.php','_(Container Size)_',600,600);
}
var watchDocker = new NchanSubscriber('/sub/dockerload');
watchDocker.on('message', function(data){
@@ -159,7 +159,7 @@ watchDocker.on('message', function(data){
}
});
$(function() {
- $('.advancedview').switchButton({labels_placement:'left', on_label:'Advanced View', off_label:'Basic View', checked:$.cookie('docker_listview_mode')=='advanced'});
+ $('.advancedview').switchButton({labels_placement:'left', on_label:'_(Advanced View)_', off_label:'_(Basic View)_', checked:$.cookie('docker_listview_mode')=='advanced'});
$('.advancedview').change(function(){
$('.advanced').toggle('slow');
$('.basic').toggle('slow');
diff --git a/plugins/dynamix.docker.manager/DockerRepositories.page b/plugins/dynamix.docker.manager/DockerRepositories.page
index 88913ff93..6a955d145 100644
--- a/plugins/dynamix.docker.manager/DockerRepositories.page
+++ b/plugins/dynamix.docker.manager/DockerRepositories.page
@@ -4,8 +4,8 @@ Tag="clone"
Cond="(pgrep('dockerd')!==false)"
---
diff --git a/plugins/dynamix.docker.manager/DockerSettings.page b/plugins/dynamix.docker.manager/DockerSettings.page
index e71df7951..7e793a07c 100644
--- a/plugins/dynamix.docker.manager/DockerSettings.page
+++ b/plugins/dynamix.docker.manager/DockerSettings.page
@@ -4,9 +4,9 @@ Icon="icon-docker"
Tag="icon-docker"
---
Your existing Docker image file needs to be recreated due to an issue from an earlier beta of Unraid 6. Failure to do so may result in your docker image suffering corruption at a later time. Please do this NOW!';
+ echo '
'._('Your existing Docker image file needs to be recreated due to an issue from an earlier beta of Unraid 6').' ';
+ echo _('Failure to do so may result in your docker image suffering corruption at a later time').' ';
+ echo _('Please do this NOW').'!
';
}
}
}
@@ -140,55 +142,62 @@ span.disabled{color:#404040}
-Enable Docker:
+_(Enable Docker)_:
:
=($dockercfg['DOCKER_ENABLED']=='yes')?'Docker will be available after Array is Started':'Apply to activate Docker after Array is Started'?>
- One or more paths do not exist (view)
+ _(One or more paths do not exist)_ (_(view)_)
+:help33
> Before you can start the Docker service for the first time, please specify an image file for Docker to install to.
>
> Once started, Docker will always automatically start after the array has been started.
+:end
-Docker vDisk size:
+_(Docker vDisk size)_:
: GB
+:help34
> If the system needs to create a new docker image file, this is the default size to use specified in GB.
>
> To resize an existing image file, specify the new size here. Next time the Docker service is started the file (and file system) will increased to the new size (but never decreased).
+:end
-Docker vDisk location:
+_(Docker vDisk location)_:
:
-
+
- Modify with caution: unable to validate path until Array is Started
+ _(Modify with caution: unable to validate path until Array is Started)_
- Path does not exist
+ _(Path does not exist)_
+:help35
> You must specify an image file for Docker. The system will automatically create this file when the Docker service is first started.
>
> The image file name must have the extension .img, e.g. If not the input is not accepted and marked red.
>
> It is recommended to create this image file outside the array, e.g. on the Cache pool. For best performance SSD devices are preferred.
+:end
-Default appdata storage location:
+_(Default appdata storage location)_:
:
- Modify with caution: unable to validate path until Array is Started
+ _(Modify with caution: unable to validate path until Array is Started)_
- Path does not exist
+ _(Path does not exist)_
+:help36
> You can specify a folder to automatically generate and store subfolders containing configuration files for each Docker app (via the /config mapped volume).
>
> The folder's path must end with a trailing slash (/) character. If not the input is not accepted and marked red.
@@ -196,68 +205,81 @@ Default appdata storage location:
> It is recommended to create this folder outside the array, e.g. on the Cache pool. For best performance SSD devices are preferred.
>
> Only used when adding new Docker apps. Editing existing Docker apps will not be affected by this setting.
+:end
-Docker LOG rotation:
+_(Docker LOG rotation)_:
:
+:help37
> By default LOG rotation is disabled and will create a single LOG file of unlimited size.
>
> Enable LOG rotation to limit the size of the LOG file and specify the number of files to keep in the rotation scheme.
+:end
-Docker LOG maximum file size:
+_(Docker LOG maximum file size)_:
:
+:help38
> Specifies the maximum LOG size. When exceeded LOG rotation will occur.
+:end
-Docker LOG number of files:
+_(Docker LOG number of files)_:
:
+:help39
> Specifies the number of LOG files when LOG rotation is done.
+:end
-Template Authoring Mode:
+_(Template Authoring Mode)_:
:
+:help40
> If set to **Yes**, when creating/editing containers the interface will be present with some extra fields related to template authoring.
+:end
-Host access to custom networks:
+_(Host access to custom networks)_:
:
+:help41
> Allows direct communication between the host and containers using a custom (macvlan) network.
> By default this is prohibited.
+:end
-Preserve user defined networks:
+_(Preserve user defined networks)_:
:
+:help42
> User created networks are networks created by the user outside of the GUI.
> By default user created networks are removed from Docker. This is done to prevent potential conflicts with the automatic generation of custom networks.
>
> Change this setting to preserve user defined networks, but it is the responsibility of the user to ensure these entries work correctly and are conflict free.
+:end
$route):?>
@@ -268,7 +290,7 @@ $docker_dhcp = "DOCKER_DHCP_$net";
-IPv4 custom network on interface =$network?> (optional):
+_(IPv4 custom network on interface)_ =$network?> (_(optional)_):
$auto = $dockercfg[$docker_auto]!='no';
$autoDisabled = $auto ? '':'disabled';
@@ -288,10 +310,10 @@ IPv4 custom network on interface =$network?> (optional):
?>
: >
- **Subnet:** =$route?>
- **Gateway:** =$gateway[$network]?>
+ **_(Subnet)_:** =$route?>
+ **_(Gateway)_:** =$gateway[$network]?>
=$autoDisabled?>>
- **DHCP pool:**=$prefix?>.
+ **_(DHCP pool)_:**=$prefix?>.
for ($b=$box; $b<=3; $b++) {
@@ -308,15 +330,17 @@ IPv4 custom network on interface =$network?> (optional):
echo "/ ";
echo "($size hosts)";
+ echo "($size "._('hosts').")";
echo "";
?>
+:help43
> Include (default) or exclude the above interfaces or VLANs as custom network for Docker.
>
> Enter the pool range within each allocated subnet which is used for DHCPv4 assignments by Docker. E.g. 192.168.1.128/25
+:end
@@ -329,25 +353,27 @@ $dhcpDisabled = $range ? '':'disabled';
?>
-IPv4 custom network on interface =$network?> (optional):
+_(IPv4 custom network on interface)_ =$network?> (_(optional)_):
: >
- **Subnet:** >/
+ **_(Subnet)_:** >/
- **Gateway:** " title="IPv4 address A.B.C.D"=$disabled?>>
+ **_(Gateway)_:** " title="_(IPv4 address A.B.C.D)_"=$disabled?>>
=$dhcpDisabled?>>
- **DHCP pool:** >/
+ **_(DHCP pool)_:** >/
- (=pow(2,32-($size?:25))?> hosts)
+ (=pow(2,32-($size?:25))?> _(hosts)_)
+:help44
> Include or exclude (default) the above interfaces or VLANs as custom network for Docker.
>
> Enter the pool range within each allocated subnet which is used for DHCPv4 assignments by Docker. E.g. 192.168.1.128/25
+:end
@@ -360,7 +386,7 @@ $docker_auto = "DOCKER_AUTO_$net";
$docker_dhcp6 = "DOCKER_DHCP6_$net";
?>
-IPv6 custom network on interface =$network?> (optional):
+_(IPv6 custom network on interface)_ =$network?> (_(optional)_):
$auto6 = $dockercfg[$docker_auto]!='no';
$auto6Disabled = $auto6 ? '':'disabled';
@@ -373,10 +399,10 @@ IPv6 custom network on interface =$network?> (optional):
?>
: >
- **Subnet:** =$route?>
- **Gateway:** =$gateway6[$network]?>
+ **_(Subnet)_:** =$route?>
+ **_(Gateway)_:** =$gateway6[$network]?>
=$auto6Disabled?>>
- **DHCP pool:**=$net?>:
+ **_(DHCP pool)_:**=$net?>:
echo "/ ";
echo "
-Docker version:
+_(Docker version)_:
: $arrInfo = $DockerClient->getInfo(); echo $arrInfo['Version']?>
-> This is the Docker version.
+:help47
+> This is the active Docker version.
+:end
-Docker vDisk location:
+_(Docker vDisk location)_:
: =$dockercfg['DOCKER_IMAGE_FILE']?>
+:help48
> This is the location of the Docker image.
+:end
-Default appdata storage location:
+_(Default appdata storage location)_:
: =$dockercfg['DOCKER_APP_CONFIG_PATH']?>
+:help49
> This is the storage location for Docker containers.
+:end
-Docker LOG rotation:
-: =$dockercfg['DOCKER_LOG_ROTATION']=='yes'?'Enabled':'Disabled'?>
+_(Docker LOG rotation)_:
+: =$dockercfg['DOCKER_LOG_ROTATION']=='yes' ? _('Enabled') : _('Disabled')?>
+:help50
> By default a single unlimited LOG file is created. Otherwise LOG file size and number of files are limited when LOG rotation is enabled.
+:end
-Host access to custom networks:
-: =$dockercfg['DOCKER_ALLOW_ACCESS']==''?'Disabled':'Enabled'?>
+_(Host access to custom networks)_:
+: =$dockercfg['DOCKER_ALLOW_ACCESS']=='' ? _('Disabled') : _('Enabled')?>
+:help51
> Allows direct communication between the host and containers using a custom (macvlan) network.
> By default this is prohibited.
+:end
-Preserve user defined networks:
-: =$dockercfg['DOCKER_USER_NETWORKS']=='preserve'?'Yes':'No'?>
+_(Preserve user defined networks)_:
+: =$dockercfg['DOCKER_USER_NETWORKS']=='preserve' ? _('Yes') : _('No')?>
+:help52
> Shows whether networks created outside of the GUI are removed or preserved for Docker. When preserved *user defined networks* become available in the *Network type* dropdown list of containers.
+:end
$route):?>
@@ -461,10 +503,10 @@ $net = normalize($network);
$docker_dhcp = "DOCKER_DHCP_$net";
?>
-IPv4 custom network on interface =$network?>:
-: **Subnet:** =$route?>
- **Gateway:** =$gateway[$network]?>
- **DHCP pool:** =$dockercfg[$docker_dhcp] ?? 'not set'?> (=pow(2,32-explode('/',$dockercfg[$docker_dhcp])[1])?> hosts)
+_(IPv4 custom network on interface)_ =$network?>:
+: **_(Subnet)_:** =$route?>
+ **_(Gateway)_:** =$gateway[$network]?>
+ **_(DHCP pool)_:** =$dockercfg[$docker_dhcp] ?? '_ (not set)_'?> (=pow(2,32-explode('/',$dockercfg[$docker_dhcp])[1])?> _(hosts)_)
@@ -484,10 +526,10 @@ list($subnet,$mask) = explode('/',$dockercfg["DOCKER_SUBNET_$port"]);
list($range,$size) = explode('/',$dockercfg["DOCKER_RANGE_$port"]);
?>
-IPv4 custom network on interface =$network?>:
-: **Subnet:** =$subnet?>/=$mask?>
- **Gateway:** =$dockercfg["DOCKER_GATEWAY_$port"]?>
- **DHCP pool:** =$range?"$range/$size":"not set"?> (=pow(2,32-($size?:25))?> hosts)
+_(IPv4 custom network on interface)_ =$network?>:
+: **_(Subnet)_:** =$subnet?>/=$mask?>
+ **_(Gateway)_:** =$dockercfg["DOCKER_GATEWAY_$port"]?>
+ **_(DHCP pool)_:** =$range ? "$range/$size" : "_(not set)_"?> (=pow(2,32-($size?:25))?> _(hosts)_)
@@ -497,10 +539,10 @@ $net = normalize($network);
$docker_dhcp6 = "DOCKER_DHCP6_$net";
if ($dockercfg[$docker_dhcp6] || empty($dockercfg["DOCKER_AUTO_$net"])):?>
$wide = true;?>
-IPv6 custom network on interface =$network?>:
-: **Subnet:** =$route?>
- **Gateway:** =$gateway6[$network]?>
- **DHCP pool:** =$dockercfg[$docker_dhcp6] ?? 'not set'?>
+_(IPv6 custom network on interface)_ =$network?>:
+: **_(Subnet)_:** =$route?>
+ **_(Gateway)_:** =$gateway6[$network]?>
+ **_(DHCP pool)_:** =$dockercfg[$docker_dhcp6] ?? '_(not set)_'?>
@@ -520,17 +562,17 @@ list($subnet6,$mask6) = explode('/',$dockercfg["DOCKER_SUBNET6_$port"]);
list($range6,$size6) = explode('/',$dockercfg["DOCKER_RANGE6_$port"]);
?>
-IPv6 custom network on interface =$network?>:
-: **Subnet:** =$subnet6?>/=$mask6?>
- **Gateway:** =$dockercfg["DOCKER_GATEWAY6_$port"]?>
- **DHCP pool:** =$range6?"$range6/$size6":"not set"?>
+_(IPv6 custom network on interface)_ =$network?>:
+: **_(Subnet)_:** =$subnet6?>/=$mask6?>
+ **_(Gateway)_:** =$dockercfg["DOCKER_GATEWAY6_$port"]?>
+ **_(DHCP pool)_:** =$range6 ? "$range6/$size6" : "_(not set)_"?>