Changeset 6706


Ignore:
Timestamp:
2004-02-03T13:49:34+13:00 (20 years ago)
Author:
mdewsnip
Message:

Now with Russian strings!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/makegli.sh

    r6670 r6706  
    11#!/bin/sh
     2glilang=
    23
    34echo
    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'
     5if [ "$glilang" == "ru" ]; then
     6    echo "-- Still coming --"
     7else
     8    echo 'Greenstone Librarian Interface (GLI)'
     9    echo 'Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato'
     10    echo 'GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt'
     11    echo 'This is free software, and you are welcome to redistribute it'
     12fi
    813echo
    914
     
    2732
    2833# Check that a Javac executable has been found
    29 echo "Checking Javac: $javacpath"
     34if [ "$glilang" == "ru" ]; then
     35    echo "ðÒÏ×ÅÒËÁ Javac: $javacpath"
     36else
     37    echo "Checking Javac: $javacpath"
     38fi
    3039if [ ! -x "$javacpath" ]; then
    3140    echo
    32     echo "Failed to locate an appropriate version of Javac. You must install a"
    33     echo "Java Development Kit (version 1.4 or greater) before compiling the"
    34     echo "Greenstone Librarian Interface."
     41    if [ "$glilang" == "ru" ]; then
     42    echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Javac."
     43    echo "÷Ù ÄÏÌÖÎÙ ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ Java Development Kit (×ÅÒÓÉÑ 1.4 ÉÌÉ ×ÙÛÅ)"
     44    echo "ÐÒÅÖÄÅ, ÞÅÍ ÇÅÎÅÒÉÒÏ×ÁÔØ ÄÏËÕÍÅÎÔÁÃÉÀ ÄÌÑ ÂÉÂÌÉÏÔÅÞÎÏÇÏ "
     45    echo "ÉÎÔÅÒÆÅÊÓÁ Greenstone."
     46    else
     47    echo "Failed to locate an appropriate version of Javac. You must install a"
     48    echo "Java Development Kit (version 1.4 or greater) before compiling the"
     49    echo "Greenstone Librarian Interface."
     50    fi
    3551    exit 1
    3652fi
     
    4359    if [ "$javacOK142" = "" ]; then
    4460    echo
    45     echo "The version of the Java Development Kit you have installed is too old"
    46     echo "to compile the Greenstone Librarian Interface. Please install a new"
    47     echo "version of the Java SDK (version 1.4 or newer) and rerun this script."
     61    if [ "$glilang" == "ru" ]; then
     62        echo "÷ÅÒÓÉÑ Java Development Kit, ËÏÔÏÒÕÀ ÷Ù ÕÓÔÁÎÏ×ÉÌÉ, ÓÌÉÛËÏÍ ÓÔÁÒÁ,"
     63        echo "ÞÔÏÂÙ ÄÁÔØ ×ÏÚÍÏÖÎÏÓÔØ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone."
     64        echo "ðÏÖÁÌÕÊÓÔÁ, ÕÓÔÁÎÏ×ÉÔÅ ÎÏ×ÕÀ ×ÅÒÓÉÀ Java SDK (×ÅÒÓÉÀ 1.4 ÉÌÉ ÂÏÌÅÅ"
     65        echo "ÎÏ×ÕÀ) É ÐÅÒÅÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÓËÒÉÐÔ."
     66    else
     67        echo "The version of the Java Development Kit you have installed is too old"
     68        echo "to compile the Greenstone Librarian Interface. Please install a new"
     69        echo "version of the Java SDK (version 1.4 or newer) and rerun this script."
     70    fi
    4871    exit 1
    4972    fi
     
    5679# If a file has been specified at the command-line, just compile that file
    5780if [ ! "x$*" = "x" ] ; then
    58     echo "Compiling $* and dependant classes..."
     81    if [ "$glilang" == "ru" ]; then
     82    echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ $* É ÚÁ×ÉÓÉÍÙÅ ËÌÁÓÓÙ..."
     83    else
     84    echo "Compiling $* and dependant classes..."
     85    fi
    5986
    6087    $javacpath -deprecation -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 $*
    6188
    62     echo "Done!"
     89    if [ "$glilang" == "ru" ]; then
     90    echo "÷ÙÐÏÌÎÅÎÏ!"
     91    else
     92    echo "Done!"
     93    fi
    6394    exit 0
    6495fi
    6596
    6697# Otherwise compile the lot...
    67 echo "Compiling the Greenstone Librarian Interface..."
     98if [ "$glilang" == "ru" ]; then
     99    echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone..."
     100else
     101    echo "Compiling the Greenstone Librarian Interface..."
     102fi
    68103
    69104$javacpath -deprecation -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
     
    85120$javacpath -deprecation -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
    86121
    87 echo "Done!"
     122if [ "$glilang" == "ru" ]; then
     123    echo "÷ÙÐÏÌÎÅÎÏ!"
     124else
     125    echo "Done!"
     126fi
Note: See TracChangeset for help on using the changeset viewer.