Ignore:
Timestamp:
2006-07-10T14:57:04+12:00 (18 years ago)
Author:
kjdon
Message:

Changed text handling to use Dictionary.get rather than Dictionary.setText or Dictionary.registerBoth etc. also removed mnemonics cos they suck for other languages

File:
1 edited

Legend:

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

    r11612 r12119  
    5656    setModal(true);
    5757    setSize(DIALOG_SIZE);
    58     Dictionary.setText(this, "MappingPrompt.Title");
    59 
     58    setTitle(Dictionary.get("MappingPrompt.Title"));
     59   
    6060    // Creation
    6161    JPanel content_pane = (JPanel) getContentPane();
     
    6464    JPanel fields_pane = new JPanel();
    6565
    66     JLabel file_label = new JLabel();
    67     Dictionary.setText(file_label, "MappingPrompt.File");
     66    JLabel file_label = new JLabel(Dictionary.get("MappingPrompt.File"));
    6867    JLabel file_field = new JLabel(file.getAbsolutePath());
    6968
    70     JLabel name_label = new JLabel();
    71     Dictionary.setText(name_label, "MappingPrompt.Name");
     69    JLabel name_label = new JLabel(Dictionary.get("MappingPrompt.Name"));
    7270    name_field = new JTextField(file.getName());
    7371
    7472    JPanel button_pane = new JPanel();
    75     ok_button = new GLIButton();
     73    ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip"));
    7674    ok_button.setEnabled(name_field.getText().length() > 0);
    77     ok_button.setMnemonic(KeyEvent.VK_O);
    78     Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip");
    79     cancel_button = new GLIButton();
    80     cancel_button.setMnemonic(KeyEvent.VK_C);
    81     Dictionary.setBoth(cancel_button, "General.Cancel", "General.Cancel_Tooltip");
    82 
     75    cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
     76   
    8377    // Connection
    8478    cancel_button.addActionListener(this);
Note: See TracChangeset for help on using the changeset viewer.