Skip to content

Commit

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

* Refs inveniosoftware/invenio-app-rdm#1707
  • Loading branch information
chriz-uniba authored and jrcastro2 committed Jul 11, 2024
1 parent 29f20f4 commit a8e087d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions invenio_vocabularies/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion invenio_vocabularies/contrib/affiliations/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
2 changes: 1 addition & 1 deletion invenio_vocabularies/contrib/funders/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion invenio_vocabularies/contrib/subjects/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit a8e087d

Please sign in to comment.