Changeset 29036 for main/trunk/gli


Ignore:
Timestamp:
2014-05-05T17:00:36+12:00 (10 years ago)
Author:
ak19
Message:

JOptionPane yes, no, cancel, ok buttons need to be translatable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r24905 r29036  
    133133    UIManager.put("FileChooser.filesOfTypeLabelText", Dictionary.get("SaveCollectionBox.Files_Of_Type"));
    134134    UIManager.put("FileChooser.fileNameLabelText", Dictionary.get("SaveCollectionBox.File_Name"));
     135
     136    // JOptionPane options
     137    // http://www.java2s.com/Tutorial/Java/0240__Swing/SettingJOptionPanebuttonlabelstoFrench.htm
     138    UIManager.put("OptionPane.cancelButtonText", Dictionary.get("General.Cancel"));
     139    UIManager.put("OptionPane.noButtonText", Dictionary.get("General.No"));
     140    UIManager.put("OptionPane.okButtonText", Dictionary.get("General.OK"));
     141    UIManager.put("OptionPane.yesButtonText", Dictionary.get("General.Yes"));
    135142    }
    136143
Note: See TracChangeset for help on using the changeset viewer.