Changeset 10232


Ignore:
Timestamp:
2005-07-08T15:43:20+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now tells the user that the collection could not be created if no collect.cfg file exists.

Location:
trunk/gli
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/classes/dictionary.properties

    r9982 r10232  
    330330CollectionManager.Build_Cancelled:Building the collection has been cancelled.
    331331CollectionManager.Cannot_Create_Collection:An error has occurred and the collection could not be created.
     332CollectionManager.Cannot_Create_Collection_With_Reason:The collection could not be created because:\n{0-Error message}
    332333CollectionManager.Cannot_Delete_Index:This collection cannot be rebuilt because the old index files cannot be deleted.\nPlease make sure that Greenstone or some other program is not using these files,\n and try again.
    333334CollectionManager.Cannot_Delete_Index_Log:Old index files unable to be deleted so importing stopped.
     
    341342CollectionManager.Missing_Config:This collection does not have a valid collect.cfg file
    342343CollectionManager.Not_Col_File:'{0}' is not a Librarian Interface Collection File (.col)
     344CollectionManager.No_Config_File:The collect.cfg file has not been created by mkcol.pl.
    343345CollectionManager.Preview_Ready_Failed:An error has occurred which will prevent the collection being previewed.
    344346CollectionManager.Preview_Ready_Title:Collection Preview State.
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r10205 r10232  
    319319        if (!config_file.exists()) {
    320320        // no point continuing
    321         DebugStream.println("The collection could not be created");
     321        System.err.println("Error: no collect.cfg file has been created!");
     322        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Cannot_Create_Collection_With_Reason", Dictionary.get("CollectionManager.No_Config_File")), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    322323        progress.close();
    323324        return;
Note: See TracChangeset for help on using the changeset viewer.