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:
Goffi 2021-06-14 18:35:12 +02:00
commit 7adbf3ead8

View file

@ -97,7 +97,8 @@ class Remote(base.CommandBase):
for method in methods:
path, iface, command = method
self.disp(
_(f"Command found: (path:{path}, iface: {iface}) [{command}]"),
_("Command found: (path:{path}, iface: {iface}) [{command}]")
.format(path=path, iface=iface, command=command),
1,
)
self.host.quit()