reduce a request to google
[mdictionary] / trunk / src / plugins / google / src / GooglePlugin.cpp
index 68275b0..0b8271e 100644 (file)
@@ -200,7 +200,7 @@ QList<Translation*> GooglePlugin::searchWordList(QString word, int ) {
 }
 
 QString GooglePlugin::jsonParse(QString result) {
-    //qDebug()<<result;
+    qDebug()<<result;
     int pos=0,pos2=0,index=0,size=0;
     QString returnLang;
     QString translation;
@@ -273,7 +273,7 @@ QString GooglePlugin::jsonParse(QString result) {
     result=translation;
     for(int i=0; i<words.size();i++) {
         result+="<br/>";
-        result+="<pos>"+partOfSpeach.at(i)+"</pos>:";
+        result+="<pos>"+partOfSpeach.at(i)+"</pos>: S";
         for(int j=0; j<words.at(i)->size();j++)
             result+=words.at(i)->at(j)+", ";
         result.remove(result.size()-2,2);