Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: Fixes strings mainly marked for translation. #196

Merged
merged 1 commit into from
Jun 9, 2022
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
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"
)