base.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. /**
  2. * base.js
  3. *
  4. * @author realor
  5. */
  6. export const translations = {
  7. 'button.accept': '确定',
  8. 'button.cancel': '取消',
  9. 'button.delete': '删除',
  10. 'button.edit': '编辑',
  11. 'button.open': '打开',
  12. 'button.close': '关闭',
  13. 'button.create': '创建',
  14. 'button.save': '保存',
  15. 'button.add': '添加',
  16. 'button.maximize': '最大',
  17. 'button.minimize': '最小',
  18. 'button.upload': '上传',
  19. 'button.download': '下载',
  20. 'button.folder': '文件夹',
  21. 'button.connect': '连接',
  22. 'button.new': '新建',
  23. 'button.setup': 'Setup',
  24. 'button.search': '搜索',
  25. 'button.back': '返回',
  26. 'button.home': '首页',
  27. 'button.view': '视图',
  28. 'button.restore': '还原',
  29. 'button.rename': '重命名',
  30. 'button.apply': '应用',
  31. 'button.print': '打印',
  32. 'button.export': '导出',
  33. 'button.preview': '预览',
  34. 'button.undo': '撤销',
  35. 'button.redo': '恢复',
  36. 'button.run': '运行',
  37. 'button.yes': '确定',
  38. 'button.no': '取消',
  39. 'button.discard': 'Discard',
  40. 'button.optimize': 'Optimize',
  41. 'button.editor': 'Editor',
  42. 'button.clear': '清除',
  43. 'button.list': '列表',
  44. 'button.next': '上一页',
  45. 'button.previous': '下一页',
  46. 'button.preview_material': 'Preview material',
  47. 'button.apply_material': 'Apply material',
  48. 'button.restore_materials': 'Restore materials',
  49. 'button.material_usage': '使用',
  50. 'button.select': '选择',
  51. 'button.anchor_section': 'Anchor section',
  52. 'button.add_property': 'Add property',
  53. 'button.edit_properties': 'Edit properties',
  54. 'button.add_formula': 'Add formula',
  55. 'button.add_controller': 'Add controller',
  56. 'button.remove_controller': 'Remove controller',
  57. 'button.start_controller': 'Start controller',
  58. 'button.stop_controller': 'Stop controller',
  59. 'button.object_builder': 'Object builder',
  60. 'button.change_material': 'Change material',
  61. 'button.finish': '完成',
  62. 'button.make_profile': '合成',
  63. 'button.change_axis': 'Change axis',
  64. 'button.menu_show': '菜单',
  65. 'button.menu_hide': '关闭',
  66. 'units.km': '千米',
  67. 'units.m': '米',
  68. 'units.cm': '厘米',
  69. 'units.mm': '毫米',
  70. 'units.in': '英尺',
  71. 'menu.file': '文件',
  72. 'menu.edit': '编辑',
  73. 'menu.view': '查看',
  74. 'menu.view.standard_view': '标准视图',
  75. 'menu.view.style': '样式',
  76. 'menu.view.projection': '投影',
  77. 'menu.select': '选择',
  78. 'menu.design': '设计',
  79. 'menu.design.add': '添加',
  80. 'menu.design.add_solid': 'Solid',
  81. 'menu.design.add_profile': 'Profile',
  82. 'menu.design.add_cord': 'Cord',
  83. 'menu.design.boolean_operation': 'Boolean operation',
  84. 'menu.design.geometry': 'Geometry tools',
  85. 'menu.design.transform': '变换',
  86. 'menu.measure': '测量',
  87. 'menu.control': '控制',
  88. 'menu.panels': '面板',
  89. 'menu.help': '帮助',
  90. 'tool.new_scene.label': '新建场景',
  91. 'tool.new_scene.help': '新建场景',
  92. 'tool.cloud_explorer.label': 'Cloud explorer',
  93. 'tool.cloud_explorer.help': 'Cloud explorer',
  94. 'tool.openlocal.label': '打开本地文件',
  95. 'tool.openlocal.help': '打开本地文件',
  96. 'tool.savelocal.label': '保存到本地',
  97. 'tool.savelocal.help': '保存到本地',
  98. 'tool.select.label': '选择',
  99. 'tool.select.help': '点击选择',
  100. 'tool.select_by_name.label': 'Select by name',
  101. 'tool.select_by_property.label': 'Select by property',
  102. 'tool.select_by_qrcode.label': 'Select by QR code',
  103. 'tool.select_parent.label': '选择父级',
  104. 'tool.export_selection.label': 'Export selection',
  105. 'tool.options.label': '选项',
  106. 'tool.print.label': '打印',
  107. 'tool.print.help': '打印PDF',
  108. 'tool.svg_exporter.label': '导出SVG',
  109. 'tool.draw.label': '画笔',
  110. 'tool.draw.add_vertex': 'Add vertex to the cord.',
  111. 'tool.draw.first_vertex': 'Draw the first vertex of the cord.',
  112. 'tool.draw.select_vertex': 'Select vertex to move or insert.',
  113. 'tool.draw.vertex_destination': 'Select new vertex position.',
  114. 'tool.measure_length.label': '测量',
  115. 'tool.measure_length.help': '测量',
  116. 'tool.measure_selection.label': '测量选中',
  117. 'tool.rebuild.label': 'Rebuild',
  118. 'tool.paint.label': '笔刷',
  119. 'tool.move.label': '移动',
  120. 'tool.move.select_anchor_point': '选择锚点.',
  121. 'tool.move.select_destination_point': '选择目标点.',
  122. 'tool.move.edit_offset': '编辑旋转或选择定位点.',
  123. 'tool.rotate.label': '旋转',
  124. 'tool.rotate.select_first_point': '选择旋转轴的第一个点.',
  125. 'tool.rotate.select_second_point': '选择旋转轴的第二个点.',
  126. 'tool.rotate.select_anchor_point': '选择锚点.',
  127. 'tool.rotate.select_destination_point': '选择目标点.',
  128. 'tool.rotate.edit_rotation': '编辑旋转或选择定位点.',
  129. 'tool.scale.label': '缩放',
  130. 'tool.scale.select_first_point': '选择原点.',
  131. 'tool.scale.select_anchor_point': '选择锚点.',
  132. 'tool.scale.select_destination_point': '选择目标点.',
  133. 'tool.scale.edit_scale': '编辑旋转或选择定位点.',
  134. 'tool.place.label': '定位',
  135. 'tool.place.help': '选择一个位置来放置对象.',
  136. 'tool.extrude.label': 'Extrude',
  137. 'tool.extrude.drag_pointer': 'Drag the pointer to extrude the selected object dinamically.',
  138. 'tool.extrude.select_object': 'Select profile or solid to extrude.',
  139. 'tool.revolve.label': 'Revolve',
  140. 'tool.revolve.set_axis_first_point': 'Set the first point of the axis of revolution.',
  141. 'tool.revolve.set_axis_second_point': 'Set the second point of the axis of revolution.',
  142. 'tool.revolve.drag_pointer': 'Drag pointer to revolve the selected object dinamically.',
  143. 'tool.revolve.select_object': 'Select profile or solid to revolve.',
  144. 'tool.union.label': 'Union',
  145. 'tool.intersection.label': 'Intersection',
  146. 'tool.subtraction.label': 'Subtraction',
  147. 'tool.mesh_to_solid.label': 'Mesh to Solid',
  148. 'tool.solid_to_mesh.label': 'Solid to Mesh',
  149. 'tool.merge_geometries.label': 'Merge geometries',
  150. 'tool.clip.label': 'Clip',
  151. 'tool.script.label': 'Scripts',
  152. 'tool.script.name': 'Script:',
  153. 'tool.orbit.label': '动态观察',
  154. 'tool.orbit.help': 'Rotate: drag with left button, Pan: drag with right button or 2 pointers, Zoom: spin wheel, drag with middle button or zoom with 2 pointers.',
  155. 'tool.auto_orbit.label': 'Auto orbit',
  156. 'tool.auto_orbit.help': 'Auto orbit',
  157. 'tool.fly.label': 'Fly',
  158. 'tool.fly.forward': 'Move forward',
  159. 'tool.fly.backward': 'Move backward',
  160. 'tool.fly.rotateLeft': 'Rotate left',
  161. 'tool.fly.rotateRight': 'Rotate right',
  162. 'tool.fly.ascend': 'Ascend',
  163. 'tool.fly.descend': 'Descend',
  164. 'tool.fly.moveLeft': 'Move left',
  165. 'tool.fly.moveRight': 'Move right',
  166. 'tool.fly.lookUp': 'Look up',
  167. 'tool.fly.lookDown': 'Look down',
  168. 'tool.fly.options': 'Fly options',
  169. 'tool.fly.detect_collision': 'Detect collision',
  170. 'tool.fly.stick_control': 'Stick control',
  171. 'tool.fly.ground_distance_control': 'Ground distance control',
  172. 'tool.fly.ground_distance': 'Ground distance:',
  173. 'tool.view.label': '视图',
  174. 'tool.section.label': '裁剪',
  175. 'tool.section.help': '点击“面”以选择剪裁平面。拖动指针或旋转滚轮以偏移剪裁平面.',
  176. 'tool.add_object.label': 'Add object',
  177. 'tool.add_box.label': 'Box',
  178. 'tool.add_cylinder.label': 'Cylinder',
  179. 'tool.add_sphere.label': 'Sphere',
  180. 'tool.add_spring.label': 'Spring',
  181. 'tool.add_group.label': 'Group',
  182. 'tool.add_rectangle.label': 'Rectangle',
  183. 'tool.add_circle.label': 'Circle',
  184. 'tool.add_ellipse.label': 'Ellipse',
  185. 'tool.add_trapezium.label': 'Trapezium',
  186. 'tool.add_iprofile.label': 'I Profile',
  187. 'tool.add_lprofile.label': 'L Profile',
  188. 'tool.add_tprofile.label': 'T Profile',
  189. 'tool.add_uprofile.label': 'U Profile',
  190. 'tool.add_zprofile.label': 'Z Profile',
  191. 'tool.add_helicoid.label': 'Helicoid',
  192. 'tool.add_sprite.label': 'Sprite',
  193. 'tool.view.top': '上',
  194. 'tool.view.front': '前',
  195. 'tool.view.back': '后',
  196. 'tool.view.left': '左',
  197. 'tool.view.right': '右',
  198. 'tool.remove.label': '移除',
  199. 'tool.clone.label': '复制',
  200. 'tool.cloner.label': 'Cloner',
  201. 'tool.cut.label': '剪切',
  202. 'tool.paste.label': '粘贴',
  203. 'tool.show.label': '显示',
  204. 'tool.hide.label': '隐藏',
  205. 'tool.faces_style.label': '面',
  206. 'tool.edges_style.label': '线',
  207. 'tool.faces_edges_style.label': '面 & 线',
  208. 'tool.hidden_style.label': '隐藏',
  209. 'tool.activate_camera.label': '激活相机',
  210. 'tool.perspective.label': '透视',
  211. 'tool.orthographic.label': '正交',
  212. 'tool.zoom_all.label': '适应屏幕',
  213. 'tool.fullscreen.label': '全屏',
  214. 'tool.center_selection.label': 'Center selection',
  215. 'tool.focus_selection.label': 'Focus on selection',
  216. 'tool.inspect_geometry.label': 'Inspect geometry',
  217. 'tool.reset_matrix.label': 'Reset matrix',
  218. 'tool.smooth_edges.label': 'Smooth edges',
  219. 'tool.start_controllers.label': 'Start controllers',
  220. 'tool.stop_controllers.label': 'Stop controllers',
  221. 'tool.outliner.label': '大纲查看器',
  222. 'tool.outliner.help': '大纲查看器',
  223. 'tool.inspector.label': '对象查看器',
  224. 'tool.inspector.help': '对象查看器',
  225. 'tool.statistics.label': '性能查看器',
  226. 'tool.statistics.help': '性能查看器',
  227. 'tool.inspect_geometry.help': 'Select geometry to inspect',
  228. 'tool.about.label': 'About',
  229. 'label.language': '语言:',
  230. 'label.units': '模型单位:',
  231. 'label.decimals': '小数点位数:',
  232. 'label.fr_divisor': '帧率因子:',
  233. 'label.sel_paint_mode': '绘画模式:',
  234. 'label.show_deep_sel': '显示深度选择',
  235. 'label.show_local_axes': '显示坐标轴',
  236. 'label.background_color': '背景色:',
  237. 'label.panel_opacity': '面板透明度:',
  238. 'label.cast_shadows': '投射阴影',
  239. 'label.service_type': 'Service type:',
  240. 'label.service_name': 'Service name:',
  241. 'label.service_desc': 'Service description:',
  242. 'label.service_url': 'URL:',
  243. 'label.service_user': 'Username:',
  244. 'label.service_pass': 'Password:',
  245. 'label.section_color': '切面颜色:',
  246. 'label.smooth_angle': 'Smooth angle:',
  247. 'label.offset': '偏移:',
  248. 'label.rotation': '旋转 (degrees):',
  249. 'label.length': '长度:',
  250. 'label.scale_factor': 'Scale factor:',
  251. 'label.scale_keep_proportions': 'Keep proportions',
  252. 'label.depth': '深度:',
  253. 'label.place_mode': '模型:',
  254. 'label.name': '名称:',
  255. 'label.format': '格式:',
  256. 'label.save_selection': '保存已选中',
  257. 'label.username': 'Username:',
  258. 'label.password': 'Password:',
  259. 'label.folder_name': 'Folder name:',
  260. 'label.property_name': 'Property name:',
  261. 'label.property_type': 'Property type:',
  262. 'label.property_value': 'Property value:',
  263. 'label.properties': 'Properties (JSON):',
  264. 'label.formula.path': 'Property:',
  265. 'label.formula.expression': 'Expression:',
  266. 'label.print_title': 'Title:',
  267. 'label.print_scale': 'Scale 1:',
  268. 'label.svg_exporter_title': 'Title:',
  269. 'label.selection_by_properties': 'Properties:',
  270. 'label.expression': 'Expression:',
  271. 'label.selection_properties': 'Selection properties:',
  272. 'label.exported_properties': 'Properties to export:',
  273. 'label.material_list': '材质:',
  274. 'label.color': '漫反射颜色:',
  275. 'label.specular': '镜面反射颜色:',
  276. 'label.emissive': '自发光颜色:',
  277. 'label.material_side': 'Applied to:',
  278. 'label.front_side': 'Front side',
  279. 'label.back_side': 'Back side',
  280. 'label.double_side': 'Double side',
  281. 'label.depth_test': 'Depth test',
  282. 'label.depth_write': 'Depth write',
  283. 'label.opacity': opacity => `Opacity: ${opacity}%`,
  284. 'label.material_name': 'Name:',
  285. 'label.material_on_selection': 'On selection',
  286. 'label.on_vertex': 'On vertex',
  287. 'label.on_edge': 'On edge',
  288. 'label.on_face': 'On face',
  289. 'label.on_edge_face': 'On edge-face intersection',
  290. 'label.on_guide_face': 'On guide-face intersection',
  291. 'label.on_edge_edge': 'On edge-edge intersection',
  292. 'label.on_guide_edge': 'On guide-edge intersection',
  293. 'label.on_x_axis': 'On X axis',
  294. 'label.on_y_axis': 'On Y axis',
  295. 'label.on_z_axis': 'On Z axis',
  296. 'label.on_projected_vertex': 'On projected vertex',
  297. 'label.selection_mode': '选择模式',
  298. 'label.set_selection_mode': '单个',
  299. 'label.add_selection_mode': '增加',
  300. 'label.remove_selection_mode': '移除',
  301. 'label.geometries_display': 'Geometries to display:',
  302. 'label.geometry_inventory': 'Inventory',
  303. 'label.geometry_detail': 'Geometry',
  304. 'label.geometry_id': 'Id',
  305. 'label.geometry_instances': 'Instances',
  306. 'label.geometry_triangles': 'Triangles',
  307. 'label.geometry_total_triangles': 'Total',
  308. 'option.edges': 'Edges',
  309. 'option.faces': 'Faces',
  310. 'option.solid': '线性',
  311. 'option.gradient': '渐变',
  312. 'title.add_cloud_service': 'Add cloud service',
  313. 'title.edit_cloud_service': 'Edit cloud service',
  314. 'title.save_to_cloud': 'Save to cloud',
  315. 'title.create_folder_in_cloud': 'Create folder in cloud service',
  316. 'title.object_properties': 'Object properties',
  317. 'title.delete_cloud_service': 'Delete cloud service',
  318. 'title.delete_from_cloud': 'Delete from cloud',
  319. 'title.unsaved_changes': 'Unsaved changes',
  320. 'title.formula': 'Formula',
  321. 'title.add_controller': 'Add controller',
  322. 'title.remove_controller': 'Remove controller',
  323. 'title.properties': 'Properties',
  324. 'title.script_editor': 'Script editor',
  325. 'title.object_builder': 'Object builder',
  326. 'title.select_by_property': 'Selection by properties',
  327. 'title.select_by_qrcode': 'Selection by QR code',
  328. 'title.export_selection': 'Export selection',
  329. 'title.login': 'Login',
  330. 'title.new_material': 'New material',
  331. 'title.rename_material': 'Rename material',
  332. 'message.measure_length': (length, units) => `长度: ${length} ${units}`,
  333. 'message.solids_count': count => `Solids: ${count}`,
  334. 'message.solids_area': (area, units) => `Area: ${area} ${units}²`,
  335. 'message.solids_volume': (volume, units) => `Volume: ${volume} ${units}³`,
  336. 'message.solids_area_volume': ratio => `Area/Volume: ${ratio}`,
  337. 'message.invalid_service': service => `Invalid service: [${service}].`,
  338. 'message.objects_selected': count => `${count} object${count === 1 ? '' : 's'} selected${count > 0 ? ':' : '.'}`,
  339. 'message.no_solid_selected': 'No solid selected.',
  340. 'message.controllers_loaded': count => `${count} controllers loaded.`,
  341. 'message.select_directory': 'Select directory to save file.',
  342. 'message.objects_selected_by_prop': count => `${count} object${count === 1 ? '' : 's'} selected.`,
  343. 'message.script_executed': 'Script executed.',
  344. 'message.no_object_for_code': code => `No object found for code ${code}`,
  345. 'message.file_saved': 'File saved.',
  346. 'message.folder_created': 'Folder created.',
  347. 'message.file_deleted': 'File deleted.',
  348. 'message.folder_deleted': 'Folder deleted.',
  349. 'message.object_name': objectName => `Object: ${objectName}`,
  350. 'message.geometry_id': id => `Geometry id: ${id}`,
  351. 'message.vertex_count': count => `Vertices: ${count}`,
  352. 'message.face_count': count => `Faces: ${count}`,
  353. 'message.is_manifold': manifold => `Is manifold: ${manifold ? 'yes' : 'no'}`,
  354. 'message.geometry_count': count => `Geometries: ${count}`,
  355. 'message.instance_count': count => `Instances: ${count}`,
  356. 'message.modeled_triangle_count': count => `Modeled triangles: ${count}`,
  357. 'message.rendered_triangle_count': count => `Rendered triangles: ${count}`,
  358. 'message.invalid_credentials': 'Invalid credentials.',
  359. 'message.access_denied': 'Access denied.',
  360. 'message.action_denied': 'Action denied.',
  361. 'message.invalid_revolution_axis': 'Invalid axis of revolution. This axis can not be projected onto the plane of the profile.',
  362. 'question.discard_changes': name => `Discard unsaved changes in ${name || 'editor'}?`,
  363. 'question.delete_service': name => `Do you want to delete the ${name} service?`,
  364. 'question.delete_folder': name => `Do you want to delete the ${name} folder?`,
  365. 'question.delete_file': name => `Do you want to delete the ${name} file?`,
  366. 'question.remove_controller': name => `Remove controller ${name}?`,
  367. 'question.create_new_scene': '是否创建新场景?',
  368. 'controller.AutoPilotController': 'Drives an object.',
  369. 'controller.Brain4itPostController': 'Posts a value to Brain4it.',
  370. 'controller.Brain4itWatchController': 'Watches for Brain4it exterior functions.',
  371. 'controller.ColorController': 'Colors an object.',
  372. 'controller.DisplayController': 'Displays a value on a panel.',
  373. 'controller.LightController': 'Lights an object.',
  374. 'controller.LoadController': 'Loads a model into scene.',
  375. 'controller.ProximityController': 'Detects proximity to objects.',
  376. 'controller.PushButtonController': 'Shows a push button.',
  377. 'controller.RotationController': 'Rotates an object.',
  378. 'controller.ToggleButtonController': 'Shows a toggle button.',
  379. 'controller.TranslationController': 'Translates an object.'
  380. }