mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Improved internalization, french translation.
This commit is contained in:
parent
d10758dcf2
commit
4360783bc2
60 changed files with 1755 additions and 10454 deletions
|
@ -25,6 +25,8 @@ var meshCentralSourceFiles = [
|
|||
"../views/error404-mobile.handlebars",
|
||||
"../views/login.handlebars",
|
||||
"../views/login-mobile.handlebars",
|
||||
"../views/terms.handlebars",
|
||||
"../views/terms-mobile.handlebars",
|
||||
"../views/message.handlebars",
|
||||
"../views/messenger.handlebars",
|
||||
"../public/player.htm"
|
||||
|
@ -206,7 +208,11 @@ function extract(langFile, sources) {
|
|||
}
|
||||
for (var i = 0; i < sources.length; i++) { extractFromHtml(sources[i]); }
|
||||
var count = 0, output = [];
|
||||
for (var i in sourceStrings) { count++; sourceStrings[i]['en'] = i; output.push(sourceStrings[i]); }
|
||||
for (var i in sourceStrings) {
|
||||
count++;
|
||||
sourceStrings[i]['en'] = i;
|
||||
if ((sourceStrings[i].xloc != null) && (sourceStrings[i].xloc.length > 0)) { output.push(sourceStrings[i]); } // Only save results that have a source location.
|
||||
}
|
||||
fs.writeFileSync(langFile, JSON.stringify({ 'strings': output }, null, ' '), { flag: 'w+' });
|
||||
console.log(format("{0} strings in output file.", count));
|
||||
process.exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue