allow multiple #File: Sektions for one File in translations.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1534 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
allo 2006-02-04 18:08:01 +00:00
parent 1bb768178f
commit af2127f3ad
2 changed files with 8 additions and 2 deletions

View File

@ -13,6 +13,8 @@ version 0.43svn
* UPDATED: New Searchstyle
* FIXED: notifier.gif works even when only DATA is writable (allo)
* FIXED: Translations work with readonly htroot now. (allo)
* ADDED: Log for unused Translationstrings & Support for multiple
#File: Sektions for the same file (Allo)
version 0.40 (8/21/2005):
* The Server now provides the virtuel Header IS_ADMIN (Alexander Schier)

View File

@ -116,7 +116,7 @@ public class translator {
}else{ //Invalid line
}
}else if(line.startsWith("#File: ")){
if(forFile != ""){
if(!forFile.equals("")){
lists.put(forFile, translationList);
}
if(line.charAt(6)==' '){
@ -124,7 +124,11 @@ public class translator {
}else{
forFile=line.substring(6);
}
translationList=new Hashtable();
if(lists.containsKey(forFile)){
translationList=(Hashtable) lists.get(forFile);
}else{
translationList=new Hashtable();
}
}
}
lists.put(forFile, translationList);