Do not replace values before passing to gettext

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2020-10-24 18:23:59 +02:00
parent 750f123620
commit 81cc446b90
6 changed files with 17 additions and 17 deletions

View File

@@ -123,7 +123,7 @@ def load_relation(filename: str, defname: Optional[str]) -> Optional[str]:
'''
if not os.path.isfile(filename):
print(colorize(
_(f'{filename} is not a file'), ERROR_COLOR), file=sys.stderr)
_('%s is not a file') % filename, ERROR_COLOR), file=sys.stderr)
return None
if defname is None: