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

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

Location:
trunk/gli/src/org/greenstone/gatherer/collection
Files:
2 edited

Legend:

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

    r5308 r5347  
    223223    try {
    224224        // Create a progress monitor.
    225         ProgressMonitor progress = new ProgressMonitor(Gatherer.g_man, get("Creating_New"), "mkcol.pl", 0, 7);
     225        ProgressMonitor progress = new ProgressMonitor(Gatherer.g_man, get("CollectionManager.Creating_New"), "mkcol.pl", 0, 7);
    226226        // Create the new collection.
    227227        makeCollection(description, email, name, title);
     
    235235        gcache_dir.mkdirs();
    236236        if(progress != null) {
    237         progress.setNote(get("Gcache_Created"));
     237        progress.setNote(get("CollectionManager.Gcache_Created"));
    238238        }
    239239
     
    243243        log_dir.mkdirs();
    244244        if(progress != null) {
    245         progress.setNote(get("Log_Created"));
     245        progress.setNote(get("CollectionManager.Log_Created"));
    246246        }
    247247
     
    395395        String args[] = new String[1];
    396396        args[0] = name;
    397         progress.setNote(get("Session_Ready", args));
     397        progress.setNote(get("CollectionManager.Session_Ready", args));
    398398        progress.close();
    399399    }
     
    783783                collection.gdm = new GDMManager();
    784784                // Tell everyone that it worked.
    785                 Gatherer.println(get("Loading_Successful", name));
     785                Gatherer.println(get("CollectionManager.Loading_Successful", name));
    786786                // Now we need to hook up classes that depend on messages from the metadata set manager to keep their content fresh.
    787787                collection.msm.addMSMListener(this);
     
    796796                // There is obviously no existing collection present.
    797797                Gatherer.printStackTrace(error);
    798                 JOptionPane.showMessageDialog(Gatherer.g_man, get("Cannot_Open", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE);
     798                JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Cannot_Open", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE);
    799799            }
    800800            }
     
    808808    }
    809809    else {
    810         JOptionPane.showMessageDialog(Gatherer.g_man, get("Not_Col_File", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE);
     810        JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Not_Col_File", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE);
    811811        Gatherer.println("Not a Gatherer Collection.");
    812812    }
     
    929929        workspace_model = null;
    930930        Gatherer.g_man.collectionChanged(ready());
    931         JOptionPane.showMessageDialog(Gatherer.g_man, get("Preview_Ready"), get("Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE);
     931        JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Preview_Ready"), get("CollectionManager.Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE);
    932932    }
    933933    else if(event.getStatus() == GShell.ERROR) {
    934         JOptionPane.showMessageDialog(Gatherer.g_man, get("Preview_Ready_Failed"), get("Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE);
     934        JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Preview_Ready_Failed"), get("CollectionManager.Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE);
    935935        Gatherer.g_man.collectionChanged(ready());
    936936    }
  • trunk/gli/src/org/greenstone/gatherer/collection/DeleteCollectionPrompt.java

    r5157 r5347  
    9191    super(Gatherer.g_man);
    9292    this.close_button = new JButton(get("General.Close", null));
    93     this.confirmation = new JCheckBox(get("Confirm_Delete", null));
     93    this.confirmation = new JCheckBox(get("DeleteCollectionPrompt.Confirm_Delete", null));
    9494    this.details = new JTextArea();
    95     this.details_label = new JLabel(get("Collection_Details", null));
     95    this.details_label = new JLabel(get("DeleteCollectionPrompt.Collection_Details", null));
    9696    this.list = new JList();
    97     this.list_label = new JLabel(get("Collection_List", null));
     97    this.list_label = new JLabel(get("DeleteCollectionPrompt.Collection_List", null));
    9898    this.list_model = new DefaultListModel();
    9999    this.ok_button = new JButton(get("General.OK", null));
     
    101101    this.setModal(true);
    102102    this.setSize(SIZE);
    103     this.setTitle(get("Title", null));
     103    this.setTitle(get("DeleteCollectionPrompt.Title", null));
    104104    this.setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at
    105105    close_button.addActionListener(new CloseButtonListener());
     
    108108    confirmation.setSelected(false);
    109109    details.setFont(Gatherer.config.getFont("general.tooltip_font", false));
    110     details.setText(get("No_Collection", null));
     110    details.setText(get("DeleteCollectionPrompt.No_Collection", null));
    111111    list.addListSelectionListener(new CollectionListListener());
    112112    list.clearSelection();
     
    184184    args[0] = collection.getName();
    185185    if(success) {
    186         JOptionPane.showMessageDialog(prompt,get("Successful_Delete", args),get("Successful_Title", null),JOptionPane.INFORMATION_MESSAGE);
     186        JOptionPane.showMessageDialog(prompt,get("DeleteCollectionPrompt.Successful_Delete", args),get("DeleteCollectionPrompt.Successful_Title", null),JOptionPane.INFORMATION_MESSAGE);
    187187    }
    188188    else {
    189         JOptionPane.showMessageDialog(prompt,get("Failed_Delete", args),get("Failed_Title", null),JOptionPane.WARNING_MESSAGE);
     189        JOptionPane.showMessageDialog(prompt,get("DeleteCollectionPrompt.Failed_Delete", args),get("DeleteCollectionPrompt.Failed_Title", null),JOptionPane.WARNING_MESSAGE);
    190190    }
    191191    }
     
    264264        args[3] = collection.getMaintainer();
    265265        args[4] = collection.getDescription();
    266         details.setText(get("Details", args));
     266        details.setText(get("DeleteCollectionPrompt.Details", args));
    267267        details.setCaretPosition(0);
    268268        }
    269269        else {
    270270        confirmation.setEnabled(false);
    271         details.setText(get("No_Collection", null));
     271        details.setText(get("DeleteCollectionPrompt.No_Collection", null));
    272272        }
    273273    }
     
    314314        resultPrompt(true);
    315315        list_model.removeElement(collection);
    316         details.setText(get("No_Collection", null));
     316        details.setText(get("DeleteCollectionPrompt.No_Collection", null));
    317317        confirmation.setEnabled(false);
    318318        confirmation.setSelected(false);
Note: See TracChangeset for help on using the changeset viewer.