Draft: Applied patch from nahshon - fixes misc errors from translation fixes

This commit is contained in:
Yorik van Havre
2021-02-15 15:50:45 +01:00
parent 3467907fab
commit 686df593ea
6 changed files with 2 additions and 13 deletions

View File

@@ -235,8 +235,6 @@ class CubicBezCurve(gui_lines.Line):
def GetResources(self):
"""Set icon, menu and tooltip."""
_menu = ""
_tip = ()
return {'Pixmap': 'Draft_CubicBezCurve',
# 'Accel': "B, Z",

View File

@@ -163,10 +163,8 @@ class SelectGroup(gui_base.GuiCommandNeedsSelection):
d = {'Pixmap': 'Draft_SelectGroup',
'MenuText': QT_TRANSLATE_NOOP("Draft_SelectGroup","Select group"),
'ToolTip': QT_TRANSLATE_NOOP("Draft_SelectGroup","If the selection is a group, it selects all objects that are inside this group, "
"including those in nested sub-groups.\n\nIf the selection is a simple object "
"inside a group, it will select the \"brother\" objects, that is,\nthose that are "
"at the same level as this object, including the upper group that contains them all.")}
'ToolTip': QT_TRANSLATE_NOOP("Draft_SelectGroup","If the selection is a group, it selects all objects that are inside this group, including those in nested sub-groups.\n\nIf the selection is a simple object inside a group, it will select the \"brother\" objects, that is,\nthose that are at the same level as this object, including the upper group that contains them all.")}
return d
def Activated(self):

View File

@@ -54,8 +54,6 @@ class Shape2DView(gui_base_original.Modifier):
def GetResources(self):
"""Set icon, menu and tooltip."""
_menu = ""
_tip = ()
return {'Pixmap': 'Draft_2DShapeView',
'MenuText': QT_TRANSLATE_NOOP("Draft_Shape2DView", "Shape 2D view"),

View File

@@ -62,8 +62,6 @@ class ShapeString(gui_base_original.Creator):
def GetResources(self):
"""Set icon, menu and tooltip."""
_menu = ""
_tip = ()
d = {'Pixmap': 'Draft_ShapeString',
'Accel': "S, S",

View File

@@ -567,7 +567,6 @@ class ShowSnapBar(gui_base.GuiCommandSimplest):
def GetResources(self):
"""Set icon, menu and tooltip."""
_tip = ""
return {'Pixmap': 'Draft_Snap',
'MenuText': QT_TRANSLATE_NOOP("Draft_ShowSnapBar","Show snap toolbar"),

View File

@@ -54,8 +54,6 @@ class SubelementHighlight(gui_base_original.Modifier):
def GetResources(self):
"""Set icon, menu and tooltip."""
_menu = ""
_tip = ()
return {'Pixmap': 'Draft_SubelementHighlight',
'Accel': "H, S",