DeviceInfo: translation correction

This commit is contained in:
bergware
2023-02-03 10:43:16 +01:00
parent 3f90b203af
commit 8ab901b2c1
+2 -2
View File
@@ -111,7 +111,7 @@ function selectDiskFsWidth(num_devices,selected_width) {
for (width=2; width<=Math.min(num_devices,4); width++) {
if ((num_devices % width) == 0) {
var groups = num_devices / width;
var label = (groups == 1) ? "<?=_('group')?>" : "<?=_('groups')?>";
var label = (groups == 1) ? "group" : "groups";
$('#diskFsWidthZFS').append($('<option>', {
value: width,
text: _(sprintf('%s '+label+' of %s devices',groups,width)),
@@ -127,7 +127,7 @@ function selectDiskFsWidth(num_devices,selected_width) {
for (width=min_width; width<=num_devices; width++) {
if ((num_devices % width) == 0) {
var groups = num_devices / width;
var label = (groups == 1) ? "<?=_('group')?>" : "<?=_('groups')?>";
var label = (groups == 1) ? "group" : "groups";
$('#diskFsWidthZFS').append($('<option>', {
value: width,
text: _(sprintf('%s '+label+' of %s devices',groups,width)),