?
Solved

magento poll in 2 different languages

Posted on 2010-01-03
6
Medium Priority
?
702 Views
Last Modified: 2012-05-08
Hi,

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?
0
Comment
Question by:ChefMaha
  • 3
  • 3
6 Comments
 
LVL 19

Expert Comment

by:v2Media
ID: 26168223
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.
0
 

Author Comment

by:ChefMaha
ID: 26168882
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 ?
0
 
LVL 19

Expert Comment

by:v2Media
ID: 26168991
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.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:ChefMaha
ID: 26169065
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?
0
 
LVL 19

Accepted Solution

by:
v2Media earned 750 total points
ID: 26169820
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.
0
 

Author Closing Comment

by:ChefMaha
ID: 31672109
thanks for your help
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The Internet has made sending and receiving information online a breeze. But there is also the threat of unauthorized viewing, data tampering, and phoney messages. Surprisingly, a lot of business owners do not fully understand how to use security t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

621 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