Changeset 7104


Ignore:
Timestamp:
2004-03-22T13:31:35+12:00 (20 years ago)
Author:
kjdon
Message:

added '-language xx' to the import.pl and buildcol.pl options. its not added to the mkcol.pl options cos we don't use the messages, but it could be.

File:
1 edited

Legend:

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

    r7095 r7104  
    154154    Gatherer.println("CollectionManager.buildCollection()");
    155155    building = true;
    156 
     156    String lang = Gatherer.config.getLanguage();
    157157    String args[];
    158158    if(Utility.isWindows()) {
    159         args = new String[5];
     159        args = new String[7];
    160160        args[0] = Gatherer.config.perl_path;
    161161        args[1] = "-S";
    162162        args[2] = Gatherer.config.getScriptPath() + "buildcol.pl";
    163163        args[3] = "-gli";
    164         args[4] = collection.getName();
     164        args[4] = "-language";
     165        args[5] = lang;
     166        args[6] = collection.getName();
    165167    }
    166168    else {
    167         args = new String[3];
     169        args = new String[5];
    168170        args[0] = Gatherer.config.getScriptPath() + "buildcol.pl";
    169171        args[1] = "-gli";
    170         args[2] = collection.getName();
     172        args[2] = "-language";
     173        args[3] = lang;
     174        args[4] = collection.getName();
    171175    }
    172176    args = ArrayTools.add(args, collection.build_options.getBuildValues());
     
    694698        }
    695699        String args[];
     700        String lang = Gatherer.config.getLanguage();
    696701        if(Utility.isWindows()) {
    697         args = new String[7];
     702        args = new String[9];
    698703        args[0] = Gatherer.config.perl_path;
    699704        args[1] = "-S";
    700705        args[2] = Gatherer.config.getScriptPath() + "import.pl";
    701706        args[3] = "-gli";
     707        args[4] = "-language";
     708        args[5] = lang;
     709        args[6] = "-importdir";
     710        args[7] = collection_import;
     711        args[8] = collection.getName();
     712        }
     713        else {
     714        args = new String[7];
     715        args[0] = Gatherer.config.getScriptPath() + "import.pl";
     716        args[1] = "-gli";
     717        args[2] = "-language";
     718        args[3] = lang;
    702719        args[4] = "-importdir";
    703720        args[5] = collection_import;
    704721        args[6] = collection.getName();
    705         }
    706         else {
    707         args = new String[5];
    708         args[0] = Gatherer.config.getScriptPath() + "import.pl";
    709         args[1] = "-gli";
    710         args[2] = "-importdir";
    711         args[3] = collection_import;
    712         args[4] = collection.getName();
    713722        }
    714723        collection_import = null;
Note: See TracChangeset for help on using the changeset viewer.