Ignore:
Timestamp:
2003-08-29T11:38:22+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/sarm/SearchAndReplace.java

    r5183 r5350  
    137137    setModal(false);
    138138    setSize(SIZE);
    139     setTitle(get("Title"));
     139    setTitle(get("SearchAndReplace.Title"));
    140140    setJMenuBar(new SimpleMenuBar("10.1")); 
    141141    JPanel content_pane = (JPanel) getContentPane();
     
    144144
    145145    JPanel search_pane = new JPanel();
    146     JLabel search_label = new JLabel(get("Search"));
     146    JLabel search_label = new JLabel(get("SearchAndReplace.Search"));
    147147    search_label.setPreferredSize(LABEL_SIZE);
    148148    search = new JTextField("");
    149149
    150150    JPanel replace_pane = new JPanel();
    151     JLabel replace_label = new JLabel(get("Replace"));
     151    JLabel replace_label = new JLabel(get("SearchAndReplace.Replace"));
    152152    replace_label.setPreferredSize(LABEL_SIZE);
    153153    replace = new JTextField("");
     
    158158
    159159    JPanel options_pane = new JPanel();
    160     JLabel options_label = new JLabel(get("Options"));
     160    JLabel options_label = new JLabel(get("SearchAndReplace.Options"));
    161161    options_label.setPreferredSize(LABEL_SIZE);
    162162    JPanel inner_options_pane = new JPanel();
    163     case_sensitive = new JCheckBox(get("Case_Sensitive"));
    164     regular_expression = new JCheckBox(get("Regular_Expression"));
     163    case_sensitive = new JCheckBox(get("SearchAndReplace.Case_Sensitive"));
     164    regular_expression = new JCheckBox(get("SearchAndReplace.Regular_Expression"));
    165165         
    166166    JPanel options2_pane = new JPanel();
    167     JLabel options2_label = new JLabel(get("Search_In"));
     167    JLabel options2_label = new JLabel(get("SearchAndReplace.Search_In"));
    168168    options2_label.setPreferredSize(LABEL_SIZE);
    169169    JPanel inner_options2_pane = new JPanel();
    170     search_elements = new JCheckBox(get("Search_Elements"));
     170    search_elements = new JCheckBox(get("SearchAndReplace.Search_Elements"));
    171171    search_elements.setSelected(true);
    172     search_records = new JCheckBox(get("Search_Records"));
     172    search_records = new JCheckBox(get("SearchAndReplace.Search_Records"));
    173173    search_records.setSelected(true);
    174     search_values = new JCheckBox(get("Search_Values"));
     174    search_values = new JCheckBox(get("SearchAndReplace.Search_Values"));
    175175    search_values.setSelected(true);
    176176
    177177    JPanel results_pane = new JPanel();
    178     status = new JLabel(get("Status"));
     178    status = new JLabel(get("SearchAndReplace.Status"));
    179179
    180180    JPanel buttons_pane = new JPanel();
    181     find_button = new JButton(get("Find_Button"));
     181    find_button = new JButton(get("SearchAndReplace.Find_Button"));
    182182    find_button.setMnemonic(KeyEvent.VK_F);
    183     find_next_button = new JButton(get("Find_Next_Button"));
     183    find_next_button = new JButton(get("SearchAndReplace.Find_Next_Button"));
    184184    find_next_button.setEnabled(false);
    185185    find_next_button.setMnemonic(KeyEvent.VK_N);
    186     replace_button = new JButton(get("Replace_Button"));
     186    replace_button = new JButton(get("SearchAndReplace.Replace_Button"));
    187187    replace_button.setEnabled(false);
    188188    replace_button.setMnemonic(KeyEvent.VK_R);
    189     replace_all_button = new JButton(get("Replace_All_Button"));
     189    replace_all_button = new JButton(get("SearchAndReplace.Replace_All_Button"));
    190190    replace_all_button.setEnabled(false);
    191191    replace_all_button.setMnemonic(KeyEvent.VK_N);
    192     reset_button = new JButton(get("Reset"));
     192    reset_button = new JButton(get("SearchAndReplace.Reset"));
    193193    reset_button.setEnabled(false);
    194194    reset_button.setMnemonic(KeyEvent.VK_ESCAPE);
    195     undo_button = new JButton(get("Undo"));
     195    undo_button = new JButton(get("SearchAndReplace.Undo"));
    196196    undo_button.setEnabled(false);
    197197    undo_button.setMnemonic(KeyEvent.VK_U);
    198     redo_button = new JButton(get("Redo"));
     198    redo_button = new JButton(get("SearchAndReplace.Redo"));
    199199    redo_button.setEnabled(false);
    200200    redo_button.setMnemonic(KeyEvent.VK_D);
     
    293293    if(key != null) {
    294294        args[0] = search.getText();
    295         status.setText(get("Status") + ": " + get(key, args));
     295        status.setText(get("SearchAndReplace.Status") + ": " + get(key, args));
    296296    }
    297297    else {
    298         status.setText(get("Status"));
     298        status.setText(get("SearchAndReplace.Status"));
    299299    }
    300300    }
Note: See TracChangeset for help on using the changeset viewer.