Skip to content

Commit

Permalink
not recursive, but it should work on Windows.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@516 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Aug 11, 2005
1 parent c796a38 commit a223faa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion htroot/Language_p.java
Expand Up @@ -100,7 +100,8 @@ private static boolean changeLang(serverSwitch env, String langPath, String lang
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"))));
Expand Down
3 changes: 2 additions & 1 deletion source/yacy.java
Expand Up @@ -395,7 +395,8 @@ private static void startup(String homePath) {
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"));
Expand Down

0 comments on commit a223faa

Please sign in to comment.