diff --git a/languages/en_CA.json b/languages/en_CA.json index ee2ffc6b..7c426886 100644 --- a/languages/en_CA.json +++ b/languages/en_CA.json @@ -957,5 +957,7 @@ "Alert Sound Delay":"Alert Sound Delay", "powerVideoEventLimit":"You have set a high event limit. Are you sure you want to make this request?", "There are no monitors that you can view with this account.":"There are no monitors that you can view with this account.", + "Delete Monitors and Files": "Delete Monitors and Files", + "Select atleast one monitor to delete": "Select atleast one monitor to delete.", "Use Built-In":"Use Built-In" } diff --git a/web/libs/js/dash2.multimon.js b/web/libs/js/dash2.multimon.js index 669d4fab..92a9fcd5 100644 --- a/web/libs/js/dash2.multimon.js +++ b/web/libs/js/dash2.multimon.js @@ -17,7 +17,7 @@ $.multimon.e.find('.import_config').click(function(){ var e={};e.e=$(this);e.mid=e.e.parents('[mid]').attr('mid'); $.confirm.e.modal('show'); $.confirm.title.text(lang['Import Monitor Configuration']) - e.html=lang.ImportMultiMonitorConfigurationText+'
'; + e.html=lang.ImportMultiMonitorConfigurationText+'
'; $.confirm.body.html(e.html) $.confirm.e.find('.upload').change(function(e){ var files = e.target.files; // FileList object @@ -28,7 +28,7 @@ $.multimon.e.find('.import_config').click(function(){ } reader.readAsText(f); }); - $.confirm.click({title:'Import',class:'btn-primary'},function(){ + $.confirm.click({title:lang['Import'],class:'btn-primary'},function(){ // setTimeout(function(){ // $.confirm.e.modal('show'); // },1000) @@ -116,7 +116,7 @@ $.multimon.getSelectedMonitors = function(unclean){ $.multimon.e.find('.delete').click(function(){ var arr=$.multimon.getSelectedMonitors(true); if(arr.length===0){ - $.ccio.init('note',{title:'No Monitors Selected',text:'Select atleast one monitor to delete.',type:'error'}); + $.ccio.init('note',{title:lang['No Monitors Selected'],text:lang['Select atleast one monitor to delete'],type:'error'}); return } $.confirm.e.modal('show'); @@ -125,7 +125,7 @@ $.multimon.e.find('.delete').click(function(){ $.confirm.body.html(e.html) $.confirm.click([ { - title:'Delete Monitors', + title:lang['Delete']+' '+lang['Monitors'], class:'btn-danger', callback:function(){ $.each(arr,function(n,v){ @@ -136,7 +136,7 @@ $.multimon.e.find('.delete').click(function(){ } }, { - title:'Delete Monitors and Files', + title:lang['Delete Monitors and Files'], class:'btn-danger', callback:function(){ $.each(arr,function(n,v){ @@ -152,7 +152,7 @@ $.multimon.e.find('.delete').click(function(){ // var arr=$.multimon.getSelectedMonitors(); // var arrObject={} // if(arr.length===0){ -// $.ccio.init('note',{title:'No Monitors Selected',text:'Select atleast one monitor to delete.',type:'error'}); +// $.ccio.init('note',{title:lang['No Monitors Selected'],text:lang['Select atleast one monitor to delete'],type:'error'}); // return // } // $.multimonedit.selectedList = arr; @@ -162,7 +162,7 @@ $.multimon.e.find('.save_config').click(function(){ var e={};e.e=$(this); var arr=$.multimon.getSelectedMonitors(); if(arr.length===0){ - $.ccio.init('note',{title:'No Monitors Selected',text:'Select atleast one monitor to delete.',type:'error'}); + $.ccio.init('note',{title:lang['No Monitors Selected'],text:lang['Select atleast one monitor to delete'],type:'error'}); return } e.dataStr = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(arr)); diff --git a/web/pages/blocks/multimon.ejs b/web/pages/blocks/multimon.ejs index af9a8ce2..fa380b30 100644 --- a/web/pages/blocks/multimon.ejs +++ b/web/pages/blocks/multimon.ejs @@ -13,10 +13,10 @@
+   <%-lang['Name']%> <%-lang['Mode']%> -   -   + <%-lang['Stream']%>   @@ -25,7 +25,7 @@