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

@ -8,13 +8,13 @@ function getContent() {
var msg = "";
// See file airtime_mvc/application/views/helpers/VersionNotify.php for more info
if(isUpToDate()) {
msg = "You are running the latest version";
msg = $.i18n._("You are running the latest version");
} else if (diff < 20) {
msg = "New version available: " + link;
msg = $.i18n._("New version available: ") + link;
} else if (diff < 30) {
msg = "This version will soon be obsolete.<br/>Please upgrade to " + link;
msg = $.i18n._("This version will soon be obsolete.")+"<br/>"+$.i18n._("Please upgrade to ") + link;
} else {
msg = "This version is no longer supported.<br/>Please upgrade to " + link;
msg = $.i18n._("This version is no longer supported.")+"<br/>"+$.i18n._("Please upgrade to ") + link;
}
return msg;