Moves the number in the code, not as a translation parameter.

There is sometimes problems with cache and late loading of the translations, this commit avoids showing translation key in the contactlist title, by moving the parameter into the code.
This commit is contained in:
damencho 2016-09-21 17:16:00 -05:00
parent e7cbacf9a2
commit cfeb03740c
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{ {
"contactlist": "On Call (__participants__)", "contactlist": "On Call",
"connectionsettings": "Connection Settings", "connectionsettings": "Connection Settings",
"poweredby": "powered by", "poweredby": "powered by",
"feedback": "Give us your feedback", "feedback": "Give us your feedback",

View File

@ -26,9 +26,8 @@ function updateNumberOfParticipants(delta) {
.parent()[numberOfContacts > 1 ? 'show' : 'hide'](); .parent()[numberOfContacts > 1 ? 'show' : 'hide']();
$("#contacts_container>div.title").text( $("#contacts_container>div.title").text(
APP.translation.translateString( APP.translation.translateString("contactlist")
"contactlist", {participants: numberOfContacts} + ' (' + numberOfContacts + ')');
));
} }
/** /**