Repository: godotengine/godot
File: editor/plugins/canvas_item_editor_plugin.cpp (C++)

Code before:
	rotate_button->set_shortcut_context(this);
	rotate_button->set_tooltip_text(TTRC("Rotate Mode"));
	rotate_button->set_accessibility_name(TTRC("Rotate Mode"));

	scale_button = memnew(Button);
	scale_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(scale_button);
	scale_button->set_toggle_mode(true);
	scale_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_SCALE));
	scale_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/scale_mode", TTRC("Scale Mode"), Key::R, true));
	scale_button->set_shortcut_context(this);
	scale_button->set_tooltip_text(TTRC("Shift: Scale proportionally."));
	scale_button->set_accessibility_name(TTRC("Scale Mode"));

	main_menu_hbox->add_child(memnew(VSeparator));

	list_select_button = memnew(Button);
	list_select_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(list_select_button);
	list_select_button->set_toggle_mode(true);
	list_select_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_LIST_SELECT));
	list_select_button->set_tooltip_text(TTRC("Show list of selectable nodes at position clicked."));
	list_select_button->set_accessibility_name(TTRC("List Selectable Nodes"));

	pivot_button = memnew(Button);
	pivot_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(pivot_button);
	pivot_button->set_toggle_mode(true);
	pivot_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_EDIT_PIVOT));
	pivot_button->set_accessibility_name(TTRC("Change Pivot"));

	pan_button = memnew(Button);
	pan_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(pan_button);
	pan_button->set_toggle_mode(true);
	pan_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_PAN));
	pan_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/pan_mode", TTRC("Pan Mode"), Key::G));
	pan_button->set_shortcut_context(this);
	pan_button->set_tooltip_text(TTRC("You can also use Pan View shortcut (Space by default) to pan in any mode."));
	pan_button->set_accessibility_name(TTRC("Pan View"));

	ruler_button = memnew(Button);
	ruler_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(ruler_button);
	ruler_button->set_toggle_mode(true);
	ruler_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_RULER));
	ruler_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/ruler_mode", TTRC("Ruler Mode"), Key::M));
	ruler_button->set_shortcut_context(this);
	ruler_button->set_tooltip_text(TTRC("Ruler Mode"));
	ruler_button->set_accessibility_name(TTRC("Ruler Mode"));


Review comment (suggestion):
```suggestion
	pivot_button = memnew(Button);
	pivot_button->set_tooltip_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
```

Code after:
	rotate_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/rotate_mode", TTRC("Rotate Mode"), Key::E, true));
	rotate_button->set_shortcut_context(this);
	rotate_button->set_tooltip_text(TTRC("Rotate Mode"));
	rotate_button->set_accessibility_name(TTRC("Rotate Mode"));

	scale_button = memnew(Button);
	scale_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(scale_button);
	scale_button->set_toggle_mode(true);
	scale_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_SCALE));
	scale_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/scale_mode", TTRC("Scale Mode"), Key::R, true));
	scale_button->set_shortcut_context(this);
	scale_button->set_tooltip_text(TTRC("Shift: Scale proportionally."));
	scale_button->set_accessibility_name(TTRC("Scale Mode"));

	main_menu_hbox->add_child(memnew(VSeparator));

	list_select_button = memnew(Button);
	list_select_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(list_select_button);
	list_select_button->set_toggle_mode(true);
	list_select_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_LIST_SELECT));
	list_select_button->set_tooltip_text(TTRC("Show list of selectable nodes at position clicked."));
	list_select_button->set_accessibility_name(TTRC("List Selectable Nodes"));

	pivot_button = memnew(Button);
	pivot_button->set_tooltip_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
	pivot_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(pivot_button);
	pivot_button->set_toggle_mode(true);
	pivot_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_EDIT_PIVOT));
	pivot_button->set_accessibility_name(TTRC("Change Pivot"));

	pan_button = memnew(Button);
	pan_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(pan_button);
	pan_button->set_toggle_mode(true);
	pan_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_PAN));
	pan_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/pan_mode", TTRC("Pan Mode"), Key::G));
	pan_button->set_shortcut_context(this);
	pan_button->set_tooltip_text(TTRC("You can also use Pan View shortcut (Space by default) to pan in any mode."));
	pan_button->set_accessibility_name(TTRC("Pan View"));

	ruler_button = memnew(Button);
	ruler_button->set_theme_type_variation(SceneStringName(FlatButton));
	main_menu_hbox->add_child(ruler_button);
	ruler_button->set_toggle_mode(true);
	ruler_button->connect(SceneStringName(pressed), callable_mp(this, &CanvasItemEditor::_button_tool_select).bind(TOOL_RULER));
	ruler_button->set_shortcut(ED_SHORTCUT("canvas_item_editor/ruler_mode", TTRC("Ruler Mode"), Key::M));
	ruler_button->set_shortcut_context(this);
	ruler_button->set_tooltip_text(TTRC("Ruler Mode"));