change html to xml in funcions names
[mdictionary] / src / plugins / google / TranslationGoogle.cpp
index a0f465f..2e54ea9 100644 (file)
@@ -43,31 +43,29 @@ TranslationGoogle::~TranslationGoogle(){
     ;
 }
 
-
 QString TranslationGoogle::key() const{
     return _key;
 }
 
-QString TranslationGoogle::dictionaryInfo() const {
-    return _dictionaryInfo;
-}
-
-QString TranslationGoogle::toHtml() const {
+QString TranslationGoogle::toXml() const {
     QString result("");
     if(!googlePlugin)
-        return result;
-    result="<dict> <info path=\"\" ";
+        return result;   
+    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 "";
 
 }