else if(mode == 'g'){
result += "<key>" + key + "</key>";
result += QString::fromUtf8(read(it++, end));
+
+ /* delete "small" tag from translation*/
+ int indexOfSmall=result.indexOf("<small>");
+ while(indexOfSmall!=-1){
+ qDebug()<<"przed"<<result;
+ int indexOfEndSmall= result.indexOf("</small>");
+ if(indexOfEndSmall!=-1)
+ result.remove(indexOfSmall,indexOfEndSmall-indexOfSmall+8);
+ indexOfSmall=result.indexOf("<small>");
+ qDebug()<<"po"<<result;
+ }
}
else if(mode == 't'){
result += "<key>" + key + "</key>";
else if(mode == 'r'){
result += "<key>" + key + "</key>";
result += QString::fromUtf8(read(it++, end));
- }
+ }
// Dont know whether mDictionary would ever handle binary stardict format
// to be honest dont see any kind of adventages (can't find any binary dict)
} else
result += read(it++, end);
} */
+
+ qDebug()<<"wynik "<<result;
return result;
}
((StarDictDialog*)plugin->dictDialog())->
setLastDialogParent(_dictDialog->lastDialogParent());
-
-
if(settings && plugin->setSettings(settings)) {
-
disconnect(plugin, SIGNAL(notify(Notify::NotifyType,QString)),
this, SIGNAL(notify(Notify::NotifyType,QString)));
plugin->getDictionaryInfo();