Loc string for toolbox menu

Closes #2544
Fix group context menu error
This commit is contained in:
JannisX11 2024-12-18 18:27:52 +01:00
parent d58ab3177d
commit c7ec92b7a4
3 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ const MenuBar = {
new BarMenu('tools', [
new MenuSeparator('overview'),
{id: 'main_tools', icon: 'construction', name: 'Toolbox', condition: () => Project, children() {
{id: 'main_tools', icon: 'construction', name: 'menu.tools.main_tools', condition: () => Project, children() {
let tools = Toolbox.children.filter(tool => tool instanceof Tool && tool.condition !== false);
tools.forEach(tool => {
let old_condition = tool.condition;

View File

@ -448,7 +448,6 @@ class Group extends OutlinerNode {
}},
"randomize_marker_colors",
{name: 'menu.cube.texture', icon: 'collections', condition: () => Format.per_group_texture, children(a, b, c) {
console.log({context, b, c});
function applyTexture(texture_value, undo_message) {
let affected_groups = Group.all.filter(g => g.selected);
Undo.initEdit({outliner: true});

View File

@ -2041,6 +2041,7 @@
"menu.transform.flip": "Flip",
"menu.transform.center": "Center",
"menu.transform.properties": "Properties",
"menu.tools.main_tools": "Toolbox",
"menu.display.preset": "Apply Preset",
"menu.display.preset_all": "Apply Preset Everywhere",
"menu.display.remove_preset": "Remove Preset",