display code afrer JsonParse
[mdictionary] / trunk / src / plugins / google / src / TranslationGoogle.cpp
index 9db6069..d8c33dc 100644 (file)
@@ -23,12 +23,14 @@ QString TranslationGoogle::dictionaryInfo() const {
 
 QString TranslationGoogle::toHtml() const {
     QString result("");
-    if(googlePlugin) {
-        result+="<dict> <info bookmark=\"false\">GOOGLE TRANSLATOR </info>";
-        result+=_trans +"</dict>";
-    }
-    qDebug()<<"test"+result;
-    return result;
+    if(!googlePlugin)
+        return result;
+    result="<dict> <info path=\"\" ";
+    if(isBookmark())
+        result+="bookmark=\"true\" >";
+    else
+        result+="bookmark=\"false\" >";
+    result+=_dictionaryInfo+ "</info>"+_trans +"</dict>";
 }
 
 void TranslationGoogle::setKey(QString) {