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: <file>" or "File: <file> (unsaved)" was not translated, because the translation happened after string formatting, and the message was thus not found in the po files. Pull Request: https://projects.blender.org/blender/blender/pulls/106716
This commit is contained in:
parent
007c9e4e47
commit
3f4f975228
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user