1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

French re-translation.

This commit is contained in:
Ylian Saint-Hilaire 2020-11-09 17:17:09 -08:00
parent ed8ef50f1b
commit cd493c9f96
12 changed files with 1790 additions and 1749 deletions

View file

@ -556,7 +556,8 @@ function translate(lang, langFile, sources, createSubDir) {
// Load the language file
var langFileData = null;
try { langFileData = JSON.parse(fs.readFileSync(langFile)); } catch (ex) { }
try { langFileData = JSON.parse(fs.readFileSync(langFile)); } catch (ex) { console.log(ex); }
console.log('langFileData', langFileData);
if ((langFileData == null) || (langFileData.strings == null)) { log("Invalid language file."); process.exit(); return; }
langs = {};