Переглянути джерело

Removes unneeded translation. (#3217)

j8
Дамян Минков 6 роки тому
джерело
коміт
3f3a957f40
2 змінених файлів з 7 додано та 15 видалено
  1. 0
    1
      lang/main.json
  2. 7
    14
      modules/UI/UI.js

+ 0
- 1
lang/main.json Переглянути файл

@@ -234,7 +234,6 @@
234 234
         "focus": "Conference focus",
235 235
         "focusFail": "__component__ not available - retry in __ms__ sec",
236 236
         "grantedTo": "Moderator rights granted to __to__!",
237
-        "grantedToUnknown": "Moderator rights granted to $t(notify.somebody)!",
238 237
         "muted": "You have started the conversation muted.",
239 238
         "mutedTitle": "You're muted!",
240 239
         "raisedHand": "Would like to speak.",

+ 7
- 14
modules/UI/UI.js Переглянути файл

@@ -476,20 +476,13 @@ UI.updateUserRole = user => {
476 476
 
477 477
     const displayName = user.getDisplayName();
478 478
 
479
-    if (displayName) {
480
-        messageHandler.participantNotification(
481
-            displayName,
482
-            'notify.somebody',
483
-            'connected',
484
-            'notify.grantedTo',
485
-            { to: UIUtil.escapeHtml(displayName) });
486
-    } else {
487
-        messageHandler.participantNotification(
488
-            '',
489
-            'notify.somebody',
490
-            'connected',
491
-            'notify.grantedToUnknown');
492
-    }
479
+    messageHandler.participantNotification(
480
+        displayName,
481
+        'notify.somebody',
482
+        'connected',
483
+        'notify.grantedTo',
484
+        { to: displayName
485
+            ? UIUtil.escapeHtml(displayName) : '$t(notify.somebody)' });
493 486
 };
494 487
 
495 488
 /**

Завантаження…
Відмінити
Зберегти