Pārlūkot izejas kodu

Added app substitution

j8
Ilya Daynatovich 9 gadus atpakaļ
vecāks
revīzija
d72695ae0f

+ 1
- 1
lang/main.json Parādīt failu

@@ -77,7 +77,7 @@
77 77
     },
78 78
     "startupoverlay": {
79 79
         "policyText": " ",
80
-        "title": "Jitsi Meet needs to use your microphone and camera."
80
+        "title": "__app__ needs to use your microphone and camera."
81 81
     },
82 82
     "toolbar": {
83 83
         "mute": "Mute / Unmute",

+ 3
- 1
modules/UI/gum_overlay/UserMediaPermissionsGuidanceOverlay.js Parādīt failu

@@ -24,6 +24,7 @@ class GUMOverlayImpl extends Overlay {
24 24
     _buildOverlayContent() {
25 25
         let textKey = `userMedia.${this.browser}GrantPermissions`;
26 26
         let titleKey = 'startupoverlay.title';
27
+        let titleOptions = '{ "postProcess": "resolveAppName" }';
27 28
         let policyTextKey = 'startupoverlay.policyText';
28 29
         let policyLogo = '';
29 30
         let policyLogoSrc = interfaceConfig.POLICY_LOGO;
@@ -39,7 +40,8 @@ class GUMOverlayImpl extends Overlay {
39 40
             `<div class="inlay">
40 41
                 <span class="inlay__icon icon-microphone"></span>
41 42
                 <span class="inlay__icon icon-camera"></span>
42
-                <h3 class="inlay__title" data-i18n="${titleKey}"></h3>
43
+                <h3 class="inlay__title" data-i18n="${titleKey}"
44
+                    data-i18n-options='${titleOptions}'></h3>
43 45
                 <span class='inlay__text'data-i18n='[html]${textKey}'></span>
44 46
             </div>
45 47
             <div class="policy overlay__policy">

Notiek ielāde…
Atcelt
Saglabāt