change html to xml in funcions names
[mdictionary] / src / plugins / google / TranslationGoogle.cpp
index 1167220..2e54ea9 100644 (file)
@@ -47,22 +47,25 @@ QString TranslationGoogle::key() const{
     return _key;
 }
 
-QString TranslationGoogle::toHtml() const {
+QString TranslationGoogle::toXml() const {
     QString result("");
     if(!googlePlugin)
         return result;   
-    result="<dict> <info path=\"/usr/share/mdictionary/drawing.png\" ";
+    result="<dict> <info path=\"/usr/share/mdictionary/google.png\" ";
     if(isBookmark())
         result+="bookmark=\"true\" >";
     else
         result+="bookmark=\"false\" >";
 
+    qDebug()<<"trans: "<<_trans;
+
     if(_trans!="")
         return result+=_dictionaryInfo+ "</info>"+_trans +"</dict>";
 
     QList<Translation*> translations=googlePlugin->searchWordList(_key);
+    qDebug()<<"test: "<<translations.size();
     if(translations.size()>0 && translations.at(0))
-        return translations.at(0)->toHtml();
+        return translations.at(0)->toXml();
     return "";
 
 }