Skip to content

Commit e60ce0c

Browse files
committed
qtdragon/hd/hd_vert/lathe -make macro button translateable
if there are more then 10 macros the 10th macro button's label changes. now it's translateable to whatever one wants.
1 parent 4d388fc commit e60ce0c

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

share/qtvcp/screens/qtdragon/qtdragon_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,7 @@ def configureMacroButtons(self):
20942094

20952095
# if there are more then 10 add a menu to the last button for selection
20962096
if len(INFO.MDI_COMMAND_DICT)>10:
2097-
button.setText('MORE\nMACROS')
2097+
button.setText(_translate("HandlerClass",'MORE\nMACROS'))
20982098
button.setProperty('ini_mdi_command_action', False)
20992099
button.setProperty('no_action', True)
21002100
button.setToolTip('')

share/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2062,9 +2062,10 @@ def configureMacroButtons(self):
20622062
# no buttons hide frame
20632063
if flag:
20642064
self.w.frame_macro_buttons.hide()
2065+
20652066
# if there are more then 10 add a menu to the last button for selection
20662067
if len(INFO.MDI_COMMAND_DICT)>10:
2067-
button.setText('MORE\nMACROS')
2068+
button.setText(_translate("HandlerClass",'MORE\nMACROS')
20682069
button.setProperty('ini_mdi_command_action', False)
20692070
button.setProperty('no_action', True)
20702071
button.setToolTip('')

share/qtvcp/screens/qtdragon_hd_vert/qtdragon_hd_vert_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ def configureMacroButtons(self):
20652065

20662066
# if there are more then 10 add a menu to the last button for selection
20672067
if len(INFO.MDI_COMMAND_DICT)>10:
2068-
button.setText('MORE\nMACROS')
2068+
button.setText(_translate("HandlerClass",'MORE\nMACROS')
20692069
button.setProperty('ini_mdi_command_action', False)
20702070
button.setProperty('no_action', True)
20712071
button.setToolTip('')

share/qtvcp/screens/qtdragon_lathe/qtdragon_lathe_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ def configureMacroButtons(self):
20762076

20772077
# if there are more then 10 add a menu to the last button for selection
20782078
if len(INFO.MDI_COMMAND_DICT)>10:
2079-
button.setText('MORE\nMACROS')
2079+
button.setText(_translate("HandlerClass",'MORE\nMACROS')
20802080
button.setProperty('ini_mdi_command_action', False)
20812081
button.setProperty('no_action', True)
20822082
button.setToolTip('')

0 commit comments

Comments
 (0)