From 4b8af5e13a44e8cb41cdf446c9b4b9a397dcd493 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Sat, 8 Apr 2023 20:35:15 +0200 Subject: [PATCH] I18n: fix footer in the text editor when loading an external file When loading an external file in the text editor, the footer text stating "File: " or "File: (unsaved)" was not translated, because the translation happened after string formatting, and the message was thus not found in the po files. --- scripts/startup/bl_ui/space_text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/startup/bl_ui/space_text.py b/scripts/startup/bl_ui/space_text.py index d4060721661..bf8fd1c8fbe 100644 --- a/scripts/startup/bl_ui/space_text.py +++ b/scripts/startup/bl_ui/space_text.py @@ -66,12 +66,12 @@ class TEXT_HT_footer(Header): if text.filepath: if text.is_dirty: row.label( - text=iface_("File: *%s (unsaved)" % text.filepath), + text=iface_("File: *%s (unsaved)") % text.filepath, translate=False, ) else: row.label( - text=iface_("File: %s" % text.filepath), + text=iface_("File: %s") % text.filepath, translate=False, ) else: -- 2.30.2