Fix (unreported) missing/broken translations in Text space.

As a reminder, no new fancy python string formatting is just
not working (tm) with i18n translations system...
This commit is contained in:
Bastien Montagne 2019-08-02 15:36:58 +02:00
parent 15b848ef60
commit 820522d514
1 changed files with 4 additions and 4 deletions

View File

@ -82,19 +82,19 @@ class TEXT_HT_footer(Header):
if text.filepath:
if text.is_dirty:
row.label(
text=iface_(f"File: *{text.filepath:s} (unsaved)"),
text=iface_("File: *%s (unsaved)" % text.filepath),
translate=False,
)
else:
row.label(
text=iface_(f"File: {text.filepath:s}"),
text=iface_("File: %s" % text.filepath),
translate=False,
)
else:
row.label(
text="Text: External"
text=iface_("Text: External")
if text.library
else "Text: Internal",
else iface_("Text: Internal"),
)