thoughtworks/letshelp.it

Story #13: Add UserVoice support to Let's Help It

Closed this issue · 4 comments

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/

Bug: uservoice should be in the same language as Let's Help It

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?

I did a quick investigation and we have three options (I'm not sure which is the best one):

  1. Create a JavaScript file for each language
  2. Create a global JavaScript variable to store the language
  3. 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/)

CV suggested a 4th option...add a 'lang' attribute to the body tag and get it using jquery.

Bug fixed :-)