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
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ const AssignmentTableRow = ({
<LinkContainer to={ASSIGNMENT_EDIT_URI_FACTORY(id)}>
<Button bsSize="xs" bsStyle="warning">
<EditIcon />{' '}
<FormattedMessage
id="app.adminAssignmentsTableRow.edit"
defaultMessage="Edit"
/>
<FormattedMessage id="generic.edit" defaultMessage="Edit" />
</Button>
</LinkContainer>
<DeleteAssignmentButtonContainer id={id} bsSize="xs" />
Expand Down
10 changes: 4 additions & 6 deletions src/components/Exercises/ExerciseDetail/LoadingExerciseDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
import { LoadingIcon } from '../../icons';
import Box from '../../widgets/Box';

const LoadingExerciseDetail = () => (
const LoadingExerciseDetail = () =>
<Box
title={
<FormattedMessage
Expand All @@ -12,13 +12,11 @@ const LoadingExerciseDetail = () => (
/>
}
>
<LoadingIcon />
{' '}
<LoadingIcon />{' '}
<FormattedMessage
id="app.exercises.loadingDetail"
defaultMessage="Loading exercise's detail"
defaultMessage="Loading the detail of the exercise"
/>
</Box>
);
</Box>;

export default LoadingExerciseDetail;
7 changes: 2 additions & 5 deletions src/components/Exercises/ExercisesList/ExercisesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ const ExercisesList = ({
<tr>
<th />
<th>
<FormattedMessage id="app.exercisesList.name" defaultMessage="Name" />
<FormattedMessage id="generic.name" defaultMessage="Name" />
</th>
<th>
<FormattedMessage
id="app.exercisesList.author"
defaultMessage="Author"
/>
<FormattedMessage id="generic.author" defaultMessage="Author" />
</th>
<th>
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,10 @@ const ExercisesSimpleList = ({
<thead>
<tr>
<th>
<FormattedMessage
id="app.exercisesSimpleList.name"
defaultMessage="Name"
/>
<FormattedMessage id="generic.name" defaultMessage="Name" />
</th>
<th>
<FormattedMessage
id="app.exercisesSimpleListt.author"
defaultMessage="Author"
/>
<FormattedMessage id="generic.author" defaultMessage="Author" />
</th>
<th>
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const AttachmentFilesTableHeaderRow = () =>
<tr>
<th>
<FormattedMessage
id="app.attachmentFilesTable.fileName"
defaultMessage="Original filename"
id="app.filesTable.originalFileName"
defaultMessage="Original File Name"
/>
</th>
<th>
Expand All @@ -17,15 +17,12 @@ const AttachmentFilesTableHeaderRow = () =>
</th>
<th>
<FormattedMessage
id="app.attachmentFilesTable.fileSize"
defaultMessage="Filesize"
id="app.filesTable.fileSize"
defaultMessage="File Size"
/>
</th>
<th>
<FormattedMessage
id="app.attachmentFilesTable.fileUploadedAt"
defaultMessage="Uploaded at"
/>
<FormattedMessage id="generic.uploadedAt" defaultMessage="Uploaded at" />
</th>
<th />
</tr>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,18 @@ const SupplementaryFilesTableHeaderRow = ({ viewOnly }) =>
<tr>
<th>
<FormattedMessage
id="app.supplementaryFilesTable.fileName"
defaultMessage="Original filename"
id="app.filesTable.originalFileName"
defaultMessage="Original File Name"
/>
</th>
<th>
<FormattedMessage
id="app.supplementaryFilesTable.fileSize"
defaultMessage="Filesize"
id="app.filesTable.fileSize"
defaultMessage="File Size"
/>
</th>
<th>
<FormattedMessage
id="app.supplementaryFilesTable.fileUploadedAt"
defaultMessage="Uploaded at"
/>
<FormattedMessage id="generic.uploadedAt" defaultMessage="Uploaded at" />
</th>
{!viewOnly && <th />}
</tr>;
Expand Down
12 changes: 5 additions & 7 deletions src/components/Groups/GroupDetail/LoadingGroupDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,23 @@ import { FormattedMessage } from 'react-intl';
import { LoadingIcon } from '../../icons';
import Box from '../../widgets/Box';

const LoadingGroupDetail = () => (
const LoadingGroupDetail = () =>
<Box
noPadding={false}
title={
<span>
<LoadingIcon />
{' '}
<LoadingIcon />{' '}
<FormattedMessage
id="app.groupDetail.loading"
defaultMessage="Loading group's description ..."
defaultMessage="Loading description of the group ..."
/>
</span>
}
>
<FormattedMessage
id="app.groupDetail.loading"
defaultMessage="Loading group's description ..."
defaultMessage="Loading description of the group ..."
/>
</Box>
);
</Box>;

export default LoadingGroupDetail;
8 changes: 4 additions & 4 deletions src/components/Groups/GroupTopButtons/GroupTopButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ const GroupTopButtons = ({
<Button bsStyle="warning">
<EditIcon />{' '}
<FormattedMessage
id="app.group.edit"
defaultMessage="Edit group settings"
id="app.editGroup.title"
defaultMessage="Edit Group"
/>
</Button>
</LinkContainer>}
<LinkContainer to={GROUP_INFO_URI_FACTORY(group.id)}>
<Button bsStyle="primary">
<InfoIcon />{' '}
<FormattedMessage id="app.group.seeInfo" defaultMessage="Group Info" />
<FormattedMessage id="app.group.info" defaultMessage="Group Info" />
</Button>
</LinkContainer>
{!group.organizational &&
<LinkContainer to={GROUP_DETAIL_URI_FACTORY(group.id)}>
<Button bsStyle="primary">
<GroupIcon />{' '}
<FormattedMessage
id="app.group.seeDetail"
id="app.group.detailButton"
defaultMessage="Group Detail"
/>
</Button>
Expand Down
10 changes: 4 additions & 6 deletions src/components/Instances/InstanceDetail/LoadingInstanceDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
import { LoadingIcon } from '../../icons';
import Box from '../../widgets/Box';

const LoadingInstanceDetail = () => (
const LoadingInstanceDetail = () =>
<Box
title={
<FormattedMessage
Expand All @@ -12,13 +12,11 @@ const LoadingInstanceDetail = () => (
/>
}
>
<LoadingIcon />
{' '}
<LoadingIcon />{' '}
<FormattedMessage
id="app.instances.loadingDetail"
defaultMessage="Loading instance's detail"
defaultMessage="Loading detail of the instance"
/>
</Box>
);
</Box>;

export default LoadingInstanceDetail;
5 changes: 1 addition & 4 deletions src/components/Instances/InstancesTable/InstancesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const InstancesTable = ({ instances, links: { INSTANCE_URI_FACTORY }, intl }) =>
<thead>
<tr>
<th>
<FormattedMessage
id="app.instancesTable.name"
defaultMessage="Name"
/>
<FormattedMessage id="generic.name" defaultMessage="Name" />
</th>
<th>
<FormattedMessage
Expand Down
24 changes: 7 additions & 17 deletions src/components/Pipelines/BoxForm/BoxForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ class BoxForm extends Component {
component={TextField}
required
label={
<FormattedMessage
id="app.pipelineEditor.BoxForm.name"
defaultMessage="Name:"
/>
<span>
<FormattedMessage id="generic.name" defaultMessage="Name" />:
</span>
}
/>

Expand Down Expand Up @@ -135,31 +134,22 @@ class BoxForm extends Component {
reset={reset}
messages={{
success: (
<FormattedMessage
id="app.pipelineEditor.BoxForm.success"
defaultMessage="Saved"
/>
<FormattedMessage id="generic.saved" defaultMessage="Saved" />
),
submit: (
<FormattedMessage
id="app.pipelineEditor.BoxForm.createGroup"
defaultMessage="Save"
/>
<FormattedMessage id="generic.save" defaultMessage="Save" />
),
submitting: (
<FormattedMessage
id="app.pipelineEditor.BoxForm.processing"
id="generic.saving"
defaultMessage="Saving ..."
/>
)
}}
/>
<Button onClick={onHide}>
<CloseIcon />&nbsp;
<FormattedMessage
id="app.pipelineEditor.BoxForm.close"
defaultMessage="Close"
/>
<FormattedMessage id="generic.close" defaultMessage="Close" />
</Button>
<span style={{ display: 'inline-block', width: '5px' }} />
<ConfirmDeleteButton
Expand Down
5 changes: 1 addition & 4 deletions src/components/Pipelines/PipelineDetail/PipelineDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ const PipelineDetail = ({
<tbody>
<tr>
<th>
<FormattedMessage
id="app.pipeline.author"
defaultMessage="Author:"
/>
<FormattedMessage id="generic.author" defaultMessage="Author" />:
</th>
<td>
<UsersNameContainer userId={author} />
Expand Down
7 changes: 2 additions & 5 deletions src/components/Pipelines/PipelinesList/PipelinesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ const PipelinesList = ({ pipelines = [], createActions, intl }) =>
<tr>
<th />
<th>
<FormattedMessage id="app.pipelinesList.name" defaultMessage="Name" />
<FormattedMessage id="generic.name" defaultMessage="Name" />
</th>
<th>
<FormattedMessage
id="app.pipelinesList.author"
defaultMessage="Author"
/>
<FormattedMessage id="generic.author" defaultMessage="Author" />
</th>
<th>
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,10 @@ const PipelinesSimpleList = ({ pipelines, createActions, intl, ...rest }) =>
<thead>
<tr>
<th>
<FormattedMessage
id="app.pipelinesSimpleList.name"
defaultMessage="Name"
/>
<FormattedMessage id="generic.name" defaultMessage="Name" />
</th>
<th>
<FormattedMessage
id="app.pipelinesSimpleList.author"
defaultMessage="Author"
/>
<FormattedMessage id="generic.author" defaultMessage="Author" />
</th>
{createActions &&
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const ReferenceSolutionDetail = ({
</td>
<th>
<FormattedMessage
id="app.referenceSolutionDetail.description"
id="generic.description"
defaultMessage="Description"
/>
/>:
</th>
<td>
{description}
Expand All @@ -60,9 +60,9 @@ const ReferenceSolutionDetail = ({
</td>
<th>
<FormattedMessage
id="app.referenceSolutionDetail.uploadedAt"
defaultMessage="Uploaded at:"
/>
id="generic.uploadedAt"
defaultMessage="Uploaded at"
/>:
</th>
<td>
<FormattedDate value={createdAt * 1000} />
Expand All @@ -75,10 +75,7 @@ const ReferenceSolutionDetail = ({
<Icon name="user" />
</td>
<th>
<FormattedMessage
id="app.referenceSolution.author"
defaultMessage="Author:"
/>
<FormattedMessage id="generic.author" defaultMessage="Author" />:
</th>
<td>
<UsersNameContainer userId={userId} />
Expand Down
16 changes: 4 additions & 12 deletions src/components/SisIntegration/EditTerm/EditTerm.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,19 @@ const EditTerm = ({
hasFailed={submitFailed}
invalid={invalid}
messages={{
submit: (
<FormattedMessage id="app.editSisTerm.save" defaultMessage="Save" />
),
submit: <FormattedMessage id="generic.save" defaultMessage="Save" />,
submitting: (
<FormattedMessage
id="app.editSisTerm.saving"
defaultMessage="Saving ..."
/>
<FormattedMessage id="generic.saving" defaultMessage="Saving ..." />
),
success: (
<FormattedMessage
id="app.editSisTerm.successs"
defaultMessage="Saved"
/>
<FormattedMessage id="generic.saved" defaultMessage="Saved" />
)
}}
/>

<Button bsStyle="default" className="btn-flat" onClick={onClose}>
<CloseIcon />{' '}
<FormattedMessage id="app.editSisTerm.close" defaultMessage="Close" />
<FormattedMessage id="generic.close" defaultMessage="Close" />
</Button>
</Modal.Footer>
</Modal>;
Expand Down
Loading