-
-
- // if we are translating, write the translations strings at the top
- // of the file..
- /*
- if (this.translateJSON) {
-
-
- print("MERGING LANGUAGE");
- var out = "if (typeof(_T) == 'undefined') { _T={};}\n";
- if (this.target) {
- File.write(this.target, out);
- } else {
- this.out += out;
- }
-
- File.write(this.translateJSON, "");
- for(var i=0; i < this.files.length; i++) {
- var file = this.files[i];
- var transfile= this.tmpDir + '/' +file.replace(/\//g, '.') +'.lang.trans';
- var transmd5 = this.tmpDir + '/' +file.replace(/\//g, '.') +'.lang';
- if (File.exists(transmd5)) {
- var str = File.read(transmd5);
- if (str.length) {
- if (this.target) {
- File.append(this.target, str + "\n");
- } else {
- this.out += str + "\n";
- }
-
- }
- if (this.cleanup) {
- File.remove(transmd5);
- }
- }
- if (File.exists(transfile)) {
- var str = File.read(transfile);
- if (str.length) {
- File.append(this.translateJSON, str);
- }
- if (this.cleanup) {
- File.remove(transfile);
- }
- }
-
-
- }
- }
- */