Hi guys!
I had a similar issue and spent the last couple of hours trying to figure out a solution. Fortunately I did 🙂
Here is my solution:
1. Open /wp-content/plugins/transposh-translation-filter-for-wordpress/transposh.php.
2. Somewhere around line 1920 you will see tp_logger($jsonarr);
3. Replace the if{}else{} after the tp_logger($jsonarr) with this code:
if (is_array($jsonarr)) {
if (is_array($jsonarr[0])) {
foreach ($jsonarr as $val) {
// need to drill
while (is_array($val)) {
$val = $val[0];
}
$result[] = $val;
// tp_logger(‘$here’);
}
} else {
foreach($jsonarr as $k=>$v){
$result[] = $v;
}
}
} else {
$result[] = $jsonarr;
}
For me, the issue seemed to be with parsing the response from Google.
Hope this works for you as well 🙂
-
This reply was modified 4 years, 1 month ago by metodi.