Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Adjust button labels to reflext the actual state

Saúl Ibarra Corretgéb4c95bec39df
diff --git a/lang/main.json b/lang/main.json
index ab8091c492..936ee4dd80 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -74,6 +74,8 @@
"toolbar": {
"addPeople": "Add people to your call",
"audioonly": "Enable / Disable audio only mode (saves bandwidth)",
+ "audioOnlyOn": "Enable audio only mode (saves bandwidth)",
+ "audioOnlyOff": "Disable audio only mode",
"audioRoute": "Select the audio route",
"callQuality": "Manage call quality",
"enterFullScreen": "View full screen",
@@ -278,6 +280,7 @@
"reservationError": "Reservation system error",
"reservationErrorMsg": "Error code: __code__, message: __msg__",
"password": "Enter password",
+ "unlockRoom": "Unlock room",
"userPassword": "user password",
"token": "token",
"tokenAuthFailedTitle": "Authentication failed",
diff --git a/react/features/room-lock/components/RoomLockButton.js b/react/features/room-lock/components/RoomLockButton.js
index 09b9ab788b..acce4a6e5b 100644
--- a/react/features/room-lock/components/RoomLockButton.js
+++ b/react/features/room-lock/components/RoomLockButton.js
@@ -34,8 +34,9 @@ type Props = AbstractButtonProps & {
class RoomLockButton extends AbstractButton<Props, *> {
accessibilityLabel = 'Room lock';
iconName = 'security';
- label = 'toolbar.lock';
+ label = 'dialog.lockRoom';
toggledIconName = 'security-locked';
+ toggledLabel = 'dialog.unlockRoom';
/**
* Handles clicking / pressing the button.
diff --git a/react/features/toolbox/components/native/AudioOnlyButton.js b/react/features/toolbox/components/native/AudioOnlyButton.js
index a98bb3286f..9295a6f394 100644
--- a/react/features/toolbox/components/native/AudioOnlyButton.js
+++ b/react/features/toolbox/components/native/AudioOnlyButton.js
@@ -29,8 +29,9 @@ type Props = AbstractButtonProps & {
class AudioOnlyButton extends AbstractButton<Props, *> {
accessibilityLabel = 'Audio only mode';
iconName = 'visibility';
- label = 'toolbar.audioonly';
+ label = 'toolbar.audioOnlyOn';
toggledIconName = 'visibility-off';
+ toggledLabel = 'toolbar.audioOnlyOff';
/**
* Handles clicking / pressing the button.