Skip to content

Commit

Permalink
Draft: Applied patch from nahshon - fixes misc errors from translatio…
Browse files Browse the repository at this point in the history
…n fixes
  • Loading branch information
yorikvanhavre committed Feb 15, 2021
1 parent 3467907 commit 686df59
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/Mod/Draft/draftguitools/gui_beziers.py
Expand Up @@ -235,8 +235,6 @@ def __init__(self):

def GetResources(self):
"""Set icon, menu and tooltip."""
_menu = ""
_tip = ()

return {'Pixmap': 'Draft_CubicBezCurve',
# 'Accel': "B, Z",
Expand Down
6 changes: 2 additions & 4 deletions src/Mod/Draft/draftguitools/gui_groups.py
Expand Up @@ -163,10 +163,8 @@ def GetResources(self):

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):
Expand Down
2 changes: 0 additions & 2 deletions src/Mod/Draft/draftguitools/gui_shape2dview.py
Expand Up @@ -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"),
Expand Down
2 changes: 0 additions & 2 deletions src/Mod/Draft/draftguitools/gui_shapestrings.py
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/Mod/Draft/draftguitools/gui_snaps.py
Expand Up @@ -567,7 +567,6 @@ def __init__(self):

def GetResources(self):
"""Set icon, menu and tooltip."""
_tip = ""

return {'Pixmap': 'Draft_Snap',
'MenuText': QT_TRANSLATE_NOOP("Draft_ShowSnapBar","Show snap toolbar"),
Expand Down
2 changes: 0 additions & 2 deletions src/Mod/Draft/draftguitools/gui_subelements.py
Expand Up @@ -54,8 +54,6 @@ def __init__(self):

def GetResources(self):
"""Set icon, menu and tooltip."""
_menu = ""
_tip = ()

return {'Pixmap': 'Draft_SubelementHighlight',
'Accel': "H, S",
Expand Down

0 comments on commit 686df59

Please sign in to comment.