Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Workflow Buttons: Properly i18n tool names
Freya Lupena379042566d3
diff --git a/plugins/python/workflow_buttons/buttons_settings_dialog.py b/plugins/python/workflow_buttons/buttons_settings_dialog.pyindex 5ce3a395d6..3283740230 100644--- a/plugins/python/workflow_buttons/buttons_settings_dialog.py+++ b/plugins/python/workflow_buttons/buttons_settings_dialog.py@@ -24,42 +24,42 @@ INSTANCE = Krita.instance()LISTOFTOOLS = [{ "toolName": "", "toolIcon": "", "toolString": "" },- { "toolName": "InteractionTool", "toolIcon": "select", "toolString": "Select Shapes Tool" },- { "toolName": "SvgTextTool", "toolIcon": "draw-text", "toolString": "Text Tool" },- { "toolName": "PathTool", "toolIcon": "shape_handling", "toolString": "Edit Shapes Tool" },- { "toolName": "KarbonCalligraphyTool", "toolIcon": "calligraphy", "toolString": "Calligraphy" },- { "toolName": "KritaShape/KisToolBrush", "toolIcon": "krita_tool_freehand", "toolString": "Freehand Brush Tool" },- { "toolName": "KritaShape/KisToolLine", "toolIcon": "krita_tool_line", "toolString": "Line Tool" },- { "toolName": "KritaShape/KisToolRectangle", "toolIcon": "krita_tool_rectangle", "toolString": "Rectangle Tool" },- { "toolName": "KritaShape/KisToolEllipse", "toolIcon": "krita_tool_ellipse", "toolString": "Ellipse Tool" },- { "toolName": "KisToolPolygon", "toolIcon": "krita_tool_polygon", "toolString": "Polygon Tool" },- { "toolName": "KisToolPolyline", "toolIcon": "polyline", "toolString": "Polyline Tool" },- { "toolName": "KisToolPath", "toolIcon": "krita_draw_path", "toolString": "Bezier Curve Tool" },- { "toolName": "KisToolPencil", "toolIcon": "krita_tool_freehandvector", "toolString": "Freehand Path Tool" },- { "toolName": "KritaShape/KisToolDyna", "toolIcon": "krita_tool_dyna", "toolString": "Dynamic Brush Tool" },- { "toolName": "KritaShape/KisToolMultiBrush", "toolIcon": "krita_tool_multihand", "toolString": "Multibrush Tool" },- { "toolName": "KisToolTransform", "toolIcon": "krita_tool_transform", "toolString": "Transform Tool" },- { "toolName": "KritaTransform/KisToolMove", "toolIcon": "krita_tool_move", "toolString": "Move Tool" },- { "toolName": "KisToolCrop", "toolIcon": "tool_crop", "toolString": "Crop Tool" },- { "toolName": "KritaFill/KisToolGradient", "toolIcon": "krita_tool_gradient", "toolString": "Gradient Tool" },- { "toolName": "KritaSelected/KisToolColorSampler", "toolIcon": "krita_tool_color_sampler", "toolString": "Color Sampler" },- { "toolName": "KritaShape/KisToolLazyBrush", "toolIcon": "krita_tool_lazybrush", "toolString": "Colorize Mask Tool" },- { "toolName": "KritaShape/KisToolSmartPatch", "toolIcon": "krita_tool_smart_patch", "toolString": "Smart Patch Tool" },- { "toolName": "KritaFill/KisToolFill", "toolIcon": "krita_tool_color_fill", "toolString": "Fill Tool" },- { "toolName": "KisToolEncloseAndFill", "toolIcon": "krita_tool_enclose_and_fill", "toolString": "Enclose and Fill Tool" },- { "toolName": "KisAssistantTool", "toolIcon": "krita_tool_assistant", "toolString": "Assistant Tool" },- { "toolName": "KritaShape/KisToolMeasure", "toolIcon": "krita_tool_measure", "toolString": "Measurement Tool" },- { "toolName": "ToolReferenceImages", "toolIcon": "krita_tool_reference_images", "toolString": "Reference Images Tool" },- { "toolName": "KisToolSelectRectangular", "toolIcon": "tool_rect_selection", "toolString": "Rectangular Selection Tool" },- { "toolName": "KisToolSelectElliptical", "toolIcon": "tool_elliptical_selection", "toolString": "Elliptical Selection Tool" },- { "toolName": "KisToolSelectPolygonal", "toolIcon": "tool_polygonal_selection", "toolString": "Polygonal Selection Tool" },- { "toolName": "KisToolSelectOutline", "toolIcon": "tool_outline_selection", "toolString": "Freehand Selection Tool" },- { "toolName": "KisToolSelectContiguous", "toolIcon": "tool_contiguous_selection", "toolString": "Contiguous Selection Tool" },- { "toolName": "KisToolSelectSimilar", "toolIcon": "tool_similar_selection", "toolString": "Similar Color Selection Tool" },- { "toolName": "KisToolSelectPath", "toolIcon": "tool_path_selection", "toolString": "Bezier Curve Selection Tool" },- { "toolName": "KisToolSelectMagnetic", "toolIcon": "tool_magnetic_selection", "toolString": "Magnetic Selection Tool" },- { "toolName": "ZoomTool", "toolIcon": "tool_zoom", "toolString": "Zoom Tool" },- { "toolName": "PanTool", "toolIcon": "tool_pan", "toolString": "Pan Tool" }+ { "toolName": "InteractionTool", "toolIcon": "select", "toolString": i18n("Select Shapes Tool") },+ { "toolName": "SvgTextTool", "toolIcon": "draw-text", "toolString": i18n("Text Tool") },+ { "toolName": "PathTool", "toolIcon": "shape_handling", "toolString": i18n("Edit Shapes Tool") },+ { "toolName": "KarbonCalligraphyTool", "toolIcon": "calligraphy", "toolString": i18n("Calligraphy") },+ { "toolName": "KritaShape/KisToolBrush", "toolIcon": "krita_tool_freehand", "toolString": i18n("Freehand Brush Tool") },+ { "toolName": "KritaShape/KisToolLine", "toolIcon": "krita_tool_line", "toolString": i18n("Line Tool") },+ { "toolName": "KritaShape/KisToolRectangle", "toolIcon": "krita_tool_rectangle", "toolString": i18n("Rectangle Tool") },+ { "toolName": "KritaShape/KisToolEllipse", "toolIcon": "krita_tool_ellipse", "toolString": i18n("Ellipse Tool") },+ { "toolName": "KisToolPolygon", "toolIcon": "krita_tool_polygon", "toolString": i18n("Polygon Tool") },+ { "toolName": "KisToolPolyline", "toolIcon": "polyline", "toolString": i18n("Polyline Tool") },+ { "toolName": "KisToolPath", "toolIcon": "krita_draw_path", "toolString": i18n("Bezier Curve Tool") },+ { "toolName": "KisToolPencil", "toolIcon": "krita_tool_freehandvector", "toolString": i18n("Freehand Path Tool") },+ { "toolName": "KritaShape/KisToolDyna", "toolIcon": "krita_tool_dyna", "toolString": i18n("Dynamic Brush Tool") },+ { "toolName": "KritaShape/KisToolMultiBrush", "toolIcon": "krita_tool_multihand", "toolString": i18n("Multibrush Tool") },+ { "toolName": "KisToolTransform", "toolIcon": "krita_tool_transform", "toolString": i18n("Transform Tool") },+ { "toolName": "KritaTransform/KisToolMove", "toolIcon": "krita_tool_move", "toolString": i18n("Move Tool") },+ { "toolName": "KisToolCrop", "toolIcon": "tool_crop", "toolString": i18n("Crop Tool") },+ { "toolName": "KritaFill/KisToolGradient", "toolIcon": "krita_tool_gradient", "toolString": i18n("Gradient Tool") },+ { "toolName": "KritaSelected/KisToolColorSampler", "toolIcon": "krita_tool_color_sampler", "toolString": i18n("Color Sampler") },+ { "toolName": "KritaShape/KisToolLazyBrush", "toolIcon": "krita_tool_lazybrush", "toolString": i18n("Colorize Mask Tool") },+ { "toolName": "KritaShape/KisToolSmartPatch", "toolIcon": "krita_tool_smart_patch", "toolString": i18n("Smart Patch Tool") },+ { "toolName": "KritaFill/KisToolFill", "toolIcon": "krita_tool_color_fill", "toolString": i18n("Fill Tool") },+ { "toolName": "KisToolEncloseAndFill", "toolIcon": "krita_tool_enclose_and_fill", "toolString": i18n("Enclose and Fill Tool") },+ { "toolName": "KisAssistantTool", "toolIcon": "krita_tool_assistant", "toolString": i18n("Assistant Tool") },+ { "toolName": "KritaShape/KisToolMeasure", "toolIcon": "krita_tool_measure", "toolString": i18n("Measurement Tool") },+ { "toolName": "ToolReferenceImages", "toolIcon": "krita_tool_reference_images", "toolString": i18n("Reference Images Tool") },+ { "toolName": "KisToolSelectRectangular", "toolIcon": "tool_rect_selection", "toolString": i18n("Rectangular Selection Tool") },+ { "toolName": "KisToolSelectElliptical", "toolIcon": "tool_elliptical_selection", "toolString": i18n("Elliptical Selection Tool") },+ { "toolName": "KisToolSelectPolygonal", "toolIcon": "tool_polygonal_selection", "toolString": i18n("Polygonal Selection Tool") },+ { "toolName": "KisToolSelectOutline", "toolIcon": "tool_outline_selection", "toolString": i18n("Freehand Selection Tool") },+ { "toolName": "KisToolSelectContiguous", "toolIcon": "tool_contiguous_selection", "toolString": i18n("Contiguous Selection Tool") },+ { "toolName": "KisToolSelectSimilar", "toolIcon": "tool_similar_selection", "toolString": i18n("Similar Color Selection Tool") },+ { "toolName": "KisToolSelectPath", "toolIcon": "tool_path_selection", "toolString": i18n("Bezier Curve Selection Tool") },+ { "toolName": "KisToolSelectMagnetic", "toolIcon": "tool_magnetic_selection", "toolString": i18n("Magnetic Selection Tool") },+ { "toolName": "ZoomTool", "toolIcon": "tool_zoom", "toolString": i18n("Zoom Tool") },+ { "toolName": "PanTool", "toolIcon": "tool_pan", "toolString": i18n("Pan Tool") }]LISTOFSIZES = [16, 22, 32, 48, 64]@@ -363,7 +363,7 @@ class ButtonsSettingsDialog(QDialog):toolNumber += 1self.toolSelector.insertItem(toolNumber,INSTANCE.icon(LISTOFTOOLS[toolNumber]["toolIcon"]),- i18n(LISTOFTOOLS[toolNumber]["toolString"]))+ LISTOFTOOLS[toolNumber]["toolString"])def populateSizeList(self):listIndex = -1