magento poll in 2 different languages

Posted on 2010-01-03
Last Modified: 2012-05-08

my magento site consists of 2 store views (lanuages): english and arabic. Now, i have a community poll on my site and I want the poll question to be the same on the arabic and english store views (but in different langauges).

I tried creating 2 different polls from admin>CMS>poll manager, one for the english store view and another for the arabic store view ( they are both the same question but in different languages). What magento is doing here, is treating both polls as totally different questions (although really they are the same question). For example, if someone votes for the first answer on the arabic store view, it only affects the values of the arabic poll (the english poll's values are not changed). What I want however, is that if somebody votes on either the english poll or the arabic poll, they are both updated (I want them to point to the same values).

how can I possibly achieve this?
Question by:ChefMaha
    LVL 19

    Expert Comment

    Magento language packs are concerned with translating magento text content, not user content. You could give the inline translater a try. Disable cache for translation (system>cache management>cache control). Then enable inline translation in configuration>developer>translate inline.

    You can then navigate around the front-end and click on any text with a red-dotted border to translate manually.

    Author Comment

    thanks for the suggestion.

    I have tried that. but seems like the only text that is translatable is the title and button text of the poll (there is no red-dotted border around the poll question and answers)

    What else can I try ?
    LVL 19

    Expert Comment

    The only other way is to add the strings to be translated to the language files and use template overrides for the poll output. The exact files to add strings to and the call to the translator method in the template files I don't know. I do know it's cumbersome and not worth the time it takes if you do a lot of polls.

    Author Comment

    But there must be a simpler way. I mean somebody at magento must have thought of this issue.

    if I can't solve this, then I will have to either have the poll question in arabic on both store views or in english on both store views, which does not make sense to the client! if I had coded the application from scratch (without using magento), then implementing this would have been trivial. So it will really make me look bad in front of my boss and client..

    what do u suggest?
    LVL 19

    Accepted Solution

    There is no easy way. The people at magento may have thought about this, but there's no 1-2-3 step way of doing it documented or discussed on the forum.

    Nothing about magento is simple. It's the most over-engineered software on the web.

    What do I suggest? Run the poll in English for a week, then translate it to Arabic for a week. That's the easiest solution.

    Author Closing Comment

    thanks for your help

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Creating and Managing Databases with phpMyAdmin in cPanel.
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now