4

I've installed the poll module in Drupal 7 and I want to have a multilingual poll, so that the choices could be in differents languages and sum the votes of the choices. I've found these posts:

Multi language Poll output

Poll in two languages

The problem is that I'm not able to develop the solution because I don't know where I have to apply the patch since i18n module in drupal 7 doesn't include the i18n_poll subfolder.

Thanks in advance

1

@chabea you are right in asking the question, the answers given in the links above do not explain how to apply the patch on D7. Here is what you need to do:

  1. Under the i18n module created a i18n_poll folder.
  2. Copy the patch to the above folder.
  3. Run the command patch < 1173130_i18n_poll_module_5.patch. This creats two files i18n_poll.info and i18n_poll.module which are all you need to get the poll aggregate module in D7. (I'm assuming you are using *nix operating system and have already enabled the core poll module) You can checkout how to apply a patch in Drupal.
  4. Then go to the poll content type edit page Structure > Content Types > Poll > Edit. In the publishing options - multilingual support section check the Enable, with translation option. enter image description here
  5. Now go to the poll content type create page Content > Add Content > Poll and create a new poll.
  6. On the newly create poll page there is a Translate link. enter image description here
  7. The translation page provides a list of language that the poll can be translated to so click on the language of your choice to start translation. enter image description here

The translation workflow is quite consistent to other modules/content types. Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.