From 81d010a27bd0046165d2658fdd2210df07a19895 Mon Sep 17 00:00:00 2001 From: DewGew Date: Tue, 13 Aug 2019 08:05:24 +0000 Subject: [PATCH 1/3] Added "No Sound" en_CA.json --- languages/en_CA.json | 1 + 1 file changed, 1 insertion(+) diff --git a/languages/en_CA.json b/languages/en_CA.json index 140f9188..19494eb6 100644 --- a/languages/en_CA.json +++ b/languages/en_CA.json @@ -939,6 +939,7 @@ "Copy Recording Settings":"Copy Recording Settings", "Copy Detector Settings":"Copy Detector Settings", "Monitors to Copy to":"Monitors to Copy to", + "No Sound": "No Sound", "Notification Sound":"Notification Sound", "Alert Sound":"Alert Sound", "Alert Sound Delay":"Alert Sound Delay", From 1a06e8202441e8a0ec08f96afd28951aab4c6f5f Mon Sep 17 00:00:00 2001 From: DewGew Date: Tue, 13 Aug 2019 08:07:28 +0000 Subject: [PATCH 2/3] Update camera.js --- camera.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camera.js b/camera.js index b30ba610..dd9ab65f 100644 --- a/camera.js +++ b/camera.js @@ -21,10 +21,10 @@ loadLib('extenders')(s) var config = loadLib('config')(s) //basic functions loadLib('basic')(s,config) -//working directories : videos, streams, fileBin.. -loadLib('folders')(s,config) //language loader var lang = loadLib('language')(s,config) +//working directories : videos, streams, fileBin.. +loadLib('folders')(s,config,lang) //code test module loadLib('codeTester')(s,config,lang) //get version From 69e9dd0bb82be4a0dec7147b19cc4060794e5621 Mon Sep 17 00:00:00 2001 From: DewGew Date: Tue, 13 Aug 2019 08:08:35 +0000 Subject: [PATCH 3/3] Added language vars to folders.js --- libs/folders.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/folders.js b/libs/folders.js index cf2bc037..e0c9fc91 100644 --- a/libs/folders.js +++ b/libs/folders.js @@ -1,5 +1,5 @@ var fs = require('fs'); -module.exports = function(s,config){ +module.exports = function(s,config,lang){ //directories s.group = {} if(!config.windowsTempDir&&s.isWin===true){config.windowsTempDir='C:/Windows/Temp'} @@ -41,7 +41,7 @@ module.exports = function(s,config){ } //additional storage areas s.listOfStorage = [{ - name: "Main", + name: lang['Default'], value: "" }] s.dir.addStorage.forEach(function(v,n){ @@ -57,7 +57,7 @@ module.exports = function(s,config){ //get audio files list s.listOfAudioFiles = [ { - name:"No Sound", + name:lang['No Sound'], value:"" } ] @@ -70,7 +70,7 @@ module.exports = function(s,config){ //get themes list s.listOfThemes = [ { - name:"Default", + name:lang['Default'], value:"" } ]