Skip to content
Snippets Groups Projects
Commit 48147610 authored by Damien Picard's avatar Damien Picard Committed by Bastien Montagne
Browse files

Print 3D utils: make default exported file name translatable

Following up to D15868, use the translation of the already extracted
message "untitled" as the name of the exported STL file.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D15960
parent 106cb51a
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,10 @@
import bpy
from bpy.app.translations import pgettext_tip as tip_
from bpy.app.translations import (
pgettext_tip as tip_,
pgettext_data as data_,
)
def image_get(mat):
......@@ -73,7 +76,7 @@ def write_mesh(context, report_cb):
name = os.path.basename(bpy.data.filepath)
name = os.path.splitext(name)[0]
else:
name = "untitled"
name = data_("untitled")
# add object name
name += f"-{bpy.path.clean_name(obj.name)}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment