Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

name of the file to tranlate apears ahead its translation

(no author)0e79f2fd7edf
diff --git a/source/de/anomic/data/translator.java b/source/de/anomic/data/translator.java
index e8b8f7c2b..15f2b36ce 100644
--- a/source/de/anomic/data/translator.java
+++ b/source/de/anomic/data/translator.java
@@ -204,9 +204,11 @@ public class translator {
relativePath="wrong path"; //not in translationLists
}
if(translationLists.containsKey(relativePath)){
- if( translateFile(sourceFiles[i], new File(destDir, sourceFiles[i].getName().replace('/', File.separatorChar)), (Hashtable)translationLists.get(relativePath))){
- serverLog.logInfo("TRANSLATOR", "Translated file: "+ relativePath);
- }else{
+ serverLog.logInfo("TRANSLATOR", "Translating file: "+ relativePath);
+ if(!translateFile(
+ sourceFiles[i]
+ , new File(destDir, sourceFiles[i].getName().replace('/', File.separatorChar))
+ , (Hashtable)translationLists.get(relativePath))){
serverLog.logSevere("TRANSLATOR", "File error while translating file "+relativePath);
}
}else{