change in interpret function in starDict Plugin
[mdictionary] / src / plugins / stardict / TranslationStarDict.cpp
index 65c60a0..8ffd51e 100644 (file)
@@ -77,16 +77,9 @@ QString TranslationStarDict::toXml() const {
                 result+= _dictionaryInfo +"</info>";
 
             /*przeformatowanie zwracanego stringu na oczekiwany format*/
-            QString text =starDictPlugin->search(_key, offsets.at(i), lengths.at(i));
-            text.replace("</k>","</key><t>");
-            text.replace("<k>","</t><key>");
-            int pos=text.indexOf("</t>");
-            if(pos!=-1)
-                text.remove(pos,4);
-
-            result+= text;
-            result+= "</t> </dict>";
-            qDebug()<<"trans"<<result;
+            result+=starDictPlugin->search(_key, offsets.at(i), lengths.at(i));
+            result+= "</dict>";
+            //qDebug()<<"trans"<<result;
    }
    return result;
 }