From a8e087dae02a4ac4b073f3121232a3080b138233 Mon Sep 17 00:00:00 2001 From: "Zeller, Christina" Date: Wed, 8 Jun 2022 16:23:57 +0200 Subject: [PATCH] global: Fixes strings mainly marked for translation. * Adds dots at the end of sentences. * Refs https://github.com/inveniosoftware/invenio-app-rdm/issues/1707 --- invenio_vocabularies/cli.py | 6 +++--- invenio_vocabularies/contrib/affiliations/schema.py | 2 +- invenio_vocabularies/contrib/funders/schema.py | 2 +- invenio_vocabularies/contrib/subjects/schema.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/invenio_vocabularies/cli.py b/invenio_vocabularies/cli.py index 24e7b08c..80ccb3eb 100644 --- a/invenio_vocabularies/cli.py +++ b/invenio_vocabularies/cli.py @@ -120,7 +120,7 @@ def _output_process(vocabulary, op, success, errored, filtered): def import_vocab(vocabulary, filepath=None, origin=None, num_samples=None): """Import a vocabulary.""" if not filepath and not origin: - click.secho("One of --filepath or --origin must be present", fg="red") + click.secho("One of --filepath or --origin must be present.", fg="red") exit(1) config = get_config_for_ds(vocabulary, filepath, origin) @@ -137,7 +137,7 @@ def import_vocab(vocabulary, filepath=None, origin=None, num_samples=None): def update(vocabulary, filepath=None, origin=None): """Import a vocabulary.""" if not filepath and not origin: - click.secho("One of --filepath or --origin must be present", fg="red") + click.secho("One of --filepath or --origin must be present.", fg="red") exit(1) config = get_config_for_ds(vocabulary, filepath, origin) @@ -163,7 +163,7 @@ def convert( """Convert a vocabulary to a new format.""" if not filepath and (not origin or not target): click.secho( - "One of --filepath or --origin and --target must be present", + "One of --filepath or --origin and --target must be present.", fg="red" ) exit(1) diff --git a/invenio_vocabularies/contrib/affiliations/schema.py b/invenio_vocabularies/contrib/affiliations/schema.py index 5bc1b5ba..964a264f 100644 --- a/invenio_vocabularies/contrib/affiliations/schema.py +++ b/invenio_vocabularies/contrib/affiliations/schema.py @@ -51,6 +51,6 @@ def validate_affiliation(self, data, **kwargs): if not id_ and not name: raise ValidationError( - _("An existing id or a free text name must be present"), + _("An existing id or a free text name must be present."), "affiliations" ) diff --git a/invenio_vocabularies/contrib/funders/schema.py b/invenio_vocabularies/contrib/funders/schema.py index 7024847b..99582c13 100644 --- a/invenio_vocabularies/contrib/funders/schema.py +++ b/invenio_vocabularies/contrib/funders/schema.py @@ -40,7 +40,7 @@ def validate_funder(self, data, **kwargs): if not id_ and not name: raise ValidationError( - _("An existing id or a free text name must be present"), + _("An existing id or a free text name must be present."), "funder" ) diff --git a/invenio_vocabularies/contrib/subjects/schema.py b/invenio_vocabularies/contrib/subjects/schema.py index 9d651a93..de78c619 100644 --- a/invenio_vocabularies/contrib/subjects/schema.py +++ b/invenio_vocabularies/contrib/subjects/schema.py @@ -45,6 +45,6 @@ def validate_subject(self, data, **kwargs): if not id_ and not subject: raise ValidationError( - _("An existing id or a free text subject must be present"), + _("An existing id or a free text subject must be present."), "subjects" )