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/MetadataImportMappingPrompt.java

    r11444 r12119  
    4242    dialog.setSize(DIALOG_SIZE);
    4343    dialog.setJMenuBar(new SimpleMenuBar("importingpreviouslyassignedmetadata"));
    44     Dictionary.setText(dialog, "MIMP.Title");
    45 
     44    dialog.setTitle(Dictionary.get("MIMP.Title"));
     45   
    4646    // All the loaded metadata sets except the extracted metadata set are applicable
    4747    ArrayList metadata_sets = MetadataSetManager.getMetadataSets();
     
    5252    }
    5353
    54     add_button = new GLIButton();
     54    add_button = new GLIButton(Dictionary.get("MIMP.Add"), Dictionary.get("MIMP.Add_Tooltip"));
    5555    add_button.addActionListener(this);
    56     add_button.setMnemonic(KeyEvent.VK_A);
    57     Dictionary.registerBoth(add_button, "MIMP.Add", "MIMP.Add_Tooltip");
    58 
    59     merge_button = new GLIButton();
     56   
     57    merge_button = new GLIButton(Dictionary.get("MIMP.Merge"), Dictionary.get("MIMP.Merge_Tooltip"));
    6058    merge_button.addActionListener(this);
    6159    merge_button.setEnabled(true);
    62     merge_button.setMnemonic(KeyEvent.VK_M);
    63     Dictionary.registerBoth(merge_button, "MIMP.Merge", "MIMP.Merge_Tooltip");
    64 
    65     ignore_button = new GLIButton();
     60   
     61    ignore_button = new GLIButton(Dictionary.get("MIMP.Ignore"), Dictionary.get("MIMP.Ignore_Tooltip"));
    6662    ignore_button.addActionListener(this);
    6763    ignore_button.setEnabled(true);
    68     ignore_button.setMnemonic(KeyEvent.VK_S);
    69     Dictionary.registerBoth(ignore_button, "MIMP.Ignore", "MIMP.Ignore_Tooltip");
    70 
     64   
    7165    // !! Need to add instructions: "MIMP.Instructions", args: source elem
    7266    metadata_elements_combobox = new GComboBox();
Note: See TracChangeset for help on using the changeset viewer.