Ignore:
Timestamp:
2003-08-29T10:52:44+12:00 (21 years ago)
Author:
mdewsnip
Message:

Changed dictionary get()s to have the whole key.

File:
1 edited

Legend:

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

    r4675 r5347  
    9595    setModal(true);
    9696    setSize(SIZE);
    97     setTitle(get("Title"));
     97    setTitle(get("FileAssociationDialog.Title"));
    9898    setJMenuBar(new SimpleMenuBar("0"));// need to find an appropriate help page
    9999    JPanel content_pane = (JPanel) getContentPane();
    100100    content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
    101101    JPanel control_pane = new JPanel();
    102     JTextArea instructions_area = new JTextArea(get("Instructions"));
     102    JTextArea instructions_area = new JTextArea(get("FileAssociationDialog.Instructions"));
    103103    instructions_area.setEditable(false);
    104104    instructions_area.setLineWrap(true);
     
    107107    JPanel extension_pane = new JPanel();
    108108    extension_pane.setOpaque(false);
    109     JLabel extension_label = new JLabel(get("Extension"));
     109    JLabel extension_label = new JLabel(get("FileAssociationDialog.Extension"));
    110110    extension_label.setPreferredSize(LABEL_SIZE);
    111111    extension = new GComboBox();
     
    117117    JPanel command_pane = new JPanel();
    118118    command_pane.setOpaque(false);
    119     JLabel command_label = new JLabel(get("Command"));
     119    JLabel command_label = new JLabel(get("FileAssociationDialog.Command"));
    120120    command_label.setPreferredSize(LABEL_SIZE);
    121121    JPanel inner_pane = new JPanel();
     
    128128        command.setText(manager.getCommandString((String)extension.get(0)));
    129129    }
    130     browse = new JButton(get("Browse"));
     130    browse = new JButton(get("FileAssociationDialog.Browse"));
    131131    browse.setBackground(Gatherer.config.getColor("coloring.button_background", false));
    132132    browse.setPreferredSize(LABEL_SIZE);
     
    191191    public String display(String new_extension) {
    192192    if(new_extension != null) {
    193         ok.setText(get("Add"));
     193        ok.setText(get("FileAssociationDialog.Add"));
    194194        int index = extension.add(new_extension);
    195195        extension.setSelectedIndex(index);
     
    242242    public void actionPerformed(ActionEvent event) {
    243243        JFileChooser chooser = new JFileChooser(new File(Utility.BASE_DIR));
    244         chooser.setDialogTitle(get("Browse_Title"));
    245         chooser.setFileFilter(new ExtensionFileFilter(".bat", get("Batch_File")));
    246         chooser.setFileFilter(new ExtensionFileFilter(".com", get("Command_File")));
    247         chooser.setFileFilter(new ExtensionFileFilter(".exe", get("Executable_File")));
     244        chooser.setDialogTitle(get("FileAssociationDialog.Browse_Title"));
     245        chooser.setFileFilter(new ExtensionFileFilter(".bat", get("FileAssociationDialog.Batch_File")));
     246        chooser.setFileFilter(new ExtensionFileFilter(".com", get("FileAssociationDialog.Command_File")));
     247        chooser.setFileFilter(new ExtensionFileFilter(".exe", get("FileAssociationDialog.Executable_File")));
    248248        chooser.setAcceptAllFileFilterUsed(true);
    249249        int return_val = chooser.showOpenDialog(null);
Note: See TracChangeset for help on using the changeset viewer.