소스 검색

Merge pull request #1435 from jitsi/fix-settings-translation

Fixes settings panel translation.
j8
yanas 8 년 전
부모
커밋
d0171cf386
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      modules/UI/side_pannels/settings/SettingsMenu.js

+ 6
- 0
modules/UI/side_pannels/settings/SettingsMenu.js 파일 보기

@@ -61,6 +61,9 @@ const htmlStr = `
61 61
 function initHTML() {
62 62
     $(`#${sidePanelsContainerId}`)
63 63
         .append(htmlStr);
64
+    // make sure we translate the panel, as adding it can be after i18n
65
+    // library had initialized and translated already present html
66
+    APP.translation.translateElement($(`#${sidePanelsContainerId}`));
64 67
 }
65 68
 
66 69
 /**
@@ -162,6 +165,9 @@ export default {
162 165
             selectInput[0].dataset.i18n =
163 166
                 `languages:${APP.translation.getCurrentLanguage()}`;
164 167
 
168
+            // translate selectInput, which is the currently selected language
169
+            // otherwise there will be no selected option
170
+            APP.translation.translateElement(selectInput);
165 171
             APP.translation.translateElement(selectEl);
166 172
 
167 173
             APP.translation.addLanguageChangedListener(

Loading…
취소
저장