01f8363e07
- This is the start of the translations system, does not yet work as I can't seem to get it to swap languages, I too tired today to fix it but it's a start. - It also adds properties registration as well.
20 lines
550 B
Python
20 lines
550 B
Python
import bpy
|
|
from ..core.register import register_wrap
|
|
from .panel import AvatarToolkitPanel
|
|
from ..functions.translations import t
|
|
|
|
@register_wrap
|
|
class AvatarToolkitSettingsPanel(bpy.types.Panel):
|
|
bl_label = t("Settings.label")
|
|
bl_idname = "OBJECT_PT_avatar_toolkit_settings"
|
|
bl_space_type = 'VIEW_3D'
|
|
bl_region_type = 'UI'
|
|
bl_category = "Avatar Toolkit"
|
|
bl_parent_id = "OBJECT_PT_avatar_toolkit"
|
|
|
|
def draw(self, context):
|
|
layout = self.layout
|
|
props = context.scene
|
|
|
|
layout.prop(props, "language")
|