@@ -227,24 +226,24 @@ function main () {
tableColumnOrder = numberArrayFromString(data);
//initialize the table headers in the correct order
- var headersDefaultOrder = [ '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- ''
+ var headersDefaultOrder = [ '= lang('Device_TableHead_Name');?>',
+ '= lang('Device_TableHead_Owner');?>',
+ '= lang('Device_TableHead_Type');?>',
+ '= lang('Device_TableHead_Icon');?>',
+ '= lang('Device_TableHead_Favorite');?>',
+ '= lang('Device_TableHead_Group');?>',
+ '= lang('Device_TableHead_FirstSession');?>',
+ '= lang('Device_TableHead_LastSession');?>',
+ '= lang('Device_TableHead_LastIP');?>',
+ '= lang('Device_TableHead_MAC');?>',
+ '= lang('Device_TableHead_Status');?>',
+ '= lang('Device_TableHead_MAC_full');?>',
+ '= lang('Device_TableHead_LastIPOrder');?>',
+ '= lang('Device_TableHead_Rowid');?>',
+ '= lang('Device_TableHead_Parent_MAC');?>',
+ '= lang('Device_TableHead_Connected_Devices');?>',
+ '= lang('Device_TableHead_Location');?>',
+ '= lang('Device_TableHead_Vendor');?>'
];
html = '';
@@ -328,7 +327,7 @@ function initializeDatatable () {
$('#tableDevices').DataTable({
'paging' : true,
'lengthChange' : true,
- 'lengthMenu' : [[10, 25, 50, 100, 500, -1], [10, 25, 50, 100, 500, '']],
+ 'lengthMenu' : [[10, 25, 50, 100, 500, -1], [10, 25, 50, 100, 500, '= lang('Device_Tablelenght_all');?>']],
'searching' : true,
'ordering' : true,
@@ -436,13 +435,13 @@ function initializeDatatable () {
'language' : {
processing: '
',
emptyTable: 'No data',
- "lengthMenu": "",
- "search": ": ",
+ "lengthMenu": "= lang('Device_Tablelenght');?>",
+ "search": "= lang('Device_Searchbox');?>: ",
"paginate": {
- "next": "",
- "previous": ""
+ "next": "= lang('Device_Table_nav_next');?>",
+ "previous": "= lang('Device_Table_nav_prev');?>"
},
- "info": "",
+ "info": "= lang('Device_Table_info');?>",
}
});
@@ -524,13 +523,13 @@ function getDevicesList (status) {
// Define color & title for the status selected
switch (deviceStatus) {
- case 'all': tableTitle = ''; color = 'aqua'; break;
- case 'connected': tableTitle = ''; color = 'green'; break;
- case 'favorites': tableTitle = ''; color = 'yellow'; break;
- case 'new': tableTitle = ''; color = 'yellow'; break;
- case 'down': tableTitle = ''; color = 'red'; break;
- case 'archived': tableTitle = ''; color = 'gray'; break;
- default: tableTitle = ''; color = 'gray'; break;
+ case 'all': tableTitle = '= lang('Device_Shortcut_AllDevices');?>'; color = 'aqua'; break;
+ case 'connected': tableTitle = '= lang('Device_Shortcut_Connected');?>'; color = 'green'; break;
+ case 'favorites': tableTitle = '= lang('Device_Shortcut_Favorites');?>'; color = 'yellow'; break;
+ case 'new': tableTitle = '= lang('Device_Shortcut_NewDevices');?>'; color = 'yellow'; break;
+ case 'down': tableTitle = '= lang('Device_Shortcut_DownAlerts');?>'; color = 'red'; break;
+ case 'archived': tableTitle = '= lang('Device_Shortcut_Archived');?>'; color = 'gray'; break;
+ default: tableTitle = '= lang('Device_Shortcut_Devices');?>'; color = 'gray'; break;
}
// Set title and color
diff --git a/front/events.php b/front/events.php
index 5ca34d41..44eba3a3 100755
--- a/front/events.php
+++ b/front/events.php
@@ -17,17 +17,17 @@
@@ -42,7 +42,7 @@
--
-
+
= lang('Events_Shortcut_AllEvents');?>
@@ -54,7 +54,7 @@
--
-
+
= lang('Events_Shortcut_Sessions');?>
@@ -66,7 +66,7 @@
--
-
+
= lang('Events_Shortcut_MissSessions');?>
@@ -78,7 +78,7 @@
--
-
+
= lang('Events_Shortcut_VoidSessions');?>
@@ -90,7 +90,7 @@
--
-
+
= lang('Events_Shortcut_NewDevices');?>
@@ -102,7 +102,7 @@
--
-
+
= lang('Events_Shortcut_DownAlerts');?>
@@ -127,18 +127,18 @@
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
+ = lang('Events_TableHead_Order');?> |
+ = lang('Events_TableHead_Device');?> |
+ = lang('Events_TableHead_Owner');?> |
+ = lang('Events_TableHead_Date');?> |
+ = lang('Events_TableHead_EventType');?> |
+ = lang('Events_TableHead_Connection');?> |
+ = lang('Events_TableHead_Disconnection');?> |
+ = lang('Events_TableHead_Duration');?> |
+ = lang('Events_TableHead_DurationOrder');?> |
+ = lang('Events_TableHead_IP');?> |
+ = lang('Events_TableHead_IPOrder');?> |
+ = lang('Events_TableHead_AdditionalInfo');?> |
@@ -253,13 +253,13 @@ function initializeDatatable () {
'language' : {
processing: '
',
emptyTable: 'No data',
- "lengthMenu": "",
- "search": ": ",
+ "lengthMenu": "= lang('Events_Tablelenght');?>",
+ "search": "= lang('Events_Searchbox');?>: ",
"paginate": {
- "next": "",
- "previous": ""
+ "next": "= lang('Events_Table_nav_next');?>",
+ "previous": "= lang('Events_Table_nav_prev');?>"
},
- "info": "",
+ "info": "= lang('Events_Table_info');?>",
}
});
@@ -311,13 +311,13 @@ function getEvents (p_eventsType) {
// Define color & title for the status selected
switch (eventsType) {
- case 'all': tableTitle = ''; color = 'aqua'; sesionCols = false; break;
- case 'sessions': tableTitle = ''; color = 'green'; sesionCols = true; break;
- case 'missing': tableTitle = ''; color = 'yellow'; sesionCols = true; break;
- case 'voided': tableTitle = ''; color = 'yellow'; sesionCols = false; break;
- case 'new': tableTitle = ''; color = 'yellow'; sesionCols = false; break;
- case 'down': tableTitle = ''; color = 'red'; sesionCols = false; break;
- default: tableTitle = ''; boxClass = ''; sesionCols = false; break;
+ case 'all': tableTitle = '= lang('Events_Shortcut_AllEvents');?>'; color = 'aqua'; sesionCols = false; break;
+ case 'sessions': tableTitle = '= lang('Events_Shortcut_Sessions');?>'; color = 'green'; sesionCols = true; break;
+ case 'missing': tableTitle = '= lang('Events_Shortcut_MissSessions');?>'; color = 'yellow'; sesionCols = true; break;
+ case 'voided': tableTitle = '= lang('Events_Shortcut_VoidSessions');?>'; color = 'yellow'; sesionCols = false; break;
+ case 'new': tableTitle = '= lang('Events_Shortcut_NewDevices');?>'; color = 'yellow'; sesionCols = false; break;
+ case 'down': tableTitle = '= lang('Events_Shortcut_DownAlerts');?>'; color = 'red'; sesionCols = false; break;
+ default: tableTitle = '= lang('Events_Shortcut_Events');?>'; boxClass = ''; sesionCols = false; break;
}
// Set title and color
diff --git a/front/help_faq.php b/front/help_faq.php
index 73c464d6..7b98cd9a 100755
--- a/front/help_faq.php
+++ b/front/help_faq.php
@@ -8,13 +8,13 @@
-
+ = lang('HelpFAQ_Cat_General');?>
@@ -22,16 +22,16 @@
-
+ = lang('HelpFAQ_Cat_General_100_head');?>
-
+
= lang('HelpFAQ_Cat_General_100_text_a');?>
-
+ = lang('HelpFAQ_Cat_General_100_text_b');?>
-
+ = lang('HelpFAQ_Cat_General_100_text_c');?>
@@ -42,12 +42,12 @@
-
+ = lang('HelpFAQ_Cat_General_101_head');?>
-
+ = lang('HelpFAQ_Cat_General_101_text');?>
@@ -55,12 +55,12 @@
-
+ = lang('HelpFAQ_Cat_General_102_head');?>
-
+ = lang('HelpFAQ_Cat_General_102_text');?>
@@ -68,12 +68,12 @@
-
+ = lang('HelpFAQ_Cat_General_102docker_head');?>
-
+ = lang('HelpFAQ_Cat_General_102docker_text');?>
@@ -81,48 +81,48 @@
-
+ = lang('HelpFAQ_Cat_General_103_head');?>
-
+ = lang('HelpFAQ_Cat_General_103_text');?>