This repository has been archived by the owner on Mar 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
translate.py
55 lines (46 loc) · 3.1 KB
/
translate.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import bpy
def origin_text(a, b):
return "Add an empty object origin as the rotation axis (if there is an origin, " + a + \
"), and set the origin position " + b + " during operation"
translations_dict = {
"zh_CN": {
("上下文", "原文"): "翻译文字",
("*", "Show Toggle Axis Gizmo"): "显示切换轴向Gizmo",
("*", "Follow Upper Limit(Red)"): "跟随上限(红色)",
("*", "Follow Lower Limit(Green)"): "跟随下限(绿色)",
("*", "Lower limit(Green)"): "下限(绿色)",
("*", "UP Limits(Red)"): "上限(红色)",
("*", "Minimum value between upper and lower limits"): "上限与下限之间的最小值",
("*", "Upper and lower limit tolerance"): "上下限容差",
("*", "Draw Upper and lower limit Bound Box Color"): "绘制网格上限下限边界线框的颜色",
("*", "Upper and lower limit Bound Box Color"): "上限下限边界框颜色",
("*", "Draw Bound Box Color"): "绘制网格边界框的颜色",
("*", "Bound Box"): "边界框颜色",
("*", "Draw Deform Wireframe Color"): "绘制网格形变形状线框的颜色",
("*", "Deform Wireframe"): "形变线框颜色",
("*", "Simple Deform visualization adjustment tool"): "简易形变可视化工具",
("*", "Select an object and the active modifier is Simple Deform"): "选择物体并且活动修改器为简易形变",
("*", "Bound Middle"): "边界框中心",
("*", origin_text("do not add it", "as the lower limit")):
"添加一个空物体原点作为旋转轴(如果已有原点则不添加),并在操作时设置原点位置为下限位置",
("*", origin_text("do not add it", "as the upper limit")):
"添加一个空物体原点作为旋转轴(如果已有原点则不添加),并在操作时设置原点位置为上限位置",
("*", origin_text("it will not be added", "between the upper and lower limits")):
"添加一个空物体原点作为旋转轴(如果已有原点则不添加),并在操作时设置原点位置为上下限之间的位置",
("*", origin_text("do not add it", "as the position between the bounding boxes")):
"添加一个空物体原点作为旋转轴(如果已有原点则不添加),并在操作时设置原点位置为边界框之间的位置",
("*", "No origin operation"): "不进行原点操作",
("*", "Origin control mode"): "原点控制模式",
("*", "Down limit"): "下限",
("*", "Coefficient"): "系数",
("*", "Upper limit"): "上限",
("*", "3D View -> Select an object and the active modifier is simple deformation"): "3D视图 -> 选择一个物体,"
"并且活动修改器为简易形修改器",
("*", "3D View: SimpleDeformHelper"): "3D 视图: SimpleDeformHelper 简易形变助手",
("*", ""): "",
}
}
def register():
bpy.app.translations.register(__name__, translations_dict)
def unregister():
bpy.app.translations.unregister(__name__)