Skip to content

Commit

Permalink
Add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
UuuNyaa committed Oct 7, 2021
1 parent 22b8146 commit d932aa2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mmd_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
bl_info = {
"name": "mmd_tools",
"author": "sugiany",
"version": (1, 0, 0),
"version": (1, 0, 1),
"blender": (2, 80, 0),
"location": "View3D > Tool Shelf > MMD Tools Panel",
"description": "Utility tools for MMD model editing. (UuuNyaa's forked version)",
Expand Down Expand Up @@ -97,7 +97,7 @@ class MMDToolsAddonPreferences(bpy.types.AddonPreferences):

# for add-on updater
updater_branch_to_update = bpy.props.EnumProperty(
name='branch',
name='Branch',
description='Target branch to update add-on',
items=get_update_candidate_branches
)
Expand All @@ -122,7 +122,7 @@ def draw(self, context):
col.alert = True
col.operator(
"wm.quit_blender",
text="Restart blender to complete update",
text="Restart Blender to complete update",
icon="ERROR"
)
return
Expand All @@ -132,7 +132,7 @@ def draw(self, context):
col.scale_y = 2
col.operator(
operators.addon_updater.CheckAddonUpdate.bl_idname,
text="Check 'mmd_tools' add-on update",
text="Check mmd_tools add-on update",
icon='FILE_REFRESH'
)
else:
Expand All @@ -141,7 +141,7 @@ def draw(self, context):
col = row.column()
col.operator(
operators.addon_updater.CheckAddonUpdate.bl_idname,
text="Check 'mmd_tools' add-on update",
text="Check mmd_tools add-on update",
icon='FILE_REFRESH'
)
col = row.column()
Expand All @@ -156,11 +156,11 @@ def draw(self, context):
col.enabled = False
col.operator(
operators.addon_updater.UpdateAddon.bl_idname,
text="No updates are available."
text="No updates are available"
)

update_col.separator()
update_col.label(text="Manual Update:")
update_col.label(text="(Danger) Manual Update:")
row = update_col.row(align=True)
row.prop(self, "updater_branch_to_update", text="Target")
row.operator(
Expand Down
30 changes: 30 additions & 0 deletions mmd_tools/m17n.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@
("*", "Dictionary Folder"): "辞書フォルダ",
("*", "Non-Collision Threshold"): "非コリジョンしきい値",

("*", "Add-on update"): "アドオン更新",
("Operator", "Restart Blender to complete update"): "Blenderを再起動して更新を完了",
("Operator", "Check mmd_tools add-on update"): "mmd_toolsアドオンの更新を確認",
("*", "Update to the latest release version ({})"): "最新バージョンへ更新",
("Operator", "No updates are available"): "更新はありません",
("*", "(Danger) Manual Update:"): "(危険)手動更新:",
("*", "Branch"): "ブランチ",
("*", "Target"): "ターゲット",
("Operator", "Update"): "更新",

("*", "Failed to check update {}. ({})"): "更新の確認に失敗しました。{} ({})",
("*", "Checked update. ({})"): "更新を確認しました。({})",
("*", "Updated to {}. ({})"): "{}へ更新しました。({})",
("*", "Failed to update {}. ({})"): "更新に失敗しました。{} ({})",

# 3D Viewport > Sidebar > MMD > Operator Panel
("Operator", "Create Model"): "モデルを作成",
("Operator", "Create a MMD Model Root Object"): "MMDモデルルートオブジェクトを作成",
Expand Down Expand Up @@ -261,6 +276,21 @@
("*", "Dictionary Folder"): "辞書文件夹",
("*", "Non-Collision Threshold"): "非碰撞阈值",

("*", "Add-on update"): "插件更新",
("Operator", "Restart Blender to complete update"): "重新启动Blender以完成更新",
("Operator", "Check mmd_tools add-on update"): "检查mmd_tools插件更新",
("*", "Update to the latest release version ({})"): "更新到最新发布版本",
("Operator", "No updates are available"): "没有更新",
("*", "(Danger) Manual Update:"): "(危险)手动更新:",
("*", "Branch"): "分支",
("*", "Target"): "目标",
("Operator", "Update"): "更新",

("*", "Failed to check update {}. ({})"): "更新の確認に失敗しました。{} ({})",
("*", "Checked update. ({})"): "更新を確認しました。({})",
("*", "Updated to {}. ({})"): "{}へ更新しました。({})",
("*", "Failed to update {}. ({})"): "更新に失敗しました。{} ({})",

# 3D Viewport > Sidebar > MMD > Operator Panel
("Operator", "Create Model"): "创建新的模型",
("Operator", "Create a MMD Model Root Object"): "创建一个MMD模型的根物体",
Expand Down

0 comments on commit d932aa2

Please sign in to comment.