diff --git a/pygeoapi/api/__init__.py b/pygeoapi/api/__init__.py index 807571a21..46d14bc97 100644 --- a/pygeoapi/api/__init__.py +++ b/pygeoapi/api/__init__.py @@ -1043,13 +1043,13 @@ def describe_collections(self, request: Union[APIRequest, Any], collection['links'].append({ 'type': FORMAT_TYPES[F_JSON], 'rel': f'{OGC_RELTYPES_BASE}/schema', - 'title': l10.translate('Schema of collection in JSON', request.locale), # noqa + 'title': l10n.translate('Schema of collection in JSON', request.locale), # noqa 'href': f'{self.get_collections_url()}/{k}/schema?f={F_JSON}' # noqa }) collection['links'].append({ 'type': FORMAT_TYPES[F_HTML], 'rel': f'{OGC_RELTYPES_BASE}/schema', - 'title': l10.translate('Schema of collection in HTML', request.locale), # noqa + 'title': l10n.translate('Schema of collection in HTML', request.locale), # noqa 'href': f'{self.get_collections_url()}/{k}/schema?f={F_HTML}' # noqa }) diff --git a/pygeoapi/api/processes.py b/pygeoapi/api/processes.py index ddcd30a6c..3cbdc3379 100644 --- a/pygeoapi/api/processes.py +++ b/pygeoapi/api/processes.py @@ -541,7 +541,7 @@ def delete_job( 'href': jobs_url, 'rel': 'up', 'type': FORMAT_TYPES[F_JSON], - 'title': l10.translate('The job list for the current process', request.locale) # noqa + 'title': l10n.translate('The job list for the current process', request.locale) # noqa }] } else: