At line 27 the table names need the "{}" to be compliant with db_prefix:

-    $sql ="SELECT s.source FROM locales_target t JOIN locales_source s ON t.lid = s.lid WHERE translation ='%s' ";
+    $sql ="SELECT s.source FROM {locales_target} t JOIN {locales_source} s ON t.lid = s.lid WHERE translation ='%s' ";

PS: great module, thanks for sharing!

Comments

attila_fabian’s picture

Version: 5.x-1.2-1 » 6.x-1.2
Priority: Minor » Normal

The db_prefix problem is still causing several sql errors to show up.
The patch solves this problem on the 6.x version as well.