Changeset 6747 for trunk/gli/makegli.bat


Ignore:
Timestamp:
2004-02-09T15:51:07+13:00 (20 years ago)
Author:
mdewsnip
Message:

Now with French strings!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/makegli.bat

    r6670 r6747  
    11@echo off
     2set GLILANG=en
    23
    3 echo.
    4 echo Greenstone Librarian Interface (GLI)
    5 echo Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato
    6 echo GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
    7 echo This is free software, and you are welcome to redistribute it
    8 echo.
    94
    105::  -------- Compile the Greenstone Librarian Interface --------
    116
     7echo.
     8if "%GLILANG%" == "en" echo Greenstone Librarian Interface (GLI)
     9if "%GLILANG%" == "en" echo Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato
     10if "%GLILANG%" == "en" echo GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
     11if "%GLILANG%" == "en" echo This is free software, and you are welcome to redistribute it
     12
     13if "%GLILANG%" == "fr" echo -- Still coming --
     14echo.
     15
    1216:: This script must be run from within the directory in which it lives
    1317if exist makegli.bat goto findJavac
    14     echo This script must be run from the directory in which it resides.
     18    if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides.
     19    if "%GLILANG%" == "fr" echo Ce script doit ˆtre ex‚cut‚
     20 partir du r‚pertoire dans lequel il se trouve.
    1521    goto exit
    1622
     
    5460:testJavac
    5561:: Check that a Javac executable has been found
    56 echo Checking Javac: %JAVACPATH%
     62if "%GLILANG%" == "en" echo Checking Javac: %JAVACPATH%
     63if "%GLILANG%" == "fr" echo V‚rification de Javac: %JAVACPATH%
    5764if exist "%JAVACPATH%\javac.exe" goto checkVer
    5865
    5966:noJavac
    6067    echo.
    61     echo Failed to locate an appropriate version of Javac. You must install a
    62     echo Java Development Kit (version 1.4 or greater) before compiling the
    63     echo Greenstone Librarian Interface.
     68    if "%GLILANG%" == "en" echo Failed to locate an appropriate version of Javac. You must install a
     69    if "%GLILANG%" == "en" echo Java Development Kit (version 1.4 or greater) before compiling the
     70    if "%GLILANG%" == "en" echo Greenstone Librarian Interface.
     71
     72    if "%GLILANG%" == "fr" echo Une version appropri‚e de Javac n'a pas pu ˆtre localis‚e. Vous devez
     73    if "%GLILANG%" == "fr" echo installer un Kit de D‚veloppement Java (version 1.4 ou sup‚rieure)
     74    if "%GLILANG%" == "fr" echo avant de produire la documentation de Greenstone Librarian Interface.
    6475    goto exit
    6576
     
    7384        del javacchk.tmp
    7485        echo.
    75         echo The version of the Java Development Kit you have installed is too old
    76         echo to compile the Greenstone Librarian Interface. Please install a new
    77         echo version of the Java SDK (version 1.4 or newer) and rerun this script.
     86        if "%GLILANG%" == "en" echo The version of the Java Development Kit you have installed is too old
     87        if "%GLILANG%" == "en" echo to compile the Greenstone Librarian Interface. Please install a new
     88        if "%GLILANG%" == "en" echo version of the Java SDK (version 1.4 or newer) and rerun this script.
     89
     90        if "%GLILANG%" == "fr" echo La version de Java Development Kit que vous avez install‚e est trop vieille
     91        if "%GLILANG%" == "fr" echo pour compiler Greenstone Librarian Interface. Veuillez installer une nouvelle
     92        if "%GLILANG%" == "fr" echo version de Java SDK (version 1.4 ou plus r‚cente) et red‚marrez ce script.
    7893        goto exit
    7994
     
    86101if "%1" == "" goto makeAll
    87102    :: If a file has been specified as a command-line argument, just compile that file
    88     echo Compiling %1 and dependant classes...
     103    if "%GLILANG%" == "en" echo Compiling %1 and dependant classes...
     104    if "%GLILANG%" == "fr" echo Compilation de %1 et des classes d‚pendantes,,,
    89105
    90106    "%JAVACPATH%\javac.exe" -d classes/ -sourcepath src/ -classpath classes/;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar %1
    91107
    92     echo Done!
     108    if "%GLILANG%" == "en" echo Done!
     109    if "%GLILANG%" == "fr" echo Termin‚!
    93110    goto done
    94111
    95112:makeAll
    96113:: Otherwise compile the lot...
    97 echo Compiling the Greenstone Librarian Interface...
     114if "%GLILANG%" == "en" echo Compiling the Greenstone Librarian Interface...
     115if "%GLILANG%" == "fr" echo Compilation de Greenstone Librarian Interface,,,
    98116
    99117"%JAVACPATH%\javac.exe" -d classes/ -sourcepath src/ -classpath classes/;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar src/org/greenstone/gatherer/*.java
     
    115133"%JAVACPATH%\javac.exe" -d classes/ -sourcepath src/ -classpath classes/;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar src/org/greenstone/gatherer/valuetree/*.java
    116134
    117 echo Done!
     135if "%GLILANG%" == "en" echo Done!
     136if "%GLILANG%" == "fr" echo Termin‚!
    118137goto done
    119138
Note: See TracChangeset for help on using the changeset viewer.