Commit: 820522d5140901bb0706b2f30a41d5606fffb9aa
Author: Bastien Montagne
Date: Fri Aug 2 15:36:58 2019 +0200
Branches: master
https://developer.blender.org/rB820522d5140901bb0706b2f30a41d5606fffb9aa
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...
===================================================================
M release/scripts/startup/bl_ui/space_text.py
===================================================================
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"),
)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs