From 216f4943463767af338768eff81b6248f533d7d9 Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Thu, 16 Feb 2017 15:57:57 -0500 Subject: [PATCH] localize labels for AudioSettings component --- bigbluebutton-html5/imports/locales/en.json | 8 ++- .../audio-modal/audio-settings/component.jsx | 62 +++++++++++++++---- 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/bigbluebutton-html5/imports/locales/en.json b/bigbluebutton-html5/imports/locales/en.json index c086324810..0dd3318282 100755 --- a/bigbluebutton-html5/imports/locales/en.json +++ b/bigbluebutton-html5/imports/locales/en.json @@ -98,5 +98,11 @@ "app.audioModal.audioChoiceDescription": "Select how to join the audio in this meeting", "app.audio.joinAudio": "Join Audio", "app.audio.leaveAudio": "Leave Audio", - "app.audio.playSoundLabel": "Play Sound" + "app.audio.playSoundLabel": "Play Sound", + "app.audio.backLabel": "Back", + "app.audio.audioSettings.titleLabel": "Choose your audio settings", + "app.audio.audioSettings.descriptionLabel": "Please note, a dialog will appear in your browser, requiring you to accept sharing your microphone.", + "app.audio.audioSettings.microphoneSourceLabel": "Microphone source", + "app.audio.audioSettings.speakerSourceLabel": "Speaker source", + "app.audio.audioSettings.microphoneStreamLabel": "Your audio stream volume" } diff --git a/bigbluebutton-html5/imports/ui/components/audio-modal/audio-settings/component.jsx b/bigbluebutton-html5/imports/ui/components/audio-modal/audio-settings/component.jsx index fe4f36ca05..c9cc57718b 100755 --- a/bigbluebutton-html5/imports/ui/components/audio-modal/audio-settings/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/audio-modal/audio-settings/component.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '/imports/ui/components/button/component'; import { clearModal } from '/imports/ui/components/app/service'; import styles from '../styles.scss'; @@ -8,7 +9,7 @@ import AudioStreamVolume from '/imports/ui/components/audio/audio-stream-volume/ import EnterAudioContainer from '/imports/ui/components/enter-audio/container'; import AudioTestContainer from '/imports/ui/components/audio-test/container'; -export default class AudioSettings extends React.Component { +class AudioSettings extends React.Component { constructor(props) { super(props); @@ -43,11 +44,15 @@ export default class AudioSettings extends React.Component { } render() { + const { + intl, + } = this.props; + return (
- Please note, a dialog will appear in your browser, requiring you to accept sharing your microphone. +
- Microphone source + + + - Your audio stream volume - + + +
- Speaker source - - + + + + +
); } }; + +const intlMessages = defineMessages({ + backLabel: { + id: 'app.audio.backLabel', + defaultMessage: 'Back', + }, +}); + +export default injectIntl(AudioSettings);