core, frontends: fix invalid translatable strings.
Some f-strings where used in translatable text, this has been fixed by using explicit `format()` call (using a script based on `tokenize`). As tokenize messes with spaces, a reformating tool (`black`) has been applied to some files afterwards.
This commit is contained in:
parent
8d8541015c
commit
7adbf3ead8
1 changed files with 823 additions and 601 deletions
|
|
@ -113,7 +113,7 @@ class Set(base.CommandBase):
|
|||
async def start(self):
|
||||
path = self.args.image_path
|
||||
if not os.path.exists(path):
|
||||
self.disp(_(f"file {path!r} doesn't exist!"), error=True)
|
||||
self.disp(_("file {path} doesn't exist!").format(path=repr(path)), error=True)
|
||||
self.host.quit(C.EXIT_BAD_ARG)
|
||||
path = os.path.abspath(path)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue