I18n: Disambiguate "Strip" for exporter filepath mode
"Strip" generally is a sequencer or animation strip, but in this context it is a string manipulation action for file names. It is defined as part of the Path Mode defined in the FBX and OBJ exporters. Those exporters are defined in Python and C++, respectively. This commit changes both exporters to use the "File browser" translation context. In addition, the tooltip for "Relative" from the FBX exporter was changed to match its OBJ counterpart, and the "Strip Path" mode was also matched to the other version which reads better as an enum item. Reported by Ye Gui in #43295.
This commit is contained in:
committed by
Bastien Montagne
parent
d16c9003d2
commit
3aa633304a
@@ -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',
|
||||
)
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user