Translating Polls in Joomla! using Joomfish



A lot of people who run multilingual sites on Joomla! have problem with translating polls.
The problem is related to the MySQL driver. If you switch to MySQLi “with i” it works right out of the box. This is the preferred driver for JoomFish. Alternatively you can change the modules/mod_poll/helper.php file a bit:
in getPollOptions function set

Code:
$query = ‘SELECT p.id, p.text’ .
            ’ FROM #__poll_data as p’ .
            ’ WHERE p.pollid = ‘ . (int) $id .
            ’ AND p.text <> “”‘ .
            ’ ORDER BY p.id’;

And it will be working with no problems at all :)

  • Share/Save/Bookmark

If you enjoyed this post, make sure you subscribe to my RSS feed!

3 Responses to “Translating Polls in Joomla! using Joomfish”
Umidjon Posted on May 6, 2010 at 10:36 am

Thanks. It’s work

Murid Posted on August 31, 2010 at 6:35 am

thanks alooooooooooooooooooooooooooot, it was a magic for me

Anthony Posted on August 31, 2010 at 12:41 pm

You are welcome :)

Post a Comment