瀏覽代碼

[RN] Adjust button labels to reflext the actual state

master
Saúl Ibarra Corretgé 7 年之前
父節點
當前提交
b4c95bec39

+ 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…
取消
儲存