name of the file to tranlate apears ahead its translation

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2868 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
(no author) 19 years ago
parent e74c629b00
commit 0e79f2fd7e

@ -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{

Loading…
Cancel
Save