Ignore:
Timestamp:
04/29/12 07:37:22 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The buttons are now explicitly defined for message dialogs to avoid language problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r123 r124  
    581581            dialog = gtk.MessageDialog(parent = self.mainWindow,
    582582                                       type = MESSAGETYPE_ERROR,
    583                                        buttons = BUTTONSTYPE_OK,
    584583                                       message_format = xstr("fleet_failed"))
     584            dialog.add_button(xstr("button_ok"), RESPONSETYPE_ACCEPT)
    585585            dialog.set_title(WINDOW_TITLE_BASE)
    586586            dialog.run()
     
    756756            dialog = gtk.MessageDialog(parent = self._mainWindow,
    757757                                       type = MESSAGETYPE_QUESTION,
    758                                        buttons = BUTTONSTYPE_YES_NO,
    759758                                       message_format = xstr("quit_question"))
     759
     760            dialog.add_button(xstr("button_no"), RESPONSETYPE_NO)
     761            dialog.add_button(xstr("button_yes"), RESPONSETYPE_YES)
    760762
    761763            dialog.set_title(WINDOW_TITLE_BASE)
Note: See TracChangeset for help on using the changeset viewer.