Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
3567:a240748ed686 | 3568:04283582966f |
---|---|
706 elt, | 706 elt, |
707 file_data, | 707 file_data, |
708 ) | 708 ) |
709 else: | 709 else: |
710 log.warning( | 710 log.warning( |
711 _(f"unexpected element, ignoring: {elt.toXml()}") | 711 _("unexpected element, ignoring: {elt}") |
712 .format(elt=elt.toXml()) | |
712 ) | 713 ) |
713 continue | 714 continue |
714 files.append(file_data) | 715 files.append(file_data) |
715 return files | 716 return files |
716 | 717 |