add descriptions to defined messages

This commit is contained in:
KDSBrowne 2017-04-10 08:50:03 -07:00
parent 7e96f7062f
commit a5f1857c67
23 changed files with 94 additions and 93 deletions

View File

@ -5,31 +5,32 @@ import Modal from '/imports/ui/components/modal/component';
const intlMessages = defineMessages({
title: {
id: 'app.about.title',
defaultMessage: 'About',
description: 'About title label',
},
version: {
id: 'app.about.version',
defaultMessage: 'Client Build:',
description: 'Client version label',
},
copyright: {
id: 'app.about.copyright',
defaultMessage: (new Date().getFullYear()),
description: 'Client copyright label',
},
confirmLabel: {
id: 'app.about.confirmLabel',
defaultMessage: 'OK',
description: 'Confirmation button label',
},
confirmDesc: {
id: 'app.about.confirmDesc',
defaultMessage: 'OK',
description: 'Description for confirmLabel',
},
dismissLabel: {
id: 'app.about.dismissLabel',
defaultMessage: 'Cancel',
description: 'Dismiss button label',
},
dismissDesc: {
id: 'app.about.dismissDesc',
defaultMessage: 'Close about client information',
description: 'Description for dissmissLabel',
},
});

View File

@ -11,30 +11,31 @@ import DropdownListItem from '/imports/ui/components/dropdown/list/item/componen
const intlMessages = defineMessages({
actionsLabel: {
id: 'app.actionsBar.actionsDropdown.actionsLabel',
description: 'Actions button label',
},
presentationLabel: {
id: 'app.actionsBar.actionsDropdown.presentationLabel',
defaultMessage: 'Upload a presentation',
description: 'Upload a presentation option label',
},
initPollLabel: {
id: 'app.actionsBar.actionsDropdown.initPollLabel',
defaultMessage: 'Initiate a poll',
description: 'Initiate a poll option label',
},
desktopShareLabel: {
id: 'app.actionsBar.actionsDropdown.desktopShareLabel',
defaultMessage: 'Share your screen',
description: 'Desktop Share option label',
},
presentationDesc: {
id: 'app.actionsBar.actionsDropdown.presentationDesc',
defaultMessage: 'Upload your presentation',
description: 'Describes presentationLabel',
},
initPollDesc: {
id: 'app.actionsBar.actionsDropdown.initPollDesc',
defaultMessage: 'Initiate a poll',
description: 'Describes initPollLabel',
},
desktopShareDesc: {
id: 'app.actionsBar.actionsDropdown.desktopShareDesc',
defaultMessage: 'Share your screen with others',
description: 'Describes desktopShareLabel',
},
});

View File

@ -7,11 +7,11 @@ import { defineMessages, injectIntl } from 'react-intl';
const intlMessages = defineMessages({
joinAudio: {
id: 'app.audio.joinAudio',
defaultMessage: 'Join Audio',
description: 'Join audio button label'
},
leaveAudio: {
id: 'app.audio.leaveAudio',
defaultMessage: 'Leave Audio',
description: 'Leave audio button label',
}
});

View File

@ -118,107 +118,91 @@ class EmojiMenu extends Component {
const intlMessages = defineMessages({
statusTriggerLabel: {
id: 'app.actionsBar.emojiMenu.statusTriggerLabel',
defaultMessage: 'Status',
description: 'Emoji status button label',
},
// For away status
awayLabel: {
id: 'app.actionsBar.emojiMenu.awayLabel',
defaultMessage: 'Away',
description: 'Away emoji label',
},
awayDesc: {
id: 'app.actionsBar.emojiMenu.awayDesc',
defaultMessage: 'Change your status to away',
description: 'Describes awayLabel',
},
// For raise hand status
raiseLabel: {
id: 'app.actionsBar.emojiMenu.raiseLabel',
defaultMessage: 'Raise',
description: 'raise hand emoji label',
},
raiseDesc: {
id: 'app.actionsBar.emojiMenu.raiseDesc',
defaultMessage: 'Raise your hand to ask a question',
description: 'Describes raiseLabel',
},
// For undecided status
undecidedLabel: {
id: 'app.actionsBar.emojiMenu.undecidedLabel',
defaultMessage: 'Undecided',
description: 'undecided emoji label',
},
undecidedDesc: {
id: 'app.actionsBar.emojiMenu.undecidedDesc',
defaultMessage: 'Change your status to undecided',
description: 'Describes undecidedLabel',
},
// For confused status
confusedLabel: {
id: 'app.actionsBar.emojiMenu.confusedLabel',
defaultMessage: 'Confused',
description: 'confused emoji label',
},
confusedDesc: {
id: 'app.actionsBar.emojiMenu.confusedDesc',
defaultMessage: 'Change your status to confused',
description: 'Describes confusedLabel',
},
// For sad status
sadLabel: {
id: 'app.actionsBar.emojiMenu.sadLabel',
defaultMessage: 'Sad',
description: 'sad emoji label',
},
sadDesc: {
id: 'app.actionsBar.emojiMenu.sadDesc',
defaultMessage: 'Change your status to sad',
description: 'Describes sadLabel',
},
// For happy status
happyLabel: {
id: 'app.actionsBar.emojiMenu.happyLabel',
defaultMessage: 'Happy',
description: 'happy emoji label',
},
happyDesc: {
id: 'app.actionsBar.emojiMenu.happyDesc',
defaultMessage: 'Change your status to happy',
description: 'Describes happyLabel',
},
// For confused status
clearLabel: {
id: 'app.actionsBar.emojiMenu.clearLabel',
defaultMessage: 'Clear',
description: 'confused emoji label',
},
clearDesc: {
id: 'app.actionsBar.emojiMenu.clearDesc',
defaultMessage: 'Clear your status',
description: 'Describes clearLabel',
},
// For applause status
applauseLabel: {
id: 'app.actionsBar.emojiMenu.applauseLabel',
defaultMessage: 'Applause',
description: 'applause emoji label',
},
applauseDesc: {
id: 'app.actionsBar.emojiMenu.applauseDesc',
defaultMessage: 'Change your status to applause',
description: 'Describes applauseLabel',
},
// For thumbs up status
thumbsupLabel: {
id: 'app.actionsBar.emojiMenu.thumbsupLabel',
defaultMessage: 'Thumbs up',
description: 'thumbs up emoji label',
},
thumbsupDesc: {
id: 'app.actionsBar.emojiMenu.thumbsupDesc',
defaultMessage: 'Change your status to thumbs up',
description: 'Describes thumbsupLabel',
},
// For thumbs-down status
thumbsdownLabel: {
id: 'app.actionsBar.emojiMenu.thumbsdownLabel',
defaultMessage: 'Thumbs down',
description: 'thumbs down emoji label',
},
thumbsdownDesc: {
id: 'app.actionsBar.emojiMenu.thumbsdownDesc',
defaultMessage: 'Change your status to thumbs down',
description: 'Describes thumbsdownLabel',
},
changeStatusLabel: {
id: 'app.actionsBar.changeStatusLabel',
description: 'Aria-label for emoji status button',
},
});

View File

@ -12,15 +12,19 @@ import cx from 'classnames';
const intlMessages = defineMessages({
userListLabel: {
id: 'app.userlist.Label',
description: 'Aria-label for Userlist Nav',
},
chatLabel: {
id: 'app.chat.Label',
description: 'Aria-label for Chat Section'
},
mediaLabel: {
id: 'app.media.Label',
description: 'Aria-label for Media Section'
},
actionsbarLabel: {
id: 'app.actionsBar.Label',
description: 'Aria-label for ActionsBar Section'
},
});

View File

@ -129,21 +129,27 @@ class AudioSettings extends React.Component {
const intlMessages = defineMessages({
backLabel: {
id: 'app.audio.backLabel',
description: 'audio settings back button label',
},
titleLabel: {
id: 'app.audio.audioSettings.titleLabel',
description: 'audio setting title label',
},
descriptionLabel: {
id: 'app.audio.audioSettings.descriptionLabel',
description: 'audio settings description label',
},
micSourceLabel: {
id: 'app.audio.audioSettings.microphoneSourceLabel',
description: 'Label for mic source',
},
speakerSourceLabel: {
id: 'app.audio.audioSettings.speakerSourceLabel',
description: 'Label for speaker source',
},
streamVolumeLabel: {
id: 'app.audio.audioSettings.microphoneStreamLabel',
description: 'Label for stream volume',
}
});

View File

@ -7,16 +7,19 @@ import { defineMessages, injectIntl } from 'react-intl';
const intlMessages = defineMessages({
microphoneLabel: {
id: 'app.audioModal.microphoneLabel',
description: 'Join mic audio button label',
},
listenOnlyLabel: {
id: 'app.audioModal.listenOnlyLabel',
description: 'Join listen only audio button label',
},
closeLabel: {
id: 'app.audioModal.closeLabel',
description: 'close audio modal button label',
},
audioChoiceLabel: {
id: 'app.audioModal.audioChoiceLabel',
},
},description: 'Join audio modal title',
});
class JoinAudio extends React.Component {

View File

@ -20,6 +20,7 @@ const defaultProps = {
const intlMessages = defineMessages({
closeLabel: {
id: 'app.audioNotification.closeLabel',
description: 'Audio notification dismiss label',
},
});

View File

@ -28,6 +28,7 @@ class AudioTest extends React.Component {
const intlMessages = defineMessages({
playSoundLabel: {
id: 'app.audio.playSoundLabel',
description: 'Play sound button label',
},
});

View File

@ -7,27 +7,27 @@ import Modal from '/imports/ui/components/modal/component';
const intlMessages = defineMessages({
title: {
id: 'app.breakoutJoinConfirmation.title',
defaultMessage: 'Join Breakout Room',
description: 'Join breakout room title',
},
message: {
id: 'app.breakoutJoinConfirmation.message',
defaultMessage: 'Do you want to join',
description: 'Join breakout confim message',
},
confirmLabel: {
id: 'app.breakoutJoinConfirmation.confirmLabel',
defaultMessage: 'Join',
description: 'Join confirmation button label',
},
confirmDesc: {
id: 'app.breakoutJoinConfirmation.confirmDesc',
defaultMessage: 'Join you to the Breakout Room',
description: 'Describes confirmLabel',
},
dismissLabel: {
id: 'app.breakoutJoinConfirmation.dismissLabel',
defaultMessage: 'Cancel',
description: 'Cancel button label',
},
dismissDesc: {
id: 'app.breakoutJoinConfirmation.dismissDesc',
defaultMessage: 'Closes and rejects Joining the Breakout Room',
description: 'Describes dismissLabel',
},
});

View File

@ -11,6 +11,7 @@ const ELEMENT_ID = 'chat-messages';
const intlMessages = defineMessages({
closeChatLabel: {
id: 'app.chat.closeChatLabel',
description: 'aria-label for closing chat button',
},
});

View File

@ -17,17 +17,14 @@ const defaultProps = {
const messages = defineMessages({
submitLabel: {
id: 'app.chat.submitLabel',
defaultMessage: 'Send Message',
description: 'Chat submit button label',
},
inputLabel: {
id: 'app.chat.inputLabel',
defaultMessage: 'Message input for chat {name}',
description: 'Chat message input label',
},
inputPlaceholder: {
id: 'app.chat.inputPlaceholder',
defaultMessage: 'Message {name}',
description: 'Chat message input placeholder',
},
});
@ -48,7 +45,7 @@ class MessageForm extends Component {
handleMessageKeyDown(e) {
//TODO Prevent send message pressing enter on mobile and/or virtual keyboard
//TODO Prevent send message pressing enter on mobile and/or virtual keyboard
if (e.keyCode === 13 && !e.shiftKey) {
e.preventDefault();

View File

@ -14,7 +14,6 @@ const propTypes = {
const intlMessages = defineMessages({
moreMessages: {
id: 'app.chat.moreMessages',
defaultMessage: 'More messages below',
description: 'Chat message when the user has unread messages below the scroll',
},
});

View File

@ -12,7 +12,7 @@ const FOCUSABLE_CHILDREN = `[tabindex]:not([tabindex="-1"]), a, input, button`;
const intlMessages = defineMessages({
close: {
id: 'app.dropdown.close',
defaultMessage: 'Close',
description: 'Close button label',
},
});

View File

@ -29,6 +29,7 @@ class EnterAudio extends React.Component {
const intlMessages = defineMessages({
enterSessionLabel: {
id: 'app.audio.enterSessionLabel',
description: 'enter session button label',
},
});

View File

@ -6,19 +6,19 @@ import styles from './styles.scss';
const intlMessages = defineMessages({
500: {
id: 'app.error.500',
defaultMessage: 'Ops, something went wrong',
description: '500 error message',
},
404: {
id: 'app.error.404',
defaultMessage: 'Not Found',
description: '404 error message',
},
401: {
id: 'app.about.401',
defaultMessage: 'Unauthorized',
description: '401 error message',
},
403: {
id: 'app.about.403',
defaultMessage: 'Forbidden',
description: '403 error message',
},
});

View File

@ -6,27 +6,27 @@ import Modal from '/imports/ui/components/modal/component';
const intlMessages = defineMessages({
title: {
id: 'app.leaveConfirmation.title',
defaultMessage: 'Leave Session',
description: 'Leave session modal title',
},
message: {
id: 'app.leaveConfirmation.message',
defaultMessage: 'Do you want to leave this meeting?',
description: 'message for leaving session',
},
confirmLabel: {
id: 'app.leaveConfirmation.confirmLabel',
defaultMessage: 'Leave',
description: 'Confirmation button label',
},
confirmDesc: {
id: 'app.leaveConfirmation.confirmDesc',
defaultMessage: 'Logs you out of the meeting',
description: 'Describes confirmLabel',
},
dismissLabel: {
id: 'app.leaveConfirmation.dismissLabel',
defaultMessage: 'Cancel',
description: 'Dismiss button label',
},
dismissDesc: {
id: 'app.leaveConfirmation.dismissDesc',
defaultMessage: 'Closes and rejects the leave confirmation',
description: 'Describes dismissLabel',
},
});

View File

@ -19,6 +19,7 @@ import { defineMessages, injectIntl } from 'react-intl';
const intlMessages = defineMessages({
toggleUserListLabel: {
id: 'app.navBar.userListToggleBtnLabel',
description: 'Toggle button label',
},
});

View File

@ -19,47 +19,47 @@ import DropdownListSeparator from '/imports/ui/components/dropdown/list/separato
const intlMessages = defineMessages({
optionsLabel: {
id: 'app.navBar.settingsDropdown.optionsLabel',
defaultMessage: 'Options',
description: 'Options button label',
},
fullscreenLabel: {
id: 'app.navBar.settingsDropdown.fullscreenLabel',
defaultMessage: 'Make fullscreen',
description: 'Make fullscreen option label',
},
settingsLabel: {
id: 'app.navBar.settingsDropdown.settingsLabel',
defaultMessage: 'Open settings',
description: 'Open settings option label',
},
aboutLabel: {
id: 'app.navBar.settingsDropdown.aboutLabel',
defaultMessage: 'About',
description: 'About option label',
},
aboutDesc: {
id: 'app.navBar.settingsDropdown.aboutDesc',
defaultMessage: 'About',
description: 'Describes about option',
},
leaveSessionLabel: {
id: 'app.navBar.settingsDropdown.leaveSessionLabel',
defaultMessage: 'Logout',
description: 'Leave session button label',
},
fullscreenDesc: {
id: 'app.navBar.settingsDropdown.fullscreenDesc',
defaultMessage: 'Make the settings menu fullscreen',
description: 'Describes fullscreen option',
},
settingsDesc: {
id: 'app.navBar.settingsDropdown.settingsDesc',
defaultMessage: 'Change the general settings',
description: 'Describes settings option',
},
leaveSessionDesc: {
id: 'app.navBar.settingsDropdown.leaveSessionDesc',
defaultMessage: 'Leave the meeting',
description: 'Describes leave session option',
},
exitFullScreenDesc: {
id: 'app.navBar.settingsDropdown.exitFullScreenDesc',
defaultMessage: 'exit fullscreen mode',
description: 'Describes exit fullscreen option',
},
exitFullScreenLabel: {
id: 'app.navBar.settingsDropdown.exitFullScreenLabel',
defaultMessage: 'Exit fullscreen',
description: 'Exit fullscreen option label',
},
});

View File

@ -7,9 +7,11 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
const intlMessages = defineMessages({
previousSlideLabel: {
id: 'app.presentation.presentationToolbar.prevSlideLabel',
description: 'Previous slide button label',
},
nextSlideLabel: {
id: 'app.presentation.presentationToolbar.nextSlideLabel',
description: 'Next slide button label'
},
});

View File

@ -10,12 +10,15 @@ import { defineMessages, injectIntl } from 'react-intl';
const intlMessages = defineMessages({
titlePublic: {
id: 'app.chat.titlePublic',
description: 'title for public chat',
},
unreadPlural: {
id: 'app.userlist.chatlistitem.unreadPlural',
description: 'singular aria label for new message'
},
unreadSingular: {
id: 'app.userlist.chatlistitem.unreadSingular',
description: 'plural aria label for new messages'
},
});

View File

@ -82,7 +82,6 @@ class UserList extends Component {
<FormattedMessage
id="app.userlist.messagesTitle"
description="Title for the messages list"
defaultMessage="Messages"
/>
</h3> : <hr className={styles.separator}></hr>
}
@ -127,7 +126,6 @@ class UserList extends Component {
<FormattedMessage
id="app.userlist.usersTitle"
description="Title for the Users list"
defaultMessage="Users"
/>
&nbsp;({users.length})
</h3> : <hr className={styles.separator}></hr>

View File

@ -40,12 +40,10 @@ const messages = defineMessages({
presenter: {
id: 'app.userlist.presenter',
description: 'Text for identifying presenter user',
defaultMessage: 'Presenter',
},
you: {
id: 'app.userlist.you',
description: 'Text for identifying your user',
defaultMessage: 'You',
},
});