diff --git a/htroot/Language_p.java b/htroot/Language_p.java index 361205543..7d4b0319c 100644 --- a/htroot/Language_p.java +++ b/htroot/Language_p.java @@ -100,7 +100,8 @@ public class Language_p { File destDir = new File(env.getRootPath(), htRootPath + "/locale/"+lang.substring(0,lang.length()-4));//cut .lng File translationFile = new File(langPath, lang); - if(translator.translateFilesRecursive(sourceDir, destDir, translationFile, "html")){ + if(translator.translateFiles(sourceDir, destDir, translationFile, "html")){ + //if(translator.translateFilesRecursive(sourceDir, destDir, translationFile, "html")){ env.setConfig("htLocaleSelection", lang.substring(0,lang.length()-4)); try{ BufferedWriter bw = new BufferedWriter(new PrintWriter(new FileWriter(new File(destDir, "version")))); diff --git a/source/yacy.java b/source/yacy.java index 47e640d75..5b1477635 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -395,7 +395,8 @@ public final class yacy { if(! currentRev.equals(sb.getConfig("svnRevision", "")) ){ //is this another version?! File sourceDir = new File(sb.getConfig("htRootPath", "htroot")); File destDir = new File(sourceDir, "locale/"+lang); - if(translator.translateFilesRecursive(sourceDir, destDir, new File("DATA/LOCALE/"+lang+".lng"), "html")){ //translate it + if(translator.translateFiles(sourceDir, destDir, new File("DATA/LOCALE/"+lang+".lng"), "html")){ //translate it + //if(translator.translateFilesRecursive(sourceDir, destDir, new File("DATA/LOCALE/"+lang+".lng"), "html")){ //translate it //write the new Versionnumber BufferedWriter bw = new BufferedWriter(new PrintWriter(new FileWriter(new File(destDir, "version")))); bw.write(sb.getConfig("svnRevision", "Error getting Version"));