From aab5ffecbae90011d715cdc3872232f9b0b4b667 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Sat, 22 Oct 2016 22:13:16 +0300 Subject: lpgen.js: remove statusplugins-related logic --- tools/lpgen/lpgen.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'tools/lpgen/lpgen.js') diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 2300ecd360..40aec13a41 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -224,8 +224,6 @@ function GeneratePluginTranslate (pluginpath,langpackfilepath,vcxprojfile) { FindFiles(pluginpath,"\\.rc$",resourcefiles); //find all source files and list files in array FindFiles(pluginpath,"\\.h$|\\.cpp$|\\.c$|\\.pas$|\\.dpr$|\\.inc$",sourcefiles); - //Check for "Status plugins". They have few common resource files to translate, which located one layer upper, than plugin folder. - CheckStatusPlugins(plugin); //Parse files "resourcefiles", put result into "foundstrings" using "ParseRCFile" function ParseFiles(resourcefiles,foundstrings,ParseRCFile); //Parse files "sourcefiles", put result into "foundstrings" using "ParseSourceFile" function @@ -372,15 +370,6 @@ function GetMUUID (folder,array) { if (log) WScript.Echo(muuid); }; -//For status plugins, namely KeepStatus, StartupStatus and AdvancedAutoAway we need add for all of them common source files to parsing array, because they exist one layer upper of pluginfolder -function CheckStatusPlugins (plug) { -if (plug.match(/(KeepStatus|StartupStatus|AdvancedAutoAway)/)) { - resourcefiles.push(trunk+"\\Plugins\\StatusPlugins\\resource.rc"); - sourcefiles.push(trunk+"\\Plugins\\StatusPlugins\\commonstatus.cpp"); - sourcefiles.push(trunk+"\\Plugins\\StatusPlugins\\confirmdialog.cpp"); - } -} - //read text file, removing all commented text for further processing function ReadFile (file) { //If file zero size, return; -- cgit v1.2.3