diff --git a/L10n/en.template b/L10n/en.template index 11ed447a..4ccf2c6d 100644 --- a/L10n/en.template +++ b/L10n/en.template @@ -230,6 +230,9 @@ /* Section heading in settings. [prefs.py] */ "File location" = "File location"; +/* Failures to access Frontier CAPI endpoints [companion.py] */ +"Frontier CAPI query failure" = "Frontier CAPI query failure"; + /* CQC rank. [stats.py] */ "Gladiator" = "Gladiator"; diff --git a/companion.py b/companion.py index 4898cd84..79858b90 100644 --- a/companion.py +++ b/companion.py @@ -541,7 +541,7 @@ class Session(object): except Exception as e: logger.debug('Attempting GET', exc_info=e) - raise ServerError(f'Frontier CAPI query failure: {endpoint}') from e + raise ServerError(f'{_("Frontier CAPI query failure")}: {endpoint}') from e if r.url.startswith(SERVER_AUTH): logger.info('Redirected back to Auth Server')