Mercurial > libervia-backend
diff sat_frontends/jp/cmd_adhoc.py @ 3568:04283582966f
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.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 14 Jun 2021 18:35:12 +0200 |
parents | be6d91572633 |
children | 524856bd7b19 |
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_adhoc.py Mon Jun 14 12:19:21 2021 +0200 +++ b/sat_frontends/jp/cmd_adhoc.py Mon Jun 14 18:35:12 2021 +0200 @@ -97,7 +97,8 @@ 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()