comparison 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
comparison
equal deleted inserted replaced
3567:a240748ed686 3568:04283582966f
95 else: 95 else:
96 self.disp(_("Bus name found: [%s]" % bus_name), 1) 96 self.disp(_("Bus name found: [%s]" % bus_name), 1)
97 for method in methods: 97 for method in methods:
98 path, iface, command = method 98 path, iface, command = method
99 self.disp( 99 self.disp(
100 _(f"Command found: (path:{path}, iface: {iface}) [{command}]"), 100 _("Command found: (path:{path}, iface: {iface}) [{command}]")
101 .format(path=path, iface=iface, command=command),
101 1, 102 1,
102 ) 103 )
103 self.host.quit() 104 self.host.quit()
104 105
105 106