Changeset 29036

Show
Ignore:
Timestamp:
05.05.2014 17:00:36 (6 years ago)
Author:
ak19
Message:

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

Files:
1 modified

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