diff sat/plugins/plugin_xep_0329.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 e47aa1fb7b24
children 813595f88612
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0329.py	Mon Jun 14 12:19:21 2021 +0200
+++ b/sat/plugins/plugin_xep_0329.py	Mon Jun 14 18:35:12 2021 +0200
@@ -708,7 +708,8 @@
                 )
             else:
                 log.warning(
-                    _(f"unexpected element, ignoring: {elt.toXml()}")
+                    _("unexpected element, ignoring: {elt}")
+                    .format(elt=elt.toXml())
                 )
                 continue
             files.append(file_data)