This commit is contained in:
2025-05-08 23:57:22 +08:00
parent 24acc2a6f1
commit 7094a5886a
18 changed files with 442 additions and 583 deletions

View File

@@ -13,124 +13,6 @@ current_language = config.TOOL_LANG # 默认使用中文
# 语言字典
LANG = {
"en_US": {
# 主界面
"geometry": "Geometry",
"rigging": "Rigging",
"behaviour": "Behaviour",
"definition": "Definition",
# 几何体模块
"geometry_title": "Geometry",
"clean": " Clean ",
"load": "Load mesh",
"clear_all_models": " Clean all models",
"add_model": "Add Model",
"remove_model": "Remove Model",
"duplicate_model": "Duplicate Model",
"model_properties": "Model Properties",
"model_tools": "Model Tools",
"name": "Name",
"enter_model_name": "Enter Model Name",
"type": "Type",
"visible": "Visible",
"apply": "Apply",
"reset": "Reset",
"topology_structure": "Topology Structure",
"select_lod": "Select LOD",
"all": "All",
"create_lod": "Create LOD",
"separate_model": "Separate Model",
"generate_face_components": "Generate Face Components",
"fix_point_order": "Fix point order",
"fix_normals": "Fix normal",
"fix_vertex_order": "Fix vertex order",
"fix_seams": "Fix seams",
"standardize_naming": "Standardize Naming",
"optimize_scene": "Optimize Scene",
"auto_group": "Auto Group",
"create_custom_lod": "Create Custom LOD",
"import_lod": "Import LOD",
"export_lod": "Export LOD",
"search": "Search...",
# 绑定模块
"rigging_title": "Rigging System",
"presets": "Presets",
"assets": "Assets",
"descriptor": "Descriptor",
"project_path": "Project Path",
"Presets DNA:": "Presets DNA:",
"gender": "Gender",
"age": "Age",
"translation_unit": "Translation Unit",
"rotation_unit": "Rotation Unit",
"coordinate_system": "Coordinate System",
"lod_count": "LOD Count",
"archetype": "Archetype",
"import_skeleton": "Import Skeleton",
"build_rigging": "Build Rigging",
"remove_all": "Remove All",
# 行为模块
"behaviour_title": "Behaviour System",
"search": "Search...",
" Range - ": " Range - ",
" Range + ": " Range + ",
"Raw Control": "Raw Control",
"Related BlendShapes": "Related BlendShapes",
"Add": "Add",
"Delete": "Delete",
"Batch": "Batch",
"Rebuild": "Rebuild",
"Reposition": "Reposition",
"Blend": "Blend",
"Flip Target": "Flip Target",
"Mirror Target": "Mirror Target",
"Find Flip Target": "Find Flip Target",
"Add BlendShape": "Add BlendShape",
"Delete BlendShape": "Delete BlendShape",
"Batch BlendShape": "Batch BlendShape",
"Rebuild Select": "Rebuild Select",
"Reposition Joints": "Reposition Joints",
"Blend Select": "Blend Select",
"Reset Default": "Reset Default",
"Find Select": "Find Select",
"Write Current": "Write Current",
"Controller Find": "Controller Find",
"Select Joint": "Select Joint",
"Find Mirror": "Find Mirror",
# 定义模块
"definition_title": "Definition System",
"lods": "LODs",
"meshes": "Meshes",
"bones": "Bones",
"name_pattern": "Name Pattern",
"expression": "Expression",
"add_lod": "Add LOD",
"remove_lod": "Remove LOD",
"duplicate_lod": "Duplicate LOD",
"add_mesh": "Add Mesh",
"remove_mesh": "Remove Mesh",
"duplicate_mesh": "Duplicate Mesh",
"add_bone": "Add Bone",
"remove_bone": "Remove Bone",
"duplicate_bone": "Duplicate Bone",
"import_definition": "Import Definition",
"export_definition": "Export Definition",
# 工具栏
"Save DNA": "Save DNA",
"Open DNA": "Open DNA",
"Create RL4 node": "Create RL4 Node",
"Delete RL4 node": "Delete RL4 Node",
"Import skin": "Import Skin",
"Export skin": "Export Skin",
"Copy skin": "Copy Skin",
"Switch language": "Switch Language",
"Help": "Help"
},
"zh_CN": {
# 主界面
"geometry": "几何体",
@@ -140,55 +22,46 @@ LANG = {
# 几何体模块
"geometry_title": "几何模型",
"clean": " 清 理 ",
"load": " 加 载 ",
"clear_all_models": " 清理所有模型",
"add_model": "添加模型",
"remove_model": "移除模型",
"duplicate_model": "复制模型",
"model_properties": "模型属性",
"model_tools": "模型工具",
"name": "名称",
"enter_model_name": "输入模型名称",
"type": "类型",
"visible": "可见",
"apply": "应用",
"reset": "重置",
"load": " 加 载 ",
"load_model": "加载模型",
"auto_load_meshes": "自动加载模型",
"standardized_naming": "标准化命名",
"automatic_grouping": "自动分组",
"clear": " 清 理 ",
"clear_all_models": "清理所有模型",
"model_tools": "模型工具",
"topology_structure": "拓扑结构",
"select_lod": "选择LOD",
"all": "全部",
"create_lod": "创建LOD",
"separate_model": "模型分离",
"generate_face_components": "生成面部配件",
"fix_point_order": "修复点序",
"fix_normals": "修复法线",
"fix_vertex_order": "修复点序",
"fix_seams": "修复接缝",
"standardize_naming": "标准化命名",
"optimize_scene": "优化场景",
"auto_group": "自动分组",
"create_custom_lod": "创建自定义LOD",
"import_lod": "导入LOD",
"export_lod": "导出LOD",
"search": "搜索...",
# 绑定模块
"rigging_title": "绑定系统",
"presets": "预设",
"assets": "资源",
"descriptor": "描述器",
"project_path": "项目路径",
"export_presets": "导出预设",
"import_presets": "导入预设",
"assets": "资产",
"project_path": "项目路径:",
"Presets DNA:": "预设 DNA:",
"gender": "性别",
"age": "年龄",
"translation_unit": "平移单位",
"rotation_unit": "旋转单位",
"coordinate_system": "坐标系统",
"lod_count": "LOD数量",
"archetype": "原型",
"descriptor": "描述",
"name": "名称:",
"archetype": "原型:",
"gender": "性别:",
"age": "年龄:",
"translation_unit": "平移单位:",
"rotation_unit": "旋转单位:",
"coordinate_system": "坐标系统:",
"lod_count": "LOD数量:",
"remove_all": "移除全部",
"import_skeleton": "导入骨骼",
"build_rigging": "创建绑定",
"remove_all": "移除全部",
# 行为模块
"behaviour_title": "行为系统",
@@ -221,23 +94,21 @@ LANG = {
# 定义模块
"definition_title": "定义系统",
"lods": "级别细节",
"meshes": "网格",
"bones": "骨骼",
"name_pattern": "命名模式",
"expression": "表情",
"add_lod": "添加LOD",
"remove_lod": "移除LOD",
"duplicate_lod": "复制LOD",
"add_mesh": "添加网格",
"remove_mesh": "移除网格",
"duplicate_mesh": "复制网格",
"add_bone": "添加骨骼",
"remove_bone": "移除骨骼",
"duplicate_bone": "复制骨骼",
"import_definition": "导入定义",
"export_definition": "导出定义",
"define_lod_relations": "定义LOD关联",
"create_geometry": "创建几何体",
"Write Neutral Pose Joint Position": "写入中性Pose关节位置",
"Write Geometry": "写入几何体",
"Write Skin Weight": "写入蒙皮权重",
"Write Blendshape Target": "写入BS对象",
"Create Blendshapes For Mesh": "为模型创建Blendshape",
"Create Skin For Mesh": "为模型创建绑定蒙皮",
"Unbind Skin For Mesh": "为模型取消绑定蒙皮",
"Tools": "工具",
"New Head Netural Joint Transform": "重新定位头部关节",
"New Body Netural Joint Transform": "重新定位身体关节",
"New Netural Joint Transform": "重新定位全身关节",
"Quick Create Preset": "快速创建预设",
# 工具栏
"保存DNA": "保存DNA",
"打开DNA": "打开DNA",
@@ -248,10 +119,117 @@ LANG = {
"复制蒙皮": "复制蒙皮",
"切换语言": "切换语言",
"帮助": "帮助"
},
"en_US": {
# Main Interface
"geometry": "Geometry",
"rigging": "Rigging",
"behaviour": "Behaviour",
"definition": "Definition",
# Geometry Module
"geometry_title": "Geometry Model",
"enter_model_name": "Enter Model Name",
"load": "Load",
"load_model": "Load Model",
"auto_load_meshes": "Auto Load Meshes",
"standardized_naming": "Standardized Naming",
"automatic_grouping": "Automatic Grouping",
"clear": "Clear",
"clear_all_models": "Clear All Models",
"model_tools": "Model Tools",
"topology_structure": "Topology Structure",
"select_lod": "Select LOD",
"all": "All",
"create_lod": "Create LOD",
"separate_model": "Separate Model",
"generate_face_components": "Generate Face Components",
"fix_normals": "Fix Normals",
"fix_vertex_order": "Fix Vertex Order",
"fix_seams": "Fix Seams",
"optimize_scene": "Optimize Scene",
# Rigging Module
"rigging_title": "Rigging System",
"presets": "Presets",
"export_presets": "Export Presets",
"import_presets": "Import Presets",
"assets": "Assets",
"project_path": "Project Path:",
"Presets DNA:": "Presets DNA:",
"descriptor": "Descriptor",
"name": "Name:",
"archetype": "Archetype:",
"gender": "Gender:",
"age": "Age:",
"translation_unit": "Translation Unit:",
"rotation_unit": "Rotation Unit:",
"coordinate_system": "Coordinate System:",
"lod_count": "LOD Count:",
"remove_all": "Remove All",
"import_skeleton": "Import Skeleton",
"build_rigging": "Build Rigging",
# Behaviour Module
"behaviour_title": "Behaviour System",
"search": "Search...",
" Range - ": " Range - ",
" Range + ": " Range + ",
"Raw Control": "Raw Control",
"Related BlendShapes": "Related BlendShapes",
"Add": "Add",
"Delete": "Delete",
"Batch": "Batch",
"Rebuild": "Rebuild",
"Reposition": "Reposition",
"Blend": "Blend",
"Flip Target": "Flip Target",
"Mirror Target": "Mirror Target",
"Find Flip Target": "Find Flip Target",
"Add BlendShape": "Add BlendShape",
"Delete BlendShape": "Delete BlendShape",
"Batch BlendShape": "Batch BlendShape",
"Rebuild Select": "Rebuild Select",
"Reposition Joints": "Reposition Joints",
"Blend Select": "Blend Select",
"Reset Default": "Reset Default",
"Find Select": "Find Select",
"Write Current": "Write Current",
"Controller Find": "Controller Find",
"Select Joint": "Select Joint",
"Find Mirror": "Find Mirror",
# Definition Module
"definition_title": "Definition System",
"define_lod_relations": "Define LOD Relations",
"create_geometry": "Create Geometry",
"Write Neutral Pose Joint Position": "Write Neutral Pose Joint Position",
"Write Geometry": "Write Geometry",
"Write Skin Weight": "Write Skin Weight",
"Write Blendshape Target": "Write BlendShape Target",
"Create Blendshapes For Mesh": "Create BlendShapes For Mesh",
"Create Skin For Mesh": "Create Skin For Mesh",
"Unbind Skin For Mesh": "Unbind Skin For Mesh",
"Tools": "Tools",
"New Head Netural Joint Transform": "Relocate Head Joint",
"New Body Netural Joint Transform": "Relocate Body Joint",
"New Netural Joint Transform": "Relocate All Joints",
"Quick Create Preset": "Quick Create Preset",
# Toolbar
"保存DNA": "Save DNA",
"打开DNA": "Open DNA",
"创建RL4节点": "Create RL4 Node",
"删除RL4节点": "Delete RL4 Node",
"导入蒙皮": "Import Skin",
"导出蒙皮": "Export Skin",
"复制蒙皮": "Copy Skin",
"切换语言": "Switch Language",
"帮助": "Help"
}
}
def get_text(key, default=None):
def TEXT(key, default=None):
"""
获取当前语言的文本