diff --git a/scripts/modules/bpy_extras/io_utils.py b/scripts/modules/bpy_extras/io_utils.py index 341200a4a51..cff9b0c6c1c 100644 --- a/scripts/modules/bpy_extras/io_utils.py +++ b/scripts/modules/bpy_extras/io_utils.py @@ -437,14 +437,14 @@ path_reference_mode = EnumProperty( items=( ('AUTO', "Auto", "Use relative paths with subdirectories only"), ('ABSOLUTE', "Absolute", "Always write absolute paths"), - ('RELATIVE', "Relative", "Always write relative paths " - "(where possible)"), + ('RELATIVE', "Relative", "Write relative paths where possible"), ('MATCH', "Match", "Match absolute/relative " "setting with input path"), - ('STRIP', "Strip Path", "Filename only"), + ('STRIP', "Strip", "Filename only"), ('COPY', "Copy", "Copy the file to the destination path " "(or subdirectory)"), ), + translation_context=i18n_contexts.editor_filebrowser, default='AUTO', ) diff --git a/source/blender/editors/io/io_obj.cc b/source/blender/editors/io/io_obj.cc index db5e73d3215..4702fd1060a 100644 --- a/source/blender/editors/io/io_obj.cc +++ b/source/blender/editors/io/io_obj.cc @@ -339,12 +339,13 @@ void WM_OT_obj_export(wmOperatorType *ot) "Export Materials with PBR Extensions", "Export MTL library using PBR extensions (roughness, metallic, sheen, " "coat, anisotropy, transmission)"); - RNA_def_enum(ot->srna, - "path_mode", - io_obj_path_mode, - PATH_REFERENCE_AUTO, - "Path Mode", - "Method used to reference paths"); + prop = RNA_def_enum(ot->srna, + "path_mode", + io_obj_path_mode, + PATH_REFERENCE_AUTO, + "Path Mode", + "Method used to reference paths"); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_EDITOR_FILEBROWSER); RNA_def_boolean(ot->srna, "export_triangulated_mesh", false,