Skip to content

Commit

Permalink
chore: fix message title case (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
leangseu-edx authored Jan 16, 2024
1 parent 0e00d52 commit 3900f61
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 68 deletions.
8 changes: 4 additions & 4 deletions src/components/Assessment/ReadonlyAssessment/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const messages = defineMessages({
},
unweightedGrade: {
id: 'ora-collapsible-comment.unweightedGrade',
defaultMessage: '{stepLabel} Grade',
defaultMessage: '{stepLabel} grade',
description: 'Unweighted grade group text',
},
grade: {
id: 'frontend-app-ora.grade',
defaultMessage: '{stepLabel} Grade:',
defaultMessage: '{stepLabel} grade:',
description: 'Grade button text',
},
gradePoints: {
Expand All @@ -33,7 +33,7 @@ const messages = defineMessages({
},
overallFeedback: {
id: 'frontend-app-ora.overallFeedback',
defaultMessage: 'Overall Feedback',
defaultMessage: 'Overall feedback',
description: 'Overall feedback label',
},
stepComments: {
Expand Down Expand Up @@ -63,7 +63,7 @@ const messages = defineMessages({
},
stepComment: {
id: 'ora-collapsible-comment.stepComment',
defaultMessage: '{step} Comment',
defaultMessage: '{step} comment',
description: 'Header for comment component if step is provided',
},
points: {
Expand Down
14 changes: 7 additions & 7 deletions src/components/FileUpload/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ import { defineMessages } from '@edx/frontend-platform/i18n';
const messages = defineMessages({
fileNameTitle: {
id: 'frontend-app-ora.FileContent.fileNameTitle',
defaultMessage: 'File Name',
defaultMessage: 'File name',
description: ' title for file name',
},
fileDescriptionTitle: {
id: 'frontend-app-ora.FileCellContent.fileDescriptionTitle',
defaultMessage: 'File Description',
defaultMessage: 'File description',
description: ' title for file description',
},
fileSizeTitle: {
id: 'frontend-app-ora.FileCellContent.fileSizeTitle',
defaultMessage: 'File Size',
defaultMessage: 'File size',
description: ' title for file size',
},
fileUploadTitle: {
id: 'frontend-app-ora.FileCellContent.fileUploadTitle',
defaultMessage: 'File Upload',
defaultMessage: 'File upload',
description: ' title for file upload',
},
fileActionsTitle: {
Expand Down Expand Up @@ -48,7 +48,7 @@ const messages = defineMessages({
},
uploadedFilesTitle: {
id: 'frontend-app-ora.FileCellContent.uploadedFilesTitle',
defaultMessage: 'Uploaded Files',
defaultMessage: 'Uploaded files',
description: 'Title for uploaded files',
},
cancelUploadFileButton: {
Expand Down Expand Up @@ -88,12 +88,12 @@ const messages = defineMessages({
},
filePopoverNameTitle: {
id: 'frontend-app-ora.FilePopoverContent.filePopoverNameTitle',
defaultMessage: 'File Name',
defaultMessage: 'File name',
description: 'Popover title for file name',
},
filePopoverDescriptionTitle: {
id: 'frontend-app-ora.FilePopoverCellContent.filePopoverDescriptionTitle',
defaultMessage: 'File Description',
defaultMessage: 'File description',
description: 'Popover title for file description',
},
});
Expand Down
4 changes: 2 additions & 2 deletions src/components/Instructions/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ const messages = defineMessages({
},
[stepNames.self]: {
defaultMessage: 'Assess your response',
description: 'Self Assessment step instructions',
description: 'Self assessment step instructions',
id: 'frontend-app-ora.instructions.selfAssessment',
},
[stepNames.peer]: {
defaultMessage: 'Read and assess the following response from one of your peers.',
description: 'Peer Assessment step instructions',
description: 'Peer assessment step instructions',
id: 'frontend-app-ora.instructions.peerAssessment',
},
[stepNames.done]: {
Expand Down
6 changes: 3 additions & 3 deletions src/components/ModalActions/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ const messages = defineMessages({
viewGrades: {
id: 'ora-mfe.ModalActions.viewGrades',
defaultMessage: 'View your grades',
description: 'Action button to load Grades step',
description: 'Action button to load grades step',
},
exit: {
id: 'ora-mfe.ModalActions.exit',
defaultMessage: 'Exit',
description: 'Action button to exit Grades step',
description: 'Action button to exit grades step',
},
loadNext: {
id: 'ora-mfe.ModalActions.loadNext',
Expand All @@ -65,7 +65,7 @@ const messages = defineMessages({
practiceResponse: {
id: 'ora-mfe.ModalActions.practiceResponse',
defaultMessage: 'practice response',
description: 'Student Training type of response for "Load(ing/ed) next <type>" action',
description: 'Student training type of response for "Load(ing/ed) next <type>" action',
},
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/ProgressBar/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const messages = defineMessages({
myGrade: {
id: 'frontend-app-ora.ProgressBar.myGrade',
defaultMessage: 'My grade',
description: 'My Grade step progress indicator',
description: 'My grade step progress indicator',
},
step: {
id: 'frontend-app-ora.ProgressBar.step',
Expand Down
8 changes: 4 additions & 4 deletions src/components/Rubric/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { defineMessages } from '@edx/frontend-platform/i18n';
const messages = defineMessages({
gradeSubmitted: {
id: 'frontend-app-ora.Rubric.gradeSubmitted',
defaultMessage: 'Grade Submitted',
description: 'Submit Grade button text after successful submission',
defaultMessage: 'Grade submitted',
description: 'Submit grade button text after successful submission',
},
rubric: {
id: 'frontend-app-ora.Rubric.rubric',
Expand All @@ -14,12 +14,12 @@ const messages = defineMessages({
submitGrade: {
id: 'frontend-app-ora.Rubric.submitGrade',
defaultMessage: 'Submit grade',
description: 'Submit Grade button text',
description: 'Submit grade button text',
},
submittingGrade: {
id: 'frontend-app-ora.Rubric.submittingGrade',
defaultMessage: 'Submitting grade',
description: 'Submit Grade button text while submitting',
description: 'Submit grade button text while submitting',
},
overallComments: {
id: 'frontend-app-ora.Rubric.overallComments',
Expand Down
72 changes: 36 additions & 36 deletions src/components/StatusAlert/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,27 @@ const submissionAlerts = defineMessages({
const submissionHeadings = defineMessages({
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.Heading.submission.submitted',
defaultMessage: 'Submission Completed',
defaultMessage: 'Submission completed',
description: 'Submission submitted status alert heading',
},
[stepStates.notAvailable]: {
id: 'frontend-app-ora.StatusAlert.Heading.submission.notAvailable',
defaultMessage: 'Submission Not Available',
defaultMessage: 'Submission not available',
description: 'Submission not available status alert heading',
},
[stepStates.cancelled]: {
id: 'frontend-app-ora.StatusAlert.Heading.submission.cancelled',
defaultMessage: 'Submission Cancelled',
defaultMessage: 'Submission cancelled',
description: 'Submission cancelled status alert heading',
},
cancelledBy: {
id: 'frontend-app-ora.StatusAlert.Heading.submission.cancelledBy',
defaultMessage: 'Submission Cancellation Details',
defaultMessage: 'Submission cancellation details',
description: 'Submission cancelled by user status alert heading',
},
[stepStates.closed]: {
id: 'frontend-app-ora.StatusAlert.Heading.submission.closed',
defaultMessage: 'Submission Closed',
defaultMessage: 'Submission closed',
description: 'Submission closed status alert heading',
},
[stepStates.teamAlreadySubmitted]: {
Expand All @@ -71,7 +71,7 @@ const submissionHeadings = defineMessages({
},
[stepStates.needTeam]: {
id: 'frontend-app-ora.StatusAlert.Heading.submission.needTeam',
defaultMessage: 'No Team Found',
defaultMessage: 'No team found',
description: 'Submission need-team status alert heading',
},
});
Expand All @@ -80,109 +80,109 @@ const studentTrainingAlerts = defineMessages({
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.studentTraining.submitted',
defaultMessage: 'Continue to the next example, or if you have completed all examples, continue to the next step.',
description: 'Practice Assessment submitted status alert',
description: 'Practice assessment submitted status alert',
},
[stepStates.trainingValidation]: {
id: 'frontend-app-ora.StatusAlert.studentTraining.validation',
defaultMessage: 'Your grade does not match what the instructor intended for this practice session. Try rereading the prompt and response and adjust your grade accordingly.',
description: 'Student Training validation status alert',
description: 'Student training validation status alert',
},
});
const studentTrainingHeadings = defineMessages({
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.Heading.studentTraining.submitted',
defaultMessage: 'You have successfully submitted a practice grade.',
description: 'Practice Assessment submitted status alert heading',
description: 'Practice assessment submitted status alert heading',
},
});

const selfAlerts = defineMessages({
[stepStates.closed]: {
id: 'frontend-app-ora.StatusAlert.self.closed',
defaultMessage: 'The due date for this step has passed. This step is now closed. You can no longer complete a self assessment or continue with this assignment, and you will receive a grade of incomplete',
description: 'Student Training closed status alert',
description: 'Student training closed status alert',
},
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.self.submitted',
defaultMessage: 'You have completed your self assessment for this assignment.',
description: 'Self Assessment submitted status alert',
description: 'Self assessment submitted status alert',
},
});
const selfHeadings = defineMessages({
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.Heading.self.submitted',
defaultMessage: 'Self Assessment Completed',
description: 'Self Assessment submitted status alert heading',
defaultMessage: 'Self assessment: Completed',
description: 'Self assessment submitted status alert heading',
},
[stepStates.closed]: {
id: 'frontend-app-ora.StatusAlert.Heading.self.closed',
defaultMessage: 'Self Assessment: Closed',
description: 'Student Training closed status alert heading',
defaultMessage: 'Self assessment: Closed',
description: 'Student training closed status alert heading',
},
});

const peerAlerts = defineMessages({
[stepStates.waiting]: {
id: 'frontend-app-ora.StatusAlert.peer.waiting',
defaultMessage: 'All submitted responses have been assessed. Check back later to see if more learners have submitted responses.',
description: 'Peer Assessment waiting status alert',
defaultMessage: 'All submitted responses have been assessed. Check back later to see if more learners have submitted responses.',
description: 'Peer assessment waiting status alert',
},
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.peer.finished',
defaultMessage: 'You have successfully completed all of the required peer assessments for this assignment. You may assess additional peer responses if you want to. Completed additional assessments will no affect your grade.',
description: 'Peer Assessment finished status alert',
description: 'Peer assessment finished status alert',
},
[stepStates.closed]: {
id: 'frontend-app-ora.StatusAlert.peer.closed',
defaultMessage: 'The due date for this step has passed. This step is now closed. You can no longer complete peer assessments or continue with this assignment, and you will receive a grade of incomplete.',
description: 'Peer Assessment closed status alert',
description: 'Peer assessment closed status alert',
},
[stepStates.notAvailable]: {
id: 'frontend-app-ora.StatusAlert.peer.notAvailable',
defaultMessage: 'This task is not available yet. Check back to complete the assignment once this section has opened',
description: 'Peer Assessment not available status alert',
defaultMessage: 'This task is not available yet. Check back to complete the assignment once this section has opened',
description: 'Peer assessment not available status alert',
},
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.peer.submitted',
defaultMessage: 'Continue to submit peer assessments until you have completed the required number.',
description: 'Peer Assessment submitted status alert',
description: 'Peer assessment submitted status alert',
},
[stepStates.waitingForPeerGrades]: {
id: 'frontend-app-ora.StatusAlert.peer.waitingForPeerGrades',
defaultMessage: 'You will have completed this step once your peers have finished grading your response. Check back periodically to see if there is an update. Optionally, you may also grade more peers while you wait.',
description: 'Peer Assessment waiting-for-peer-grades status alert',
defaultMessage: 'You will have completed this step once your peers have finished grading your response. Check back periodically to see if there is an update. Optionally, you may also grade more peers while you wait.',
description: 'Peer assessment waiting-for-peer-grades status alert',
},
});
const peerHeadings = defineMessages({
[stepStates.waiting]: {
id: 'frontend-app-ora.StatusAlert.Heading.peer.waiting',
defaultMessage: 'Waiting for peers to submit',
description: 'Peer Assessment waiting status alert heading',
description: 'Peer assessment waiting status alert heading',
},
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.Heading.peer.finished',
defaultMessage: 'Peer Assessment Complete',
description: 'Peer Assessment finished status alert heading',
defaultMessage: 'Peer assessment: Complete',
description: 'Peer assessment finished status alert heading',
},
[stepStates.closed]: {
id: 'frontend-app-ora.StatusAlert.Heading.peer.closed',
defaultMessage: 'Peer Assessment Closed',
description: 'Peer Assessment closed status alert heading',
defaultMessage: 'Peer assessment: Closed',
description: 'Peer assessment closed status alert heading',
},
[stepStates.notAvailable]: {
id: 'frontend-app-ora.StatusAlert.Heading.peer.notAvailable',
defaultMessage: 'Peer Assessment not available',
description: 'Peer Assessment not available status alert heading',
defaultMessage: 'Peer assessment not available',
description: 'Peer assessment not available status alert heading',
},
[stepStates.submitted]: {
id: 'frontend-app-ora.StatusAlert.Heading.peer.submitted',
defaultMessage: 'Peer Assessment Successfully Submitted',
description: 'Peer Assessment submitted status alert',
defaultMessage: 'Peer assessment successfully submitted',
description: 'Peer assessment submitted status alert',
},
[stepStates.waitingForPeerGrades]: {
id: 'frontend-app-ora.StatusAlert.Heading.peer.waitingForPeerGrades',
defaultMessage: 'You have graded the required number of your peers. You are waiting for your peers to finish grading your work.',
description: 'Peer Assessment waiting-for-peer-grades status alert heading',
defaultMessage: 'You have graded the required number of your peers. You are waiting for your peers to finish grading your work.',
description: 'Peer assessment waiting-for-peer-grades status alert heading',
},
});

Expand All @@ -203,7 +203,7 @@ const doneHeadings = defineMessages({
const staffAlerts = defineMessages({
staff: {
id: 'frontend-app-ora.StatusAlert.xblock.staffAssessment',
defaultMessage: 'Your final grade will be ready once the instructor has finished grading your response. Check back periodically to see if there is an update.',
defaultMessage: 'Your final grade will be ready once the instructor has finished grading your response. Check back periodically to see if there is an update.',
description: 'Status alert message for staff assessment step',
},
});
Expand Down
14 changes: 7 additions & 7 deletions src/hooks/actions/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const messages = defineMessages({
viewGrades: {
id: 'frontend-app-ora.Actions.viewGrades',
defaultMessage: 'View your grades',
description: 'Action button to load Grades step',
description: 'Action button to load grades step',
},
exit: {
id: 'frontend-app-ora.Actions.exit',
defaultMessage: 'Exit',
description: 'Action button to exit Grades step',
description: 'Action button to exit grades step',
},
loadNext: {
id: 'frontend-app-ora.Actions.loadNext',
Expand All @@ -80,22 +80,22 @@ const messages = defineMessages({
practiceResponse: {
id: 'frontend-app-ora.Actions.practiceResponse',
defaultMessage: 'practice response',
description: 'Student Training type of response for "Load(ing/ed) next <type>" action',
description: 'Student training type of response for "Load(ing/ed) next <type>" action',
},
gradeSubmitted: {
id: 'frontend-app-ora.Actions.gradeSubmitted',
defaultMessage: 'Grade Submitted',
description: 'Submit Grade button text after successful submission',
defaultMessage: 'Grade submitted',
description: 'Submit grade button text after successful submission',
},
submitGrade: {
id: 'frontend-app-ora.Actions.submitGrade',
defaultMessage: 'Submit {viewStep}grade',
description: 'Submit Grade button text',
description: 'Submit grade button text',
},
submittingGrade: {
id: 'frontend-app-ora.Actions.submittingGrade',
defaultMessage: 'Submitting grade',
description: 'Submit Grade button text while submitting',
description: 'Submit grade button text while submitting',
},
});

Expand Down
Loading

0 comments on commit 3900f61

Please sign in to comment.