From cfeb03740ca0a6bde62466c24c102da36795485f Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 21 Sep 2016 17:16:00 -0500 Subject: [PATCH] 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. --- lang/main.json | 2 +- modules/UI/side_pannels/contactlist/ContactList.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lang/main.json b/lang/main.json index 63cb4181b..ee24fadb1 100644 --- a/lang/main.json +++ b/lang/main.json @@ -1,5 +1,5 @@ { - "contactlist": "On Call (__participants__)", + "contactlist": "On Call", "connectionsettings": "Connection Settings", "poweredby": "powered by", "feedback": "Give us your feedback", diff --git a/modules/UI/side_pannels/contactlist/ContactList.js b/modules/UI/side_pannels/contactlist/ContactList.js index c114706bb..2682885af 100644 --- a/modules/UI/side_pannels/contactlist/ContactList.js +++ b/modules/UI/side_pannels/contactlist/ContactList.js @@ -26,9 +26,8 @@ function updateNumberOfParticipants(delta) { .parent()[numberOfContacts > 1 ? 'show' : 'hide'](); $("#contacts_container>div.title").text( - APP.translation.translateString( - "contactlist", {participants: numberOfContacts} - )); + APP.translation.translateString("contactlist") + + ' (' + numberOfContacts + ')'); } /**