ui: make new menu item checkboxes translatable (#988)

Note: The menuitem.prop.is_default string is changed and needs to be retranslated.
This commit is contained in:
bd_ 2024-08-11 18:44:31 -07:00 committed by GitHub
parent ed4f5dfd31
commit 3117275277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -201,11 +201,11 @@ namespace nadena.dev.modular_avatar.core.editor
if (!_parameterName.hasMultipleDifferentValues && !_knownParameters.Contains(paramName))
{
EditorGUILayout.BeginHorizontal();
DrawHorizontalToggleProp(_prop_isDefault, new GUIContent("Default"));
DrawHorizontalToggleProp(_prop_isDefault, G("menuitem.prop.is_default"));
GUILayout.FlexibleSpace();
DrawHorizontalToggleProp(_prop_isSaved, new GUIContent("Saved"));
DrawHorizontalToggleProp(_prop_isSaved, G("menuitem.prop.is_saved"));
GUILayout.FlexibleSpace();
DrawHorizontalToggleProp(_prop_isSynced, new GUIContent("Synced"));
DrawHorizontalToggleProp(_prop_isSynced, G("menuitem.prop.is_synced"));
EditorGUILayout.EndHorizontal();
}

View File

@ -194,6 +194,8 @@
"menuitem.prop.submenu_source.tooltip": "Where to find the items to put inside this submenu",
"menuitem.prop.source_override": "Source object override",
"menuitem.prop.source_override.tooltip": "If specified, this object will be used as the source for the contents of the submenu. Otherwise, children of this menu item will be used.",
"menuitem.prop.is_default": "Default",
"menuitem.prop.is_default.tooltip": "If true, this menu item will be selected when the avatar is initially loaded",
"menuitem.prop.is_saved": "Saved",
"menuitem.prop.is_saved.tooltip": "If true, the value of this menu item will be saved when you change avatars or worlds.",
"menuitem.prop.is_synced": "Synced",
@ -222,9 +224,6 @@
"control_group.is_synced.tooltip": "If true, the value of this menu item will be synced to other players across the network.",
"control_group.default_value": "Initial setting",
"control_group.default_value.unset": "(none selected)",
"menuitem.prop.control_group": "Control Group",
"menuitem.prop.control_group.tooltip": "Only one toggle in a given group can be selected at the same time",
"menuitem.prop.is_default": "Is Group Default",
"animation_gen.duplicate_binding": "Controls from different control groups are trying to animate the same parameter. Parameter: {0}",
"animation_gen.multiple_defaults": "Multiple default menu items were found in the same control group.",
"menuitem.misc.add_item": "Add menu item",