[3/4] 40-services.menu: Use lang files for caption and title

Message ID 20250702120119.3315710-3-adolf.belka@ipfire.org
State New
Headers
Series [1/4] langs: Addition of Chinese language files - from ipfire github pull request |

Commit Message

Adolf Belka July 2, 2025, 12:01 p.m. UTC
  - 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>
---
 config/menu/40-services.menu | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
  

Patch

diff --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,
 				};