* [PATCH 2/4] 20-status.menu: Use lang files for caption and title
[not found] <20250702120119.3315710-1-adolf.belka@ipfire.org>
@ 2025-07-02 12:01 ` Adolf Belka
2025-07-02 12:01 ` [PATCH 3/4] 40-services.menu: " Adolf Belka
2025-07-02 12:01 ` [PATCH 4/4] en.pl: Add "quality of service" and "mdstat" values into en lang file Adolf Belka
2 siblings, 0 replies; 3+ messages in thread
From: Adolf Belka @ 2025-07-02 12:01 UTC (permalink / raw)
To: development; +Cc: Adolf Belka
- the mdstat values are in the two Chinese language files
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
| 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--git a/config/menu/20-status.menu b/config/menu/20-status.menu
index 5d956d0b6..945c4ad2c 100644
--- a/config/menu/20-status.menu
+++ b/config/menu/20-status.menu
@@ -86,8 +86,8 @@
'title' => 'Atm-status',
'enabled' => (`find /sys/class/atm/*/device 2>/dev/null` ? 1 : 0),
};
- $substatus->{'76.mdstat'} = {'caption' => 'Mdstat',
+ $substatus->{'76.mdstat'} = {'caption' => $Lang::tr{'mdstat'},
'uri' => '/cgi-bin/mdstat.cgi',
- 'title' => 'Mdstat',
+ 'title' => $Lang::tr{'mdstat'},
'enabled' => 1,
};
--
2.50.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 3/4] 40-services.menu: Use lang files for caption and title
[not found] <20250702120119.3315710-1-adolf.belka@ipfire.org>
2025-07-02 12:01 ` [PATCH 2/4] 20-status.menu: Use lang files for caption and title Adolf Belka
@ 2025-07-02 12:01 ` Adolf Belka
2025-07-02 12:01 ` [PATCH 4/4] en.pl: Add "quality of service" and "mdstat" values into en lang file Adolf Belka
2 siblings, 0 replies; 3+ messages in thread
From: Adolf Belka @ 2025-07-02 12:01 UTC (permalink / raw)
To: development; +Cc: Adolf Belka
- The "quality of service" and "extrahd" values are in the two Chinese language files
Suggested-by: Opnwall
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
| 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--git a/config/menu/40-services.menu b/config/menu/40-services.menu
index 932a7f033..cd8e945af 100644
--- a/config/menu/40-services.menu
+++ b/config/menu/40-services.menu
@@ -26,13 +26,13 @@
'title' => "$Lang::tr{'time server'}",
'enabled' => 1,
};
- $subservices->{'50.qos'} = {'caption' => 'Quality of Service',
+ $subservices->{'50.qos'} = {'caption' => $Lang::tr{'quality of service'},
'uri' => '/cgi-bin/qos.cgi',
- 'title' => "Quality of Service",
+ 'title' => "$Lang::tr{'quality of service'}",
'enabled' => 1,
};
- $subservices->{'70.extrahd'} = {'caption' => "ExtraHD",
- 'enabled' => 1,
+ $subservices->{'70.extrahd'} = {'caption' => $Lang::tr{'extrahd'},
'uri' => '/cgi-bin/extrahd.cgi',
- 'title' => "ExtraHD",
+ 'title' => "$Lang::tr{'extrahd'}",
+ 'enabled' => 1,
};
--
2.50.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 4/4] en.pl: Add "quality of service" and "mdstat" values into en lang file
[not found] <20250702120119.3315710-1-adolf.belka@ipfire.org>
2025-07-02 12:01 ` [PATCH 2/4] 20-status.menu: Use lang files for caption and title Adolf Belka
2025-07-02 12:01 ` [PATCH 3/4] 40-services.menu: " Adolf Belka
@ 2025-07-02 12:01 ` Adolf Belka
2 siblings, 0 replies; 3+ messages in thread
From: Adolf Belka @ 2025-07-02 12:01 UTC (permalink / raw)
To: development; +Cc: Adolf Belka
- The extrahd is already in the file but this change ensures that the lang additions
to the 20-status and 40-services menu files are included in the en.pl file.
Suggested-by: Opnwall
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
langs/en/cgi-bin/en.pl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
index ef7d75ce7..286953515 100644
--- a/langs/en/cgi-bin/en.pl
+++ b/langs/en/cgi-bin/en.pl
@@ -1805,6 +1805,7 @@
'mbmon temp in' => 'Temperature in',
'mbmon value' => 'Value',
'mbmon volt' => 'Voltage',
+'mdstat' => 'Mdstat',
'meaning' => 'meaning',
'media' => 'Media',
'media information' => 'Media information',
@@ -2218,6 +2219,7 @@
'qos graphs' => 'Qos Graphs',
'qos warning' => 'The rule <strong>must</strong> be saved, otherwise it will be discarded!',
'qr code' => 'QR Code',
+'quality of service' => 'Quality of Service',
'quick control' => 'Quick Control',
'quick playlist' => 'Quick Playlist',
'ram' => 'RAM',
--
2.50.0
^ permalink raw reply [flat|nested] 3+ messages in thread