Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default [{
'import/no-named-as-default': 2,
'react/no-did-update-set-state': 0,
'react/display-name': 0,
quotes: [2, 'single'],
quotes: [2, 'single', { avoidEscape: true }],
'jsx-quotes': [2, 'prefer-double'],
'no-console': 1,
'no-unused-vars': 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const AssignmentDetails = ({
<Explanation id="assigned-at">
<FormattedMessage
id="app.assignment.assignedAtExplanation"
defaultMessage="The time of assignment creation. Note that the assignment may have been made visible to students at different time."
defaultMessage="The time of assignment creation. Note that the assignment may have been made visible to students at a different time."
/>
</Explanation>
</th>
Expand Down Expand Up @@ -176,7 +176,7 @@ const AssignmentDetails = ({
<Explanation id="maxPointsTwoLimits">
<FormattedMessage
id="app.assignment.maxPointsTwoLimitsExplanation"
defaultMessage="The actual limit is determined by the time of submission (i.e., whether it was before the first deadline or between the deadlines). The points limit applies to completely correct solutions, solutions with lower correctness are granted relative portion of these points."
defaultMessage="The actual limit is determined by the time of submission (i.e., whether it was before the first deadline or between the deadlines). The points limit applies to completely correct solutions, solutions with lower correctness are granted a relative portion of these points."
/>
</Explanation>
</>
Expand All @@ -186,7 +186,7 @@ const AssignmentDetails = ({
<Explanation id="maxPoints">
<FormattedMessage
id="app.assignment.maxPointsExplanation"
defaultMessage="The amount of points awarded to completely correct solutions submitted before deadline. Solutions with lower correctness are granted relative portion of these points."
defaultMessage="The amount of points awarded to completely correct solutions submitted before the deadline. Solutions with lower correctness are granted a relative portion of these points."
/>
</Explanation>
</>
Expand Down Expand Up @@ -307,7 +307,7 @@ const AssignmentDetails = ({
<Explanation id="solutionFilesLimit">
<FormattedMessage
id="app.assignment.solutionFilesLimitExplanation"
defaultMessage="The restrictions may limit maximal number of submitted files and their total size."
defaultMessage="The restrictions may limit the maximal number of submitted files and their total size."
/>
</Explanation>
</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const AssignmentMaxPoints = ({
{maxPointsDeadlineInterpolation ? (
<FormattedMessage
id="app.assignment.maxPointsInterpolationTooltip"
defaultMessage="Points between the deadlines are linearly changing towards the second limit"
defaultMessage="Points between the deadlines change linearly towards the second limit"
/>
) : (
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const AssignmentSync = ({ syncInfo, exerciseSync }) => {
<h4>
<FormattedMessage
id="app.assignment.syncRequiredTitle"
defaultMessage="The exercise data are newer than assignment data"
defaultMessage="The exercise data are newer than the assignment data"
/>
</h4>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const AssignmentSyncIcon = ({ id, syncInfo, ...props }) => {
<Popover.Header>
<FormattedMessage
id="app.assignment.syncRequiredTitle"
defaultMessage="The exercise data are newer than assignment data"
defaultMessage="The exercise data are newer than the assignment data"
/>
</Popover.Header>
<Popover.Body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class EvaluationProgress extends Component {
variant={finished ? 'success' : 'secondary'}
onClick={finishProcessing}
disabled={!showContinueButton}>
<FormattedMessage id="app.evaluationProgress.continue" defaultMessage="See The Results" />
<FormattedMessage id="app.evaluationProgress.continue" defaultMessage="See the Results" />
</Button>
</p>
</Modal.Footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const warn = ({ points }, { maxPoints }) => {
warnings._warning = (
<FormattedMessage
id="app.editShadowAssignmentPointsForm.validation.pointsOutOfRange"
defaultMessage="Points are out of regular range. Regular score for this assignment is between 0 and {maxPoints}."
defaultMessage="Points are out of the regular range. The regular score for this assignment is between 0 and {maxPoints}."
values={{ maxPoints }}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/AsyncJobs/AsyncJobsList/AsyncJobsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const AsyncJobsList = ({ asyncJobs, abort = null, links: { ASSIGNMENT_DETAIL_URI
question={
<FormattedMessage
id="app.asyncJobs.list.abortConfirm"
defaultMessage="Do you really wish to abort selected background job?"
defaultMessage="Do you really wish to abort the selected background job?"
/>
}>
<AbortIcon className="text-danger" gapRight={2} />
Expand Down
4 changes: 2 additions & 2 deletions src/components/Broker/BrokerButtons/BrokerButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const BrokerButtons = ({
pending ? null : (
<FormattedMessage
id="app.broker.confirmFreeze"
defaultMessage="Are you sure you want to freeze broker? Broker will not longer accept evaluation requests!"
defaultMessage="Are you sure you want to freeze the broker? The broker will no longer accept evaluation requests!"
/>
)
}>
Expand All @@ -53,7 +53,7 @@ const BrokerButtons = ({
pending ? null : (
<FormattedMessage
id="app.broker.confirmUnfreeze"
defaultMessage="Are you sure you want to unfreeze broker?"
defaultMessage="Are you sure you want to unfreeze the broker?"
/>
)
}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const ExerciseCallouts = ({
<p>
<FormattedMessage
id="app.exercise.noReferenceSolutionsDetailed"
defaultMessage="The exercise configuration should be verified on one reference solution at least before it can be assigned."
defaultMessage="The exercise configuration should be verified on at least one reference solution before it can be assigned."
/>
</p>
{permissionHints && permissionHints.addReferenceSolution && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Exercises/ExerciseDetail/ExerciseDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const ExerciseDetail = ({
<Explanation id="solutionFilesLimit">
<FormattedMessage
id="app.assignment.solutionFilesLimitExplanation"
defaultMessage="The restrictions may limit maximal number of submitted files and their total size."
defaultMessage="The restrictions may limit the maximal number of submitted files and their total size."
/>
</Explanation>
</th>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Exercises/ExercisesList/ExercisesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const ExercisesList = ({
<td className="text-center text-body-secondary" colSpan={showGroups ? 8 : 7}>
<FormattedMessage
id="app.exercisesList.empty"
defaultMessage="No exercises match selected filters."
defaultMessage="No exercises match the selected filters."
/>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const ReferenceSolutionsTableRow = ({
tooltip={
<FormattedMessage
id="app.referenceSolutionTable.stillEvaluating"
defaultMessage="Last submission is still evaluating"
defaultMessage="Last submission is still being evaluated"
/>
}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Groups/AddStudent/AddStudent.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const AddStudent = ({ groups, groupsAccessor, groupId, instanceId, canSearch = f
<div className="text-center text-body-secondary small">
<FormattedMessage
id="app.addStudent.cannotSearch"
defaultMessage="You do not have permissions to search students, so you cannot add them explicitly."
defaultMessage="You do not have permission to search for students, so you cannot add them explicitly."
/>
</div>
)}
Expand Down Expand Up @@ -132,7 +132,7 @@ const AddStudent = ({ groups, groupsAccessor, groupId, instanceId, canSearch = f
<InsetPanel>
<FormattedMessage
id="app.addStudent.inviteDialog.explain"
defaultMessage="An invitation will be sent to the user at given email address. The user will receive a link for registration as a local user. User profile details (name and email) must be filled in correctly, since the user will not be able to modify them. Optionally, you may select a list of groups to which the user will be assigned immediately after registration."
defaultMessage="An invitation will be sent to the user at the given email address. The user will receive a link for registration as a local user. User profile details (name and email) must be filled in correctly, since the user will not be able to modify them. Optionally, you may select a list of groups to which the user will be assigned immediately after registration."
/>
</InsetPanel>

Expand Down
2 changes: 1 addition & 1 deletion src/components/Groups/GroupExamPending/GroupExamPending.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class GroupExamPending extends Component {
<InfoIcon gapRight={2} />
<FormattedMessage
id="app.groupExams.pending.teacherInfo"
defaultMessage="The exam assignments are currently visible only to students who have lock themselves in the group. "
defaultMessage="The exam assignments are currently visible only to students who have locked themselves in the group."
/>
</p>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const MemberGroupsDropdown = ({ groupId = null, memberGroups }) => (
<DropdownFragment
groupId={groupId}
groups={memberGroups.student}
title={<FormattedMessage id="app.memberGroups.asStudent" defaultMessage="Groups you are member of" />}
title={<FormattedMessage id="app.memberGroups.asStudent" defaultMessage="Groups you are a member of" />}
icon={<UserIcon gapRight={2} />}
/>

Expand Down
2 changes: 1 addition & 1 deletion src/components/Groups/helpers/groupExamMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const LOCK_EXPLANATION = {
restricted: (
<FormattedMessage
id="app.groupExams.lockExplanation.restricted"
defaultMessage="Users taking the exam will not be allowed to access any other group, not even for reading (so that are cut of source codes they submitted before the exam)."
defaultMessage="Users taking the exam will not be allowed to access any other group, not even for reading (so that they are cut off from source codes they submitted before the exam)."
/>
),
accepted: (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Pipelines/BoxForm/BoxForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const validate = (
const boxType = type && boxTypes[type];
if (!boxType) {
errors.type = (
<FormattedMessage id="app.pipelines.boxForm.missingType" defaultMessage="You must select type of the box." />
<FormattedMessage id="app.pipelines.boxForm.missingType" defaultMessage="You must select the type of the box." />
);
} else {
// Check that associated variables match the prescribed port types
Expand All @@ -315,7 +315,7 @@ const validate = (
[ports, encodeId(portName)],
<FormattedMessage
id="app.pipelines.boxesTable.wrongVariableType"
defaultMessage="Associated variable is of <code>{type}</code>, but <code>{descType}</code> type is required."
defaultMessage="Associated variable is of <code>{type}</code> type, but <code>{descType}</code> type is required."
values={{
type: variable.type,
descType: boxType[ports][portName].type,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Pipelines/BoxesTable/BoxesTableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const BoxesTablePortsFragment = ({ box, port, variables, selectedVariable, assig
tooltip={
<FormattedMessage
id="app.pipelines.boxesTable.wrongVariableType"
defaultMessage="Associated variable is of <code>{type}</code>, but <code>{descType}</code> type is required."
defaultMessage="Associated variable is of <code>{type}</code> type, but <code>{descType}</code> type is required."
values={{
type: variables[port.value],
descType: port.prescribedType,
Expand Down Expand Up @@ -176,7 +176,7 @@ const BoxesTablePortsFragment = ({ box, port, variables, selectedVariable, assig
tooltip={
<FormattedMessage
id="app.pipelines.boxesTable.createNewVariable"
defaultMessage="Create new variable and associate it with this port."
defaultMessage="Create a new variable and associate it with this port."
/>
}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Pipelines/ParametersList/ParametersList.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ const pipelineParams = {
hasExtraFiles: (
<FormattedMessage
id="app.pipelineParams.hasExtraFiles"
defaultMessage="Extra source files can be added to tested solution"
defaultMessage="Extra source files can be added to the tested solution"
/>
),
hasSuccessExitCodes: (
<FormattedMessage
id="app.pipelineParams.hasSuccessExitCodes"
defaultMessage="Configurable exit-codes that are accepted as a success when tested solution is executed"
defaultMessage="Configurable exit-codes that are accepted as a success when the tested solution is executed"
/>
),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const PipelineExercisesList = ({
}}>
<FormattedMessage
id="app.pipelineExercisesList.collapse"
defaultMessage="Collapse the list and show only short preview."
defaultMessage="Collapse the list and show only a short preview."
/>
</a>
) : (
Expand Down
Loading
Loading