]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- more locale strings
authorArtur Frysiak <artur@frysiak.net>
Mon, 9 Aug 1999 20:00:08 +0000 (20:00 +0000)
committerArtur Frysiak <artur@frysiak.net>
Mon, 9 Aug 1999 20:00:08 +0000 (20:00 +0000)
- fix locale support in configure.in

svn-id: @467

configure.in
rc.d/init.d/functions

index 6f0a66ed4422747063a3fd3cc308ade1f0661b27..8bd0a239daed67e4e7551120e7c16422d9382650 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.11 1999/08/09 19:44:58 kloczek Exp $
+dnl $Id: configure.in,v 1.12 1999/08/09 20:00:08 wiget Exp $
 AC_INIT()
 
 PACKAGE=rc-scripts
@@ -20,7 +20,11 @@ networkscriptsdir='${sysconfigdir}/network-scripts'
 rcdir='${sysconfdir}/rc.d'
 docdir="${prefix}/doc/$PACKAGE-$VERSION"
 libdir="${exec_prefix}/lib"
+
 dnl i18n support
+AC_PATH_PROGS(MSGMERGE, msgmerge)
+AC_PATH_PROGS(GMSGFMT, gmsgfmt msgfmt)
+
 CATALOGS=
 POTFILES=
 for lang in $ALL_LINGUAS; do
index 2f0376f5da2dc676dc2a673874c35a479b5b3970..b040f59b8e9d8053217fde13a36d2d352d4c4cc4 100644 (file)
@@ -1,7 +1,7 @@
 # functions    This file contains functions to be used by most or all
 #              shell scripts in the /etc/init.d directory.
 #
-# $Id: functions,v 1.18 1999/08/07 10:16:14 wiget Exp $
+# $Id: functions,v 1.19 1999/08/09 20:00:08 wiget Exp $
 #
 # Author:      Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
 # Hacked by:    Greg Galloway and Marc Ewing
@@ -52,39 +52,39 @@ fi
 # Some functions to handle PLD-style messages
 show() 
 {      
-       what="`nls DONE`"; typeset -i offset=${#what}
+       what="`nls "DONE"`"; typeset -i offset=${#what}
        text="`nls "$*"`"..................................................................................
        printf "%.$((69 - $offset))s" "$text"
 }
 
 busy() 
 {
-       echo -n "`tput setaf 6`[`tput setaf 5` `nls BUSY` `tput setaf 6`]`tput setaf 7`"
+       echo -n "`tput setaf 6`[`tput setaf 5` `nls "BUSY"` `tput setaf 6`]`tput setaf 7`"
 }
 
 ok() 
 {
-       echo  "`tput setaf 6`[`tput setaf 2` `nls DONE` `tput setaf 6`]`tput setaf 7`"
+       echo  "`tput setaf 6`[`tput setaf 2` `nls "DONE"` `tput setaf 6`]`tput setaf 7`"
 }
 
 started()
 {
-       echo  "`tput setaf 6`[`tput setaf 2` `nls WORK` `tput setaf 6`]`tput setaf 7`"
+       echo  "`tput setaf 6`[`tput setaf 2` `nls "WORK"` `tput setaf 6`]`tput setaf 7`"
 }
 
 fail() 
 {
-       echo  "`tput setaf 6`[`tput setaf 1` `nls FAIL` `tput setaf 6`]`tput setaf 7`"
+       echo  "`tput setaf 6`[`tput setaf 1` `nls "FAIL"` `tput setaf 6`]`tput setaf 7`"
 }
 
 died() 
 {
-       echo  "`tput setaf 6`[`tput setaf 1` `nls DIED` `tput setaf 6`]`tput setaf 7`"
+       echo  "`tput setaf 6`[`tput setaf 1` `nls "DIED"` `tput setaf 6`]`tput setaf 7`"
 }
 
 deltext() 
 {
-       echo -ne "`nls '\b\b\b\b\b\b\b\b'`"     
+       echo -ne "\b\b\b\b\b\b\b\b"     
 }
 
 # Usage run_cmd Message command_to_run
@@ -140,7 +140,7 @@ killproc()
 {
        # Test syntax.
        if [ $# = 0 ]; then
-               echo "Usage: killproc {program} [signal]"
+               nls "Usage: killproc {program} [signal]"
                return 1
        fi
 
@@ -203,7 +203,7 @@ pidofproc()
 {
        # Test syntax.
        if [ $# = 0 ] ; then
-               echo "Usage: pidofproc {program}"
+               nls "Usage: pidofproc {program}\n"
                return 1
        fi
 
@@ -234,14 +234,14 @@ status()
 {
        # Test syntax.
        if [ $# = 0 ] ; then
-               echo "Usage: status {program}"
+               nls "Usage: status {program}\n"
                return 1
        fi
 
        # First try "pidof"
        pid=`pidof $1`
        if [ "$pid" != "" ] ; then
-               echo "$1 (pid $pid) is running..."
+               nls "$1 (pid $pid) is running..."
                return 0
         else
                 pid=`ps ax | awk 'BEGIN { prog=ARGV[1]; ARGC=1 }
@@ -249,7 +249,7 @@ status()
                              (("[" prog "]") == $5) ||
                            ((prog ":") == $5)) { print $1 ; exit 0 } }' $1`
                 if [ "$pid" != "" ] ; then
-                        echo "$1 (pid $pid) is running..."
+                        nls "$1 (pid $pid) is running..."
                         return 0
                 fi
        fi
@@ -258,15 +258,15 @@ status()
        if [ -f /var/run/$1.pid ] ; then
                pid=`head -1 /var/run/$1.pid`
                if [ "$pid" != "" ] ; then
-                       echo "$1 dead but pid file exists"
+                       nls "$1 dead but pid file exists"
                        return 1
                fi
        fi
        # See if /var/lock/subsys/$1 exists
        if [ -f /var/lock/subsys/$1 ]; then
-               echo "$1 dead but subsys locked"
+               nls "$1 dead but subsys locked"
                return 2
        fi
-       echo "$1 is stopped"
+       nls "$1 is stopped"
        return 3
 }
This page took 0.188288 seconds and 4 git commands to generate.