소스 검색

[RN] Adjust button labels to reflext the actual state

master
Saúl Ibarra Corretgé 7 년 전
부모
커밋
b4c95bec39
3개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    0
      lang/main.json
  2. 2
    1
      react/features/room-lock/components/RoomLockButton.js
  3. 2
    1
      react/features/toolbox/components/native/AudioOnlyButton.js

+ 3
- 0
lang/main.json 파일 보기

@@ -74,6 +74,8 @@
74 74
     "toolbar": {
75 75
         "addPeople": "Add people to your call",
76 76
         "audioonly": "Enable / Disable audio only mode (saves bandwidth)",
77
+        "audioOnlyOn": "Enable audio only mode (saves bandwidth)",
78
+        "audioOnlyOff": "Disable audio only mode",
77 79
         "audioRoute": "Select the audio route",
78 80
         "callQuality": "Manage call quality",
79 81
         "enterFullScreen": "View full screen",
@@ -278,6 +280,7 @@
278 280
         "reservationError": "Reservation system error",
279 281
         "reservationErrorMsg": "Error code: __code__, message: __msg__",
280 282
         "password": "Enter password",
283
+        "unlockRoom": "Unlock room",
281 284
         "userPassword": "user password",
282 285
         "token": "token",
283 286
         "tokenAuthFailedTitle": "Authentication failed",

+ 2
- 1
react/features/room-lock/components/RoomLockButton.js 파일 보기

@@ -34,8 +34,9 @@ type Props = AbstractButtonProps & {
34 34
 class RoomLockButton extends AbstractButton<Props, *> {
35 35
     accessibilityLabel = 'Room lock';
36 36
     iconName = 'security';
37
-    label = 'toolbar.lock';
37
+    label = 'dialog.lockRoom';
38 38
     toggledIconName = 'security-locked';
39
+    toggledLabel = 'dialog.unlockRoom';
39 40
 
40 41
     /**
41 42
      * Handles clicking / pressing the button.

+ 2
- 1
react/features/toolbox/components/native/AudioOnlyButton.js 파일 보기

@@ -29,8 +29,9 @@ type Props = AbstractButtonProps & {
29 29
 class AudioOnlyButton extends AbstractButton<Props, *> {
30 30
     accessibilityLabel = 'Audio only mode';
31 31
     iconName = 'visibility';
32
-    label = 'toolbar.audioonly';
32
+    label = 'toolbar.audioOnlyOn';
33 33
     toggledIconName = 'visibility-off';
34
+    toggledLabel = 'toolbar.audioOnlyOff';
34 35
 
35 36
     /**
36 37
      * Handles clicking / pressing the button.

Loading…
취소
저장