瀏覽代碼

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.
master
damencho 8 年之前
父節點
當前提交
cfeb03740c
共有 2 個檔案被更改,包括 3 行新增4 行删除
  1. 1
    1
      lang/main.json
  2. 2
    3
      modules/UI/side_pannels/contactlist/ContactList.js

+ 1
- 1
lang/main.json 查看文件

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

+ 2
- 3
modules/UI/side_pannels/contactlist/ContactList.js 查看文件

26
         .parent()[numberOfContacts > 1 ? 'show' : 'hide']();
26
         .parent()[numberOfContacts > 1 ? 'show' : 'hide']();
27
 
27
 
28
     $("#contacts_container>div.title").text(
28
     $("#contacts_container>div.title").text(
29
-        APP.translation.translateString(
30
-            "contactlist", {participants: numberOfContacts}
31
-        ));
29
+        APP.translation.translateString("contactlist")
30
+            + ' (' + numberOfContacts + ')');
32
 }
31
 }
33
 
32
 
34
 /**
33
 /**

Loading…
取消
儲存