From 712d8db7c4ac3f3c5da760382649f374cf3292bf Mon Sep 17 00:00:00 2001 From: "Zeller, Christina" Date: Wed, 8 Jun 2022 16:31:35 +0200 Subject: [PATCH] global: Fixes strings marked for translation. * Adds dots at the end of sentences. * Refs: https://github.com/inveniosoftware/invenio-app-rdm/issues/1707 --- invenio_rdm_records/oaiserver/services/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invenio_rdm_records/oaiserver/services/services.py b/invenio_rdm_records/oaiserver/services/services.py index 73cd0c2ee..86a6a1743 100644 --- a/invenio_rdm_records/oaiserver/services/services.py +++ b/invenio_rdm_records/oaiserver/services/services.py @@ -68,7 +68,7 @@ def _validate_spec(self, spec): if spec.startswith(reserved_prefix): raise ValidationError( _( - "The spec must not start with '{prefix}'".format( + "The spec must not start with '{prefix}'.".format( prefix=reserved_prefix ) ), @@ -80,7 +80,7 @@ def _validate_spec(self, spec): if not bool(blop.match(spec)): raise ValidationError( _( - "The spec should only consist of letters, numbers or {marks}".format( + "The spec should only consist of letters, numbers or {marks}.".format( marks=",".join(["-", "_", ".", "!", "~", "*", "'", "(", ")"]) ) ),