Skip to content

Commit

Permalink
Merge pull request powroupi#360 from UuuNyaa/dev_test
Browse files Browse the repository at this point in the history
Add support for Multilingualization (m17n)
  • Loading branch information
powroupi authored Aug 15, 2021
2 parents c63d68b + d72c0de commit d6a8e9c
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 3 deletions.
5 changes: 5 additions & 0 deletions mmd_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ def register():
bpy.types.VIEW3D_MT_armature_add.append(menu_func_armature)
#bpy.context.preferences.filepaths.use_scripts_auto_execute = True

from mmd_tools.m17n import translation_dict
bpy.app.translations.register(bl_info['name'], translation_dict)

def unregister():
bpy.app.translations.unregister(bl_info['name'])

if bpy.app.version < (2, 80, 0):
bpy.types.INFO_MT_file_import.remove(menu_func_import)
bpy.types.INFO_MT_file_export.remove(menu_func_export)
Expand Down
Loading

0 comments on commit d6a8e9c

Please sign in to comment.