Changeset 5355 for trunk/gli


Ignore:
Timestamp:
2003-08-29T12:00:36+12:00 (21 years ago)
Author:
mdewsnip
Message:

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

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionBox.java

    r4675 r5355  
    6767    // Dialog setup
    6868    this.setModal(true);
    69     this.setTitle(get("Title"));
     69    this.setTitle(get("SaveCollectionBox.Title"));
    7070    this.setSize(360,100);
    7171    }
     
    103103    String args[] = new String[1];
    104104    args[0] = name;
    105     JLabel save_label = new JLabel(get("Label", args));
     105    JLabel save_label = new JLabel(get("SaveCollectionBox.Label", args));
    106106    content_pane.add(save_label);
    107107    JPanel button_pane = new JPanel(new GridLayout(1,3));
  • trunk/gli/src/org/greenstone/gatherer/gui/Filter.java

    r5301 r5355  
    106106    }
    107107    combobox.setEditable(true);
    108     label = new JLabel(get("Filter_Tree"));
     108    label = new JLabel(get("Filter.Filter_Tree"));
    109109    label.setPreferredSize(SIZE);
    110110    // Add listeners.
     
    246246            ///ystem.err.println("Filter = " + temp_str);
    247247            // Ignore any string which matches a predefined filter, starting with All Files.
    248             if(temp_str.equals(get("All_Files"))) {
     248            if(temp_str.equals(get("Filter.All_Files"))) {
    249249            }
    250250            // HTM & HTML
    251             else if(temp_str.equals(get("0"))) {
     251            else if(temp_str.equals(get("Filter.0"))) {
    252252            }
    253253            // XML
    254             else if(temp_str.equals(get("1"))) {
     254            else if(temp_str.equals(get("Filter.1"))) {
    255255            }
    256256            // Text files
    257             else if(temp_str.equals(get("2"))) {
     257            else if(temp_str.equals(get("Filter.2"))) {
    258258            }
    259259            // Images
    260             else if(temp_str.equals(get("3"))) {
     260            else if(temp_str.equals(get("Filter.3"))) {
    261261            }
    262262            else {
     
    281281        catch (PatternSyntaxException error) {
    282282        if(first) {
    283             JOptionPane.showMessageDialog(Gatherer.g_man, get("Invalid_Pattern"), get("General.Error"), JOptionPane.ERROR_MESSAGE);
     283            JOptionPane.showMessageDialog(Gatherer.g_man, get("Filter.Invalid_Pattern"), get("General.Error"), JOptionPane.ERROR_MESSAGE);
    284284        }
    285285        }
     
    326326        }
    327327        else if(pattern == null) {
    328         result = get("All_Files");
     328        result = get("Filter.All_Files");
    329329        }
    330330        else {
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionMetadataPrompt.java

    r5159 r5355  
    3535    setModal(true);
    3636    setSize(size);
    37     setTitle(get("Title"));
     37    setTitle(get("NewCollectionPrompt.Title"));
    3838
    3939    // And the remaining metadata sets.
     
    5353
    5454    JPanel instructions_panel = new JPanel();
    55     JLabel instructions_label1 = new JLabel(get("Metadata_Instructions1"));
    56     JLabel instructions_label2 = new JLabel(get("Metadata_Instructions2"));
     55    JLabel instructions_label1 = new JLabel(get("NewCollectionPrompt.Metadata_Instructions1"));
     56    JLabel instructions_label2 = new JLabel(get("NewCollectionPrompt.Metadata_Instructions2"));
    5757
    5858    JPanel center_pane = new JPanel();
    5959
    6060    JPanel sets_list_pane = new JPanel();
    61     JLabel sets_list_label = new JLabel(get("Select_MDS"));
     61    JLabel sets_list_label = new JLabel(get("NewCollectionPrompt.Select_MDS"));
    6262    sets_list_label.setOpaque(false);
    6363    sets_list = new CheckList(sets, true);
    6464
    6565    JPanel elements_list_pane = new JPanel();
    66     JLabel elements_list_label = new JLabel(get("Metadata_Elements"));
     66    JLabel elements_list_label = new JLabel(get("NewCollectionPrompt.Metadata_Elements"));
    6767    elements_list = new JList();
    6868    elements_list.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
  • trunk/gli/src/org/greenstone/gatherer/msm/ExportMDSPrompt.java

    r4674 r5355  
    9797    if(export) {
    9898        setSize(EXPORT_SIZE);
    99         setTitle(get("Export_Title"));
     99        setTitle(get("MSMPrompt.Export_Title"));
    100100        setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at
    101101    }
    102102    else {
    103103        setSize(IMPORT_SIZE);
    104         setTitle(get("Import_Title"));
     104        setTitle(get("MSMPrompt.Import_Title"));
    105105        setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at
    106106    }
    107107    JPanel content_pane = (JPanel) getContentPane();
    108108    JPanel control_pane = new JPanel();
    109     JLabel set_label = new JLabel(get("Export_Set"));
     109    JLabel set_label = new JLabel(get("MSMPrompt.Export_Set"));
    110110    sets = new JComboBox(manager.getSets());
    111     JLabel condition_label = new JLabel(get("Export_Conditions"));
     111    JLabel condition_label = new JLabel(get("MSMPrompt.Export_Conditions"));
    112112    JPanel condition_pane = new JPanel();
    113113    ButtonGroup condition_group = new ButtonGroup();
    114     all_values = new JRadioButton(get("Export_All_Values"));
     114    all_values = new JRadioButton(get("MSMPrompt.Export_All_Values"));
    115115    all_values.setOpaque(false);
    116116    condition_group.add(all_values);
    117     no_values = new JRadioButton(get("Export_No_Values"));
     117    no_values = new JRadioButton(get("MSMPrompt.Export_No_Values"));
    118118    no_values.setOpaque(false);
    119119    condition_group.add(no_values);
    120     structure_only = new JRadioButton(get("Export_Subjects_Only"));
     120    structure_only = new JRadioButton(get("MSMPrompt.Export_Subjects_Only"));
    121121    structure_only.setOpaque(false);
    122122    condition_group.add(structure_only);
    123123    all_values.setSelected(true);
    124     JLabel file_label = new JLabel(get("Export_File"));
     124    JLabel file_label = new JLabel(get("MSMPrompt.Export_File"));
    125125    JPanel file_pane = new JPanel();
    126126    file_name = new JTextField(Utility.METADATA_DIR);
     
    128128    JPanel button_pane = new JPanel();
    129129    if(export) {
    130         export_button = new JButton(get("File_Export"));
     130        export_button = new JButton(get("MSMPrompt.File_Export"));
    131131        export_button.setEnabled(false);
    132132    }
    133133    else {
    134         export_button = new JButton(get("File_Import"));
     134        export_button = new JButton(get("MSMPrompt.File_Import"));
    135135        export_button.setEnabled(true);
    136136    }
Note: See TracChangeset for help on using the changeset viewer.