diff options
author | Campbell Barton <ideasman42@gmail.com> | 2022-08-09 10:08:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2022-08-09 10:08:43 +0300 |
commit | fd5afdfe2f67769886eaf50672baca14f3aebf5c (patch) | |
tree | 82ac68c2589f0ba95f3045c8d9b2207a29354eee /object_print3d_utils/export.py | |
parent | f15ffafd0bb7dbd23e14a14a710536d6458a220c (diff) |
object_print3d_utils: replace f-strings by str.format() for I18n
Unfortunately, messages cannot be properly extracted from f-strings.
Use `str.format()` method instead.
Ref D15615
Diffstat (limited to 'object_print3d_utils/export.py')
-rw-r--r-- | object_print3d_utils/export.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/object_print3d_utils/export.py b/object_print3d_utils/export.py index d17cd45f..e4e3550b 100644 --- a/object_print3d_utils/export.py +++ b/object_print3d_utils/export.py @@ -5,6 +5,8 @@ import bpy +from bpy.app.translations import pgettext_tip as tip_ + def image_get(mat): from bpy_extras import node_shader_utils @@ -153,7 +155,7 @@ def write_mesh(context, report_cb): if 'FINISHED' in ret: if report_cb is not None: - report_cb({'INFO'}, f"Exported: {filepath!r}") + report_cb({'INFO'}, tip_("Exported: {!r}").format(filepath)) return True |