Title: Multilanguage Wp-polls
Last modified: August 22, 2016

---

# Multilanguage Wp-polls

 *  Resolved [elkiloprieto](https://wordpress.org/support/users/elkiloprieto/)
 * (@elkiloprieto)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/resolved-multilanguage-wp-polls/)
 * Hi everyone I would like to share something that many of us wanted to do.
 * I use this two great plugins,** wp-poll** and **qtranslate/mqtranslate**, so 
   I wanted to use the polls in several languages… after some research in the two
   plugins I tried this solution:
    - When you create the poll you must fill the fields question and answers using
      the qtranslate way for multilanguage string like (in this case spanish and
      english):
       [:es]texto español[:en]english text
    -  Coding: search in wp-polls.php the lines which contains
       `$poll_answer_text
      = stripslashes($poll_answer->polla_answers);`
    - and replace by
    - `$poll_answer_text=qtrans_use(qtrans_getLanguage(), $poll_answer->polla_answers,
      false);`
    - Also find the lines
    - `$poll_question_text = stripslashes($poll_question->pollq_question);`
    - and replace by
    - `$poll_question_text=qtrans_use(qtrans_getLanguage(), $poll_question->pollq_question,
      false);`
    - Dig in the file and replace all occurrences of both.
 * **A little qtranslate guide:**
    `qtrans_getLanguage()` gives the current language`
   qtrans_use()` gives the part of the string in the specified language
 * Im sure the wp-polls author can improve this but at least for me it works.
    [https://wordpress.org/plugins/wp-polls/](https://wordpress.org/plugins/wp-polls/)

The topic ‘Multilanguage Wp-polls’ is closed to new replies.

 * ![](https://ps.w.org/wp-polls/assets/icon.svg?rev=977996)
 * [WP-Polls](https://wordpress.org/plugins/wp-polls/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-polls/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-polls/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-polls/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-polls/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-polls/reviews/)

## Tags

 * [idiomas](https://wordpress.org/support/topic-tag/idiomas/)

 * 0 replies
 * 1 participant
 * Last reply from: [elkiloprieto](https://wordpress.org/support/users/elkiloprieto/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/resolved-multilanguage-wp-polls/)
 * Status: resolved