Add bone Translation

- Uses MMD Tools Dictionary to convert things into English then uses Translation service to do the rest

This i useful for the rest of our converter, it's better to have standard english names then trying to use a service first as each service translate things differnetly my orignal approach was bad due to this.
This commit is contained in:
Yusarina
2025-11-22 16:57:26 +00:00
parent 95cb726485
commit 53d2ac10b7
5 changed files with 378 additions and 4 deletions
+30
View File
@@ -715,6 +715,36 @@ class AvatarToolkitSceneProperties(PropertyGroup):
description="Rename the armature object to 'Armature'",
default=True
)
mmd_translate_names: BoolProperty(
name=t("MMD.translate_names"),
description="Translate Japanese names to English using MMD dictionary and translation services",
default=True
)
mmd_translate_bones: BoolProperty(
name=t("MMD.translate_bones"),
description="Translate bone names",
default=True
)
mmd_translate_materials: BoolProperty(
name=t("MMD.translate_materials"),
description="Translate material names",
default=True
)
mmd_translate_shapekeys: BoolProperty(
name=t("MMD.translate_shapekeys"),
description="Translate shape key names",
default=True
)
mmd_translate_objects: BoolProperty(
name=t("MMD.translate_objects"),
description="Translate object names",
default=True
)
# Translation System Properties
translation_service: EnumProperty(