Skip to content

Commit 705d274

Browse files
author
fantu
committed
- Add other string to multilanguage system in monitor module
- Update italian language
1 parent 9864144 commit 705d274

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

TODO.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,8 @@ General tasks
8888

8989
- Add, extend or modify comments in PEAR syntax so that they can be read with phpdocumentor.
9090

91+
92+
Language editor
93+
--------------------------------------
94+
- Merge: remove the line how exists in language to merge but not in main (removed in main because not use or change for fix)
95+

interface/web/monitor/lib/lang/en.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ $wb['Monitoring'] = 'Monitoring';
2828
$wb['Server to Monitor'] = 'Server to Monitor';
2929
$wb['System-Information'] = 'System-Information';
3030
$wb['Logfiles'] = 'Logfiles';
31+
$wb['CPU info'] = 'CPU info';
32+
$wb['Status of services'] = 'Status of services';
33+
$wb['System Monitor'] = 'System Monitor';
3134

3235
?>

interface/web/monitor/lib/lang/it.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@ $wb['Monitoring'] = 'Monitoraggio';
2727
$wb['Server to Monitor'] = 'Server da monitorare';
2828
$wb['System-Information'] = 'Informazioni di sistema';
2929
$wb['Logfiles'] = 'File dei log';
30+
$wb['CPU info'] = 'Informazioni CPU';
31+
$wb['Status of services'] = 'Stato dei servizi';
32+
$wb['System Monitor'] = 'Monitoraggio del sistema';
3033
?>

interface/web/monitor/show_data.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,39 +52,39 @@
5252
case 'server_load':
5353
$template = 'templates/show_data.htm';
5454
$output .= showServerLoad();
55-
$title = 'Server Load (Server: ' . $_SESSION['monitor']['server_name'] . ')';
55+
$title = $app->lng("Server Load").' (Server: ' . $_SESSION['monitor']['server_name'] . ')';
5656
$description = '';
5757
break;
5858
case 'disk_usage':
5959
$template = 'templates/show_data.htm';
6060
$output .= showDiskUsage();
61-
$title = 'Disk usage (Server: ' . $_SESSION['monitor']['server_name'] . ')';
61+
$title = $app->lng("Disk usage").' (Server: ' . $_SESSION['monitor']['server_name'] . ')';
6262
$description = '';
6363
break;
6464
case 'mem_usage':
6565
$template = 'templates/show_data.htm';
6666
$output .= showMemUsage();
67-
$title = 'Memory usage (Server: ' . $_SESSION['monitor']['server_name'] . ')';
67+
$title = $app->lng("Memory usage").' (Server: ' . $_SESSION['monitor']['server_name'] . ')';
6868
$description = '';
6969
break;
7070
case 'cpu_info':
7171
$template = 'templates/show_data.htm';
7272
$output .= showCpuInfo();
73-
$title = 'CPU info (Server: ' . $_SESSION['monitor']['server_name'] . ')';
73+
$title = $app->lng("CPU info").' (Server: ' . $_SESSION['monitor']['server_name'] . ')';
7474
$description = '';
7575
break;
7676
case 'services':
7777
$template = 'templates/show_data.htm';
7878
$output .= showServices();
79-
$title = 'Status of services (Server: ' . $_SESSION['monitor']['server_name'] . ')';
79+
$title = $app->lng("Status of services").' (Server: ' . $_SESSION['monitor']['server_name'] . ')';
8080
$description = '';
8181
break;
8282
case 'overview':
8383
$template = 'templates/show_data.htm';
8484
$output .= showServerLoad();
8585
$output .= ' '. showDiskUsage();
8686
$output .= ' '.showServices();
87-
$title = 'System Monitor (Server: ' . $_SESSION['monitor']['server_name'] . ')';
87+
$title = $app->lng("System Monitor").' (Server: ' . $_SESSION['monitor']['server_name'] . ')';
8888
$description = '';
8989
break;
9090
default:

0 commit comments

Comments
 (0)