Changeset 6749


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

Now with French strings!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/gli.bat

    r6670 r6749  
    11@echo off
     2set GLILANG=en
     3
    24
    35::  -------- Run the Greenstone Librarian Interface --------
     
    57:: This script must be run from within the directory in which it lives
    68if exist gli.bat goto start
    7     echo This script must be run from the directory in which it resides.
     9    if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides.
     10    if "%GLILANG%" == "fr" echo Ce script doit ˆtre ex‚cut‚
     11 partir du r‚pertoire dans lequel il se trouve.
    812    goto exit
    913
     
    1721:findGSDL
    1822echo.
    19 echo Greenstone Librarian Interface (GLI)
    20 echo Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato
    21 echo GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
    22 echo This is free software, and you are welcome to redistribute it
     23if "%GLILANG%" == "en" echo Greenstone Librarian Interface (GLI)
     24if "%GLILANG%" == "en" echo Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato
     25if "%GLILANG%" == "en" echo GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
     26if "%GLILANG%" == "en" echo This is free software, and you are welcome to redistribute it
     27
     28if "%GLILANG%" == "fr" echo -- Still coming --
    2329echo.
    2430::  ---- Determine GSDLHOME ----
     
    3743:testGSDL
    3844:: Check that the Greenstone installation looks OK
    39 echo Checking GSDL: %GSDLPATH%
     45if "%GLILANG%" == "en" echo Checking GSDL: %GSDLPATH%
     46if "%GLILANG%" == "fr" echo V‚rification de GSDL: %GSDLPATH%
    4047if exist "%GSDLPATH%\setup.bat" goto prepGSDL
    4148    echo.
    42     echo The Greenstone installation could not be found, or is incomplete.
    43     echo Try reinstalling Greenstone then running this script again.
     49    if "%GLILANG%" == "en" echo The Greenstone installation could not be found, or is incomplete.
     50    if "%GLILANG%" == "en" echo Try reinstalling Greenstone then running this script again.
     51
     52    if "%GLILANG%" == "fr" echo L'installation de Greenstone est introuvable ou incomplŠte. Essayez
     53    if "%GLILANG%" == "fr" echo de r‚installer Greenstone et ex‚cutez ce script
     54 nouveau.
    4455    goto exit
    4556
     
    91102:testPerl
    92103:: Check that a Perl executable has been found
    93 echo Checking Perl: %PERLPATH%
     104if "%GLILANG%" == "en" echo Checking Perl: %PERLPATH%
     105if "%GLILANG%" == "fr" echo V‚rification de Perl: %PERLPATH%
    94106if exist "%PERLPATH%\perl.exe" goto findJava
    95107
    96108:noPerl
    97109    echo.
    98     echo The Greenstone Librarian Interface requires perl in order to operate,
    99     echo but perl could not be detected on your system. Please ensure that perl
    100     echo is installed and is on your search path, then rerun this script.
     110    if "%GLILANG%" == "en" echo The Greenstone Librarian Interface requires perl in order to operate,
     111    if "%GLILANG%" == "en" echo but perl could not be detected on your system. Please ensure that perl
     112    if "%GLILANG%" == "en" echo is installed and is on your search path, then rerun this script.
     113
     114    if "%GLILANG%" == "fr" echo Greenstone Librarian Interface n‚cessite perl pour son fonctionnement,
     115    if "%GLILANG%" == "fr" echo mais perl n'a pas pu ˆtre d‚tect‚ dans votre systŠme. Veuillez vous
     116    if "%GLILANG%" == "fr" echo assurer que perl est install‚ et est sp‚cifi‚ dans votre chemin de
     117    if "%GLILANG%" == "fr" echo recherche, puis red‚marrez ce script.
    101118    goto exit
    102119
     
    145162:testJava
    146163:: Check that a Java executable has been found
    147 echo Checking Java: %JAVAPATH%
     164if "%GLILANG%" == "en" echo Checking Java: %JAVAPATH%
     165if "%GLILANG%" == "fr" echo V‚rification de Java: %JAVAPATH%
    148166if exist "%JAVAPATH%\java.exe" goto checkGLI
    149167
    150168:noJava
    151169    echo.
    152     echo Failed to locate an appropriate version of Java. You must install a
    153     echo Java Runtime Environment (version 1.4 or greater) before running the
    154     echo Greenstone Librarian Interface.
     170    if "%GLILANG%" == "en" echo Failed to locate an appropriate version of Java. You must install a
     171    if "%GLILANG%" == "en" echo Java Runtime Environment (version 1.4 or greater) before running the
     172    if "%GLILANG%" == "en" echo Greenstone Librarian Interface.
     173
     174    if "%GLILANG%" == "fr" echo Une version ad‚quate de Java n'a pas pu ˆtre localis‚e. Vous devez
     175    if "%GLILANG%" == "fr" echo installer un Java Runtime Environment (version 1.4 ou sup‚rieur)
     176    if "%GLILANG%" == "fr" echo avant de d‚marrer Greenstone Librarian Interface.
    155177    goto exit
    156178
     
    161183if exist "GLI.jar" goto runGLI
    162184    echo.
    163     echo You need to compile the Greenstone Librarian Interface (using makegli.bat)
    164     echo before running this script.
     185    if "%GLILANG%" == "en" echo You need to compile the Greenstone Librarian Interface (using makegli.bat)
     186    if "%GLILANG%" == "en" echo before running this script.
     187
     188    if "%GLILANG%" == "fr" echo Vous devez compiler le Greenstone Interface (en utilisant makegil.bat)
     189    if "%GLILANG%" == "fr" echo avant d'ex‚cuter ce script.
    165190    goto exit
    166191
     
    169194:: ---- Finally, run the GLI ----
    170195echo.
    171 echo Running the Greenstone Librarian Interface...
     196if "%GLILANG%" == "en" echo Running the Greenstone Librarian Interface...
     197if "%GLILANG%" == "fr" echo Ex‚cution de Greenstone Librarian Interface
    172198
    173199:: -Xms32M          To set minimum memory
     
    181207    "%JAVAPATH%\java" -cp classes/;GLI.jar;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar org.greenstone.gatherer.Gatherer -gsdl %GSDLHOME% -perl %PERLPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9
    182208
    183     echo Done!
     209    if "%GLILANG%" == "en" echo Done!
     210    if "%GLILANG%" == "fr" echo Termin‚!
    184211    goto done
    185212
     
    187214    "%JAVAPATH%\java" -cp classes/;GLI.jar;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar org.greenstone.gatherer.Gatherer -gsdl %GSDLHOME% -perl %PERLPATH% -library %GSDLHOME%\server.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
    188215
    189     echo Done!
     216    if "%GLILANG%" == "en" echo Done!
     217    if "%GLILANG%" == "fr" echo Termin‚!
    190218    goto done
    191219
Note: See TracChangeset for help on using the changeset viewer.