Skip to content

Commit

Permalink
global: Fixes strings marked for translation.
Browse files Browse the repository at this point in the history
* Adds dots at the end of sentences.
* Uses colons where appropriate.
* Fixes typos.

* Refs: inveniosoftware/invenio-app-rdm#1707
  • Loading branch information
chriz-uniba committed Jun 9, 2022
1 parent 8f7a094 commit 1d3aa80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/lib/components/Funding/FundingModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ const StandardSchema = Yup.object().shape({
const CustomFundingSchema = Yup.object().shape({
selectedFunding: Yup.object().shape({
funder: Yup.object().shape({
id: Yup.string().required(i18next.t('Funder is required')),
id: Yup.string().required(i18next.t('Funder is required.')),
}),
award: Yup.object().shape({
title: Yup.string().test({
name: 'testTitle',
message: i18next.t('Title must be set alongside number'),
message: i18next.t('Title must be set alongside number.'),
test: function testTitle(value) {
const { number } = this.parent;

Expand All @@ -68,7 +68,7 @@ const CustomFundingSchema = Yup.object().shape({
}),
number: Yup.string().test({
name: 'testNumber',
message: i18next.t('Number must be set alongside title'),
message: i18next.t('Number must be set alongside title.'),
test: function testNumber(value) {
const { title } = this.parent;

Expand All @@ -80,7 +80,7 @@ const CustomFundingSchema = Yup.object().shape({
},
}),
url: Yup.string()
.url(i18next.t('Url Must be a valid url'))
.url(i18next.t('Url must be a valid url.'))
.test({
name: 'validateUrlDependencies',
message: i18next.t('Url must be set alongside title and number.'),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/PublishButton/SubmitReviewModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class SubmitReviewModal extends Component {
<p>
<Icon name="warning sign" />
{i18next.t(
'Before requesting review please read and check the following.'
'Before requesting review please read and check the following:'
)}
</p>
</Message>
Expand Down Expand Up @@ -118,7 +118,7 @@ export class SubmitReviewModal extends Component {
fieldPath="acceptAfterPublishRecord"
label={
<Trans
defaults="If your upload is accepted by the community curators, it will be <bold> immediately published.</bold> Before that, you will still be able to modify metadata and files of this uploads."
defaults="If your upload is accepted by the community curators, it will be <bold>immediately published</bold>. Before that, you will still be able to modify metadata and files of this upload."
values={{
communityTitle: communityTitle,
}}
Expand Down

0 comments on commit 1d3aa80

Please sign in to comment.