Browse Source

[RN] Adjust button labels to reflext the actual state

master
Saúl Ibarra Corretgé 7 years ago
parent
commit
b4c95bec39

+ 3
- 0
lang/main.json View File

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

+ 2
- 1
react/features/room-lock/components/RoomLockButton.js View File

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

+ 2
- 1
react/features/toolbox/components/native/AudioOnlyButton.js View File

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

Loading…
Cancel
Save