CC-1960: Internationalize Airtime / Support translations

- channged all js strings with embedded variables to use sprintf
This commit is contained in:
denise 2012-11-20 17:42:26 -05:00
parent 9762511693
commit 10cd31fa56
5 changed files with 16 additions and 22 deletions

View file

@ -66,9 +66,9 @@ var AIRTIME = (function(AIRTIME) {
}
if (selected === 1) {
message = $.i18n._("Adding 1 Item.");
message = $.i18n._("Adding 1 Item");
} else {
message = $.i18n._("Adding ") + selected + $.i18n._(" Items.");
message = sprintf($.i18n._("Adding %s Items"), selected);
}
container = $('<div/>').attr('id',