Story #13: Add UserVoice support to Let's Help It
Closed this issue · 4 comments
dwildt commented
As a let's help it user
I can send feedback about site usage
So that let's help it team can take care of it
More information: http://uservoice.com/
rmagrin commented
Bug: uservoice should be in the same language as Let's Help It
dwildt commented
For this, develop two separated JavaScript files. One for Pt-Br and one for En-Us. Load the one needed according to the current locale. Would it help?
rmagrin commented
I did a quick investigation and we have three options (I'm not sure which is the best one):
- Create a JavaScript file for each language
- Create a global JavaScript variable to store the language
- Pass the language as a parameter to the JavaScript file (something like this http://loopj.com/2010/06/12/simple-way-to-extract-get-params-from-a-javascript-script-tag/)
rmagrin commented
CV suggested a 4th option...add a 'lang' attribute to the body tag and get it using jquery.
Bug fixed :-)