Core Translations

This commit is contained in:
Yusarina
2024-07-25 03:22:31 +01:00
parent fc69a22c62
commit 281c53e577
3 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ from ..functions.translations import t
@register_wrap @register_wrap
class ExportResonite(Operator): class ExportResonite(Operator):
bl_idname = 'avatar_toolkit.export_resonite' bl_idname = 'avatar_toolkit.export_resonite'
bl_label = t("Export.resonite.label") bl_label = t("Importer.export_resonite.label")
bl_description = t("Export.resonite.desc") bl_description = t("Importer.export_resonite.desc")
bl_options = {'REGISTER', 'UNDO'} bl_options = {'REGISTER', 'UNDO'}
filepath: bpy.props.StringProperty() filepath: bpy.props.StringProperty()
+8 -12
View File
@@ -8,10 +8,6 @@ from ..core.register import register_wrap
from ..core.addon_preferences import get_preference from ..core.addon_preferences import get_preference
from ..core.common import SceneMatClass, material_list_bool, get_armatures, get_mesh_items from ..core.common import SceneMatClass, material_list_bool, get_armatures, get_mesh_items
def register() -> None: def register() -> None:
default_language = get_preference("language", 0) default_language = get_preference("language", 0)
bpy.types.Scene.avatar_toolkit_language = bpy.props.EnumProperty( bpy.types.Scene.avatar_toolkit_language = bpy.props.EnumProperty(
@@ -31,20 +27,20 @@ def register() -> None:
bpy.types.Scene.avatar_toolkit_language_changed = bpy.props.BoolProperty(default=False) bpy.types.Scene.avatar_toolkit_language_changed = bpy.props.BoolProperty(default=False)
bpy.types.Scene.mouth_a = bpy.props.StringProperty( bpy.types.Scene.mouth_a = bpy.props.StringProperty(
name=t("Scene.mouth_a.label"), name=t("VisemePanel.mouth_a.label"),
description=t("Scene.mouth_a.desc") description=t("VisemePanel.mouth_a.desc")
) )
bpy.types.Scene.mouth_o = bpy.props.StringProperty( bpy.types.Scene.mouth_o = bpy.props.StringProperty(
name=t("Scene.mouth_o.label"), name=t("VisemePanel.mouth_o.label"),
description=t("Scene.mouth_o.desc") description=t("VisemePanel.mouth_o.desc")
) )
bpy.types.Scene.mouth_ch = bpy.props.StringProperty( bpy.types.Scene.mouth_ch = bpy.props.StringProperty(
name=t("Scene.mouth_ch.label"), name=t("VisemePanel.mouth_ch.label"),
description=t("Scene.mouth_ch.desc") description=t("VisemePanel.mouth_ch.desc")
) )
bpy.types.Scene.shape_intensity = bpy.props.FloatProperty( bpy.types.Scene.shape_intensity = bpy.props.FloatProperty(
name=t("Scene.shape_intensity.label"), name=t("VisemePanel.shape_intensity"),
description=t("Scene.shape_intensity.desc"), description=t("VisemePanel.shape_intensity_desc"),
default=1.0, default=1.0,
min=0.0, min=0.0,
max=2.0 max=2.0
+5 -1
View File
@@ -70,9 +70,13 @@
"VisemePanel.label": "Visemes", "VisemePanel.label": "Visemes",
"VisemePanel.select_mesh": "Select Mesh", "VisemePanel.select_mesh": "Select Mesh",
"VisemePanel.mouth_a.label": "Mouth A", "VisemePanel.mouth_a.label": "Mouth A",
"VisemePanel.mouth_o.label": "Mouth O", "VisemePanel.mouth_a.desc": "The shapekey for the 'A' mouth shape",
"VisemePanel.mouth_o.label": "Mouth O",
"VisemePanel.mouth_o.desc": "The shapekey for the 'O' mouth shape",
"VisemePanel.mouth_ch.label": "Mouth CH", "VisemePanel.mouth_ch.label": "Mouth CH",
"VisemePanel.mouth_ch.desc": "The shapekey for the 'CH' mouth shape",
"VisemePanel.shape_intensity": "Shape Intensity", "VisemePanel.shape_intensity": "Shape Intensity",
"VisemePanel.shape_intensity_desc": "The intensity of the viseme shapekeys",
"VisemePanel.create_visemes": "Create Visemes", "VisemePanel.create_visemes": "Create Visemes",
"VisemePanel.error.noMesh": "No mesh selected", "VisemePanel.error.noMesh": "No mesh selected",
"VisemePanel.error.noShapekeys": "Selected mesh has no shape keys", "VisemePanel.error.noShapekeys": "Selected mesh has no shape keys",