From 820522d5140901bb0706b2f30a41d5606fffb9aa Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 2 Aug 2019 15:36:58 +0200 Subject: 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... --- release/scripts/startup/bl_ui/space_text.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 1c37e028199..cf264bf6149 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -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"), ) -- cgit v1.2.3