change html to xml in funcions names
[mdictionary] / src / plugins / google / TranslationGoogle.cpp
index 52c0778..2e54ea9 100644 (file)
@@ -47,7 +47,7 @@ QString TranslationGoogle::key() const{
     return _key;
 }
 
-QString TranslationGoogle::toHtml() const {
+QString TranslationGoogle::toXml() const {
     QString result("");
     if(!googlePlugin)
         return result;   
@@ -57,12 +57,15 @@ QString TranslationGoogle::toHtml() const {
     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 "";
 
 }