codestyle fix
This commit is contained in:
@@ -38,15 +38,12 @@ var PO = require('pofile');
|
||||
var isWin = /^win/.test(os.platform());
|
||||
|
||||
var espoPath = path.dirname(fs.realpathSync(__filename)) + '';
|
||||
|
||||
var resLang = process.argv[2] || 'lang_LANG';
|
||||
|
||||
var poPath = process.argv[3] || espoPath + '/build/' + 'espocrm-' + resLang +'.po';
|
||||
|
||||
|
||||
var deleteFolderRecursive = function (path) {
|
||||
var files = [];
|
||||
if( fs.existsSync(path) ) {
|
||||
if (fs.existsSync(path)) {
|
||||
files = fs.readdirSync(path);
|
||||
files.forEach(function(file,index){
|
||||
var curPath = path + "/" + file;
|
||||
@@ -60,7 +57,6 @@ var deleteFolderRecursive = function (path) {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
function Lang (poPath, espoPath) {
|
||||
this.poPath = poPath;
|
||||
|
||||
@@ -128,7 +124,6 @@ Lang.prototype.run = function () {
|
||||
translationData[file].push(o);
|
||||
});
|
||||
|
||||
|
||||
dirs.forEach(function (path) {
|
||||
var resDirPath = this.dirNames[path];
|
||||
var resPath = this.currentPath + 'build/' + resLang + '/' + resDirPath;
|
||||
@@ -247,9 +242,7 @@ Lang.prototype.run = function () {
|
||||
}, this);
|
||||
|
||||
}.bind(this))
|
||||
|
||||
|
||||
};
|
||||
|
||||
var lang = new Lang(poPath, espoPath);
|
||||
lang.run();
|
||||
lang.run();
|
||||
|
||||
Reference in New Issue
Block a user