CC-1960: Internationalize Airtime / Support translations
- channged all js strings with embedded variables to use sprintf
This commit is contained in:
parent
9762511693
commit
10cd31fa56
5 changed files with 16 additions and 22 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue