CC-1960: Internationalize Airtime / Support translations

-added i18n jquery library
-created a Locale controller that returns a js dictionary of translations needed in js
-added jquery i18n wrapper function to all strings in js
This commit is contained in:
denise 2012-11-20 11:16:10 -05:00
parent b801235c99
commit 57fdab0ddf
25 changed files with 472 additions and 209 deletions

View file

@ -16,7 +16,7 @@ $(document).ready(function(){
buttons: [
{
id: "remind_me",
text: "Remind me in 1 week",
text: $.i18n._("Remind me in 1 week"),
"class": "btn",
click: function() {
var url = baseUrl+'/Usersettings/remindme';
@ -29,7 +29,7 @@ $(document).ready(function(){
},
{
id: "remind_never",
text: "Remind me never",
text: $.i18n._("Remind me never"),
"class": "btn",
click: function() {
var url =baseUrl+'/Usersettings/remindme-never';
@ -42,7 +42,7 @@ $(document).ready(function(){
},
{
id: "help_airtime",
text: "Yes, help Airtime",
text: $.i18n._("Yes, help Airtime"),
"class": "btn",
click: function() {
$("#register-form").submit();
@ -129,7 +129,7 @@ $(document).ready(function(){
var ul, li;
ul = logoEl.find('.errors');
li = $("<li/>").append("Image must be one of jpg, jpeg, png, or gif");
li = $("<li/>").append($.i18n._("Image must be one of jpg, jpeg, png, or gif"));
//errors ul has already been created.
if (ul.length > 0) {