Skip to content

Commit

Permalink
add minimal localization
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikoga committed Dec 30, 2023
1 parent b9ff08c commit cae9aa7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Editor/Inspector/VRM/MergeVRM1SpringBonesEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

using nadena.dev.modular_avatar.core.vrm;
using UnityEditor;
using static nadena.dev.modular_avatar.core.editor.Localization;

namespace nadena.dev.modular_avatar.core.editor.vrm
{
Expand All @@ -19,10 +20,10 @@ private void OnEnable()

protected override void OnInnerInspectorGUI()
{
EditorGUILayout.PropertyField(_prop_collider_groups);
EditorGUILayout.PropertyField(_prop_springs);
EditorGUILayout.PropertyField(_prop_collider_groups, G("merge_vrm1_spring_bones.collider_groups"));
EditorGUILayout.PropertyField(_prop_springs, G("merge_vrm1_spring_bones.springs"));
serializedObject.ApplyModifiedProperties();
Localization.ShowLanguageUI();
ShowLanguageUI();
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion Editor/Localization/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
"merge_blend_tree.path_mode.tooltip": "How to interpret paths in animations. Using relative mode lets you record animations from an animator on this object.",
"merge_blend_tree.relative_path_root": "Relative Path Root",
"merge_blend_tree.relative_path_root.tooltip": "The root object to use when interpreting relative paths. If not specified, the object this component is attached to will be used.",


"merge_vrm1_spring_bones.collider_groups": "Collider Groups",
"merge_vrm1_spring_bones.springs": "Springs",

"worldfixed.quest": "This component is not compatible with the standalone Oculus Quest and will have no effect.",
"worldfixed.normal": "This object will be fixed to world unless you fixed to avatar with constraint.",
"fpvisible.normal": "This object will be visible in your first person view.",
Expand Down

0 comments on commit cae9aa7

Please sign in to comment.