@@ -612,10 +612,14 @@ def _make_ref_axis_button(self):
612612 # lets find out, how many axis we got
613613 dic = self .axis_list
614614 name_prefix = "axis"
615+ name_prefix_sg = _ ("axis" )
616+ name_prefix_pl = _ ("axes" )
615617 else :
616618 # lets find out, how many joints we got
617619 dic = self .joint_axis_dic
618620 name_prefix = "joint"
621+ name_prefix_sg = _ ("joint" )
622+ name_prefix_pl = _ ("joints" )
619623 num_elements = len (dic )
620624
621625 # as long as the number of axis is less 6 we can use the standard layout
@@ -630,7 +634,7 @@ def _make_ref_axis_button(self):
630634 filepath = os .path .join (IMAGEDIR , file )
631635 print ("Filepath = " , filepath )
632636 btn = self ._get_button_with_image ("ref_all" , filepath , None )
633- btn .set_property ("tooltip-text" , _ ("Press to home all {0}" .format (name_prefix ) ))
637+ btn .set_property ("tooltip-text" , _ ("Press to home all {0}" ) .format (name_prefix_pl ))
634638 btn .connect ("clicked" , self ._on_btn_home_clicked )
635639 # we use pack_start, so the widgets will be moved from right to left
636640 # and are displayed the way we want
@@ -657,7 +661,7 @@ def _make_ref_axis_button(self):
657661
658662 name = "home_{0}_{1}" .format (name_prefix , elem )
659663 btn = self ._get_button_with_image (name , filepath , None )
660- btn .set_property ("tooltip-text" , _ ("Press to home {0} {1}" .format (name_prefix , elem )))
664+ btn .set_property ("tooltip-text" , _ ("Press to home {0} {1}" ) .format (name_prefix_sg , elem . upper ( )))
661665 btn .connect ("clicked" , self ._on_btn_home_clicked )
662666
663667 self .widgets .hbtb_ref .pack_start (btn )
@@ -685,7 +689,7 @@ def _make_ref_axis_button(self):
685689 print ("Filepath = " , filepath )
686690 name = "unref_all"
687691 btn = self ._get_button_with_image (name , filepath , None )
688- btn .set_property ("tooltip-text" , _ ("Press to unhome all {0}" .format (name_prefix ) ))
692+ btn .set_property ("tooltip-text" , _ ("Press to unhome all {0}" ) .format (name_prefix_pl ))
689693 btn .connect ("clicked" , self ._on_btn_unhome_clicked )
690694 self .widgets .hbtb_ref .pack_start (btn )
691695
@@ -900,7 +904,7 @@ def _make_touch_button(self):
900904 filepath = os .path .join (IMAGEDIR , file )
901905 name = "touch_{0}" .format (elem )
902906 btn = self ._get_button_with_image (name , filepath , None )
903- btn .set_property ("tooltip-text" , _ ("Press to set touch off value for axis {0}" .format (elem .upper () )))
907+ btn .set_property ("tooltip-text" , _ ("Press to set touch off value for axis {0}" ) .format (elem .upper ()))
904908 btn .connect ("clicked" , self ._on_btn_set_value_clicked )
905909
906910 #print("Touch button Name = ",name)
0 commit comments