mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
BBIM - register translation strings #889
This commit is contained in:
@@ -22,6 +22,7 @@ import bpy
|
|||||||
import bpy.utils.previews
|
import bpy.utils.previews
|
||||||
import blenderbim
|
import blenderbim
|
||||||
import importlib
|
import importlib
|
||||||
|
from blenderbim.translations import translations_dict
|
||||||
from . import handler, ui, prop, operator, helper
|
from . import handler, ui, prop, operator, helper
|
||||||
|
|
||||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||||
@@ -250,6 +251,8 @@ def register():
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
bpy.app.translations.register("blenderbim", translations_dict)
|
||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
global icons
|
global icons
|
||||||
@@ -303,3 +306,5 @@ def unregister():
|
|||||||
bpy.utils.unregister_class(override_panel)
|
bpy.utils.unregister_class(override_panel)
|
||||||
bpy.utils.register_class(original_panel)
|
bpy.utils.register_class(original_panel)
|
||||||
del overridden_scene_panels[panel]
|
del overridden_scene_panels[panel]
|
||||||
|
|
||||||
|
bpy.app.translations.register("blenderbim", translations_dict)
|
||||||
|
|||||||
Reference in New Issue
Block a user