From a6fb25b1093ecd6a741ee0e2c9047b6a13be19e5 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Thu, 18 Oct 2001 05:54:25 +0000 Subject: [PATCH] added more strings to translate --- Makefile.in | 4 +- aclocal.m4 | 2 +- configure | 2 +- configure.in | 2 +- doc/Makefile.in | 2 +- po/POTFILES.in | 1 + po/en.gmo | Bin 506 -> 1680 bytes po/en.po | 182 +++++++++++++++++++++++++++++++++++++++++++++++- po/psmisc.pot | 182 +++++++++++++++++++++++++++++++++++++++++++++++- src/Makefile.in | 2 +- src/fuser.c | 95 +++++++++++++------------ 11 files changed, 418 insertions(+), 56 deletions(-) diff --git a/Makefile.in b/Makefile.in index c5eab53..94ec3ba 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated automatically by automake 1.4-p2 from Makefile.am +# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation @@ -113,7 +113,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) $(ACLOCAL_M4): configure.in cd $(srcdir) && $(ACLOCAL) -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) +config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) diff --git a/aclocal.m4 b/aclocal.m4 index 7e8712f..238c6f9 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl aclocal.m4 generated automatically by aclocal 1.4-p2 +dnl aclocal.m4 generated automatically by aclocal 1.4-p4 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation diff --git a/configure b/configure index 54fd72c..c10e4d3 100755 --- a/configure +++ b/configure @@ -698,7 +698,7 @@ fi PACKAGE=psmisc -VERSION=20.2 +VERSION=20.3 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } diff --git a/configure.in b/configure.in index 7116531..382d041 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(src/comm.h) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(psmisc,20.2) +AM_INIT_AUTOMAKE(psmisc,20.3) dnl Checks for programs. diff --git a/doc/Makefile.in b/doc/Makefile.in index e4ad0af..bb77d08 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated automatically by automake 1.4-p2 from Makefile.am +# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation diff --git a/po/POTFILES.in b/po/POTFILES.in index 17118e9..3d32025 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1 +1,2 @@ src/killall.c +src/fuser.c diff --git a/po/en.gmo b/po/en.gmo index 06ac9f50f9609071ec175bbc30dc5b772353a70e..5c81d05305d1ac772dc3b482417b0455b389fd93 100644 GIT binary patch literal 1680 zcmeH_J8u**6om~ek1X#*LLl+DKvvlxc4?v%p-6#<6!8$E1qx@zvumx#9>$&xE74IR zO1g+YKuZ--ApQb$2qbD+=sDLjyP|}GE|%_mzP9K3+#`RRZ@m^63yAZGcZds!yZh?= z19%4cSFjKMYZICnsZ6>t^2435AP;H!o^ z4c~%?vAzp(osZxK_#I@O-Bx|?ZIE?6Zuk;pUAxWxXOMOM09jY-U|nw!WL>vF*7X!* zU2j0v^$BEMzZ$j<)%gO*x~_n%>l(NLZh|~cA@EBabNKRdyH2CWJe@}zMZn59PU6co z(V93CSA;m$kTpQMfPJ%Zx|tmZJD#*Bl^0<`UF!nnuChU;w7%TN<{DW?Md=ddJ&m+6 zDs7A23S~wPsPZ_sRfTwfGHn#q<+x6%WGc6e!tvFAI=+ePODhejvUDYN!=ymn6mst1 ze%#RQc%-yW-N_BRO!e|qV+YFr+NE_(*vWVSKK?1-kh~^zc-0sWMe63xjXQqP;O? zXgdrQB`zEIRH+ zH&fw9x+t_AP$A2pVGSBihS4=Pz4CIP)+j^6B|V~^r03N0^n~Y@d?9gtOd4b3d<0*| VSY|(|-|zEN+Iwev@9h7-v)=`}sxbfn delta 203 zcmbQh`-{2$o)F7a1|VPqVi_Rz0b*_-u7UDb0BJEGJ_@Dp0BLz3{tU!&KrGA%p^bnv zNPi%Z2C2`3(yc%mq<#*N2C3fzrEddiAW{PgK>!nw0y%;eh*=;)aFTiQUPklDIZV=% SIasYHA7YlDe1OpenGXOn0~ZAV diff --git a/po/en.po b/po/en.po index 23ccaa1..30146ca 100644 --- a/po/en.po +++ b/po/en.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2001-10-18 08:05+1000\n" +"POT-Creation-Date: 2001-10-18 12:43+1000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,7 +29,7 @@ msgstr "skipping partial match %s(%d)\n" msgid "Killed %s(%s%d) with signal %d\n" msgstr "Killed %s(%s%d) with signal %d\n" -#: src/killall.c:261 +#: src/fuser.c:452 src/killall.c:261 #, c-format msgid "%s is empty (not mounted ?)\n" msgstr "%s is empty (not mounted ?)\n" @@ -43,3 +43,181 @@ msgstr "%s: no process killed\n" #, c-format msgid "Maximum number of names is %d\n" msgstr "Maximum number of names is %d\n" + +#: src/fuser.c:211 +#, c-format +msgid "-4 flag used but proc file %s is not readable\n" +msgstr "-4 flag used but proc file %s is not readable\n" + +#: src/fuser.c:220 +#, c-format +msgid "-6 flag used but proc file %s is not readable\n" +msgstr "-6 flag used but proc file %s is not readable\n" + +#: src/fuser.c:536 +#, c-format +msgid "Kill process %d ? (y/n) " +msgstr "Kill process %d ? (y/n) " + +#: src/fuser.c:566 +#, c-format +msgid "kill %d" +msgstr "kill %d" + +#: src/fuser.c:570 src/fuser.c:574 +#, c-format +msgid "No automatic removal. Please use umount %s\n" +msgstr "No automatic removal. Please use umount %s\n" + +#: src/fuser.c:578 +#, c-format +msgid "No automatic removal. Please use swapoff %s\n" +msgstr "No automatic removal. Please use swapoff %s\n" + +#: src/fuser.c:680 +#, c-format +msgid "Internal error (type %d)\n" +msgstr "Internal error (type %d)\n" + +#: src/fuser.c:710 +msgid "kernel mount " +msgstr "kernel mount " + +#: src/fuser.c:713 +msgid "kernel loop " +msgstr "kernel loop " + +#: src/fuser.c:716 +msgid "kernel swap " +msgstr "kernel swap " + +#: src/fuser.c:736 +msgid "No process references; use -v for the complete list\n" +msgstr "No process references; use -v for the complete list\n" + +#: src/fuser.c:869 +msgid "can't find sockets' device number" +msgstr "can't find sockets' device number" + +#: src/fuser.c:877 +msgid "usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n" +msgstr "usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n" + +#: src/fuser.c:878 +#, c-format +msgid "%13s[ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n" +msgstr "" + +#: src/fuser.c:879 +msgid " fuser -l\n" +msgstr "" + +#: src/fuser.c:880 +msgid "" +" fuser -V\n" +"\n" +msgstr "" + +#: src/fuser.c:881 +msgid " -a display unused files too\n" +msgstr "" + +#: src/fuser.c:882 +msgid " -k kill processes accessing that file\n" +msgstr "" + +#: src/fuser.c:883 +msgid " -i ask before killing (ignored without -k)\n" +msgstr "" + +#: src/fuser.c:884 +msgid " -l list signal names\n" +msgstr "" + +#: src/fuser.c:885 +msgid " -m mounted FS\n" +msgstr "" + +#: src/fuser.c:886 +msgid " -n space search in the specified name space (file, udp, or tcp)\n" +msgstr "" + +#: src/fuser.c:887 +msgid " -s silent operation\n" +msgstr "" + +#: src/fuser.c:888 +msgid " -signal send signal instead of SIGKILL\n" +msgstr "" + +#: src/fuser.c:889 +msgid " -u display user ids\n" +msgstr "" + +#: src/fuser.c:890 +msgid " -v verbose output\n" +msgstr "" + +#: src/fuser.c:891 +msgid " -V display version information\n" +msgstr "" + +#: src/fuser.c:892 +msgid " -4 search IPv4 sockets only\n" +msgstr "" + +#: src/fuser.c:893 +msgid " -6 search IPv6 sockets only\n" +msgstr "" + +#: src/fuser.c:894 +msgid "" +" - reset options\n" +"\n" +msgstr "" + +#: src/fuser.c:895 +msgid "" +" udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]\n" +"\n" +msgstr "" + +#: src/fuser.c:901 +#, c-format +msgid "fuser (psmisc) %s\n" +msgstr "" + +#: src/fuser.c:902 +msgid "" +"Copyright (C) 1993-2000 Werner Almesberger and Craig Small\n" +"\n" +msgstr "" + +#: src/fuser.c:903 +msgid "PSmisc comes with ABSOLUTELY NO WARRANTY.\n" +msgstr "" + +#: src/fuser.c:904 +msgid "" +"This is free software, and you are welcome to redistribute it under the " +"terms\n" +msgstr "" + +#: src/fuser.c:905 +msgid "of the GNU General Public License.\n" +msgstr "" + +#: src/fuser.c:906 +msgid "" +"For more information about these matters, see the files named COPYING.\n" +msgstr "" + +#: src/fuser.c:1082 +#, c-format +msgid "ignoring -m in name space \"%s\"\n" +msgstr "" + +#: src/fuser.c:1090 +#, c-format +msgid "%1%s/%2%s: invalid specificiation\n" +msgstr "" diff --git a/po/psmisc.pot b/po/psmisc.pot index 158ec2d..39c157e 100644 --- a/po/psmisc.pot +++ b/po/psmisc.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2001-10-18 08:05+1000\n" +"POT-Creation-Date: 2001-10-18 12:43+1000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,7 +29,7 @@ msgstr "" msgid "Killed %s(%s%d) with signal %d\n" msgstr "" -#: src/killall.c:261 +#: src/fuser.c:452 src/killall.c:261 #, c-format msgid "%s is empty (not mounted ?)\n" msgstr "" @@ -43,3 +43,181 @@ msgstr "" #, c-format msgid "Maximum number of names is %d\n" msgstr "" + +#: src/fuser.c:211 +#, c-format +msgid "-4 flag used but proc file %s is not readable\n" +msgstr "" + +#: src/fuser.c:220 +#, c-format +msgid "-6 flag used but proc file %s is not readable\n" +msgstr "" + +#: src/fuser.c:536 +#, c-format +msgid "Kill process %d ? (y/n) " +msgstr "" + +#: src/fuser.c:566 +#, c-format +msgid "kill %d" +msgstr "" + +#: src/fuser.c:570 src/fuser.c:574 +#, c-format +msgid "No automatic removal. Please use umount %s\n" +msgstr "" + +#: src/fuser.c:578 +#, c-format +msgid "No automatic removal. Please use swapoff %s\n" +msgstr "" + +#: src/fuser.c:680 +#, c-format +msgid "Internal error (type %d)\n" +msgstr "" + +#: src/fuser.c:710 +msgid "kernel mount " +msgstr "" + +#: src/fuser.c:713 +msgid "kernel loop " +msgstr "" + +#: src/fuser.c:716 +msgid "kernel swap " +msgstr "" + +#: src/fuser.c:736 +msgid "No process references; use -v for the complete list\n" +msgstr "" + +#: src/fuser.c:869 +msgid "can't find sockets' device number" +msgstr "" + +#: src/fuser.c:877 +msgid "usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n" +msgstr "" + +#: src/fuser.c:878 +#, c-format +msgid "%13s[ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n" +msgstr "" + +#: src/fuser.c:879 +msgid " fuser -l\n" +msgstr "" + +#: src/fuser.c:880 +msgid "" +" fuser -V\n" +"\n" +msgstr "" + +#: src/fuser.c:881 +msgid " -a display unused files too\n" +msgstr "" + +#: src/fuser.c:882 +msgid " -k kill processes accessing that file\n" +msgstr "" + +#: src/fuser.c:883 +msgid " -i ask before killing (ignored without -k)\n" +msgstr "" + +#: src/fuser.c:884 +msgid " -l list signal names\n" +msgstr "" + +#: src/fuser.c:885 +msgid " -m mounted FS\n" +msgstr "" + +#: src/fuser.c:886 +msgid " -n space search in the specified name space (file, udp, or tcp)\n" +msgstr "" + +#: src/fuser.c:887 +msgid " -s silent operation\n" +msgstr "" + +#: src/fuser.c:888 +msgid " -signal send signal instead of SIGKILL\n" +msgstr "" + +#: src/fuser.c:889 +msgid " -u display user ids\n" +msgstr "" + +#: src/fuser.c:890 +msgid " -v verbose output\n" +msgstr "" + +#: src/fuser.c:891 +msgid " -V display version information\n" +msgstr "" + +#: src/fuser.c:892 +msgid " -4 search IPv4 sockets only\n" +msgstr "" + +#: src/fuser.c:893 +msgid " -6 search IPv6 sockets only\n" +msgstr "" + +#: src/fuser.c:894 +msgid "" +" - reset options\n" +"\n" +msgstr "" + +#: src/fuser.c:895 +msgid "" +" udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]\n" +"\n" +msgstr "" + +#: src/fuser.c:901 +#, c-format +msgid "fuser (psmisc) %s\n" +msgstr "" + +#: src/fuser.c:902 +msgid "" +"Copyright (C) 1993-2000 Werner Almesberger and Craig Small\n" +"\n" +msgstr "" + +#: src/fuser.c:903 +msgid "PSmisc comes with ABSOLUTELY NO WARRANTY.\n" +msgstr "" + +#: src/fuser.c:904 +msgid "" +"This is free software, and you are welcome to redistribute it under the " +"terms\n" +msgstr "" + +#: src/fuser.c:905 +msgid "of the GNU General Public License.\n" +msgstr "" + +#: src/fuser.c:906 +msgid "" +"For more information about these matters, see the files named COPYING.\n" +msgstr "" + +#: src/fuser.c:1082 +#, c-format +msgid "ignoring -m in name space \"%s\"\n" +msgstr "" + +#: src/fuser.c:1090 +#, c-format +msgid "%1%s/%2%s: invalid specificiation\n" +msgstr "" diff --git a/src/Makefile.in b/src/Makefile.in index c2a2f3e..75c02f5 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated automatically by automake 1.4-p2 from Makefile.am +# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation diff --git a/src/fuser.c b/src/fuser.c index 6003a6e..e4541cb 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -25,6 +25,9 @@ #include #include /* for MKDEV */ #include /* for LOOP_MAJOR */ +#include +#include +#define _(String) gettext (String) #include "comm.h" #include "loop.h" /* for loop_info */ @@ -205,7 +208,7 @@ fill_net_cache (SPACE_DSC * dsc) sprintf (buffer, PROC_BASE "/net/%s", dsc->name); if (stat(buffer, &statbuf) != 0) { if (ipv4only) - fprintf(stderr, "-4 flag used but proc file %s is not readable/\n", buffer); + fprintf(stderr, _("-4 flag used but proc file %s is not readable\n"), buffer); } else { parse_net_file (dsc, buffer, &last ); } @@ -214,7 +217,7 @@ fill_net_cache (SPACE_DSC * dsc) sprintf (buffer, PROC_BASE "/net/%s6", dsc->name); if (stat(buffer, &statbuf) != 0) { if (ipv6only) - fprintf(stderr, "-6 flag used but proc file %s is not readable/\n", buffer); + fprintf(stderr, _("-6 flag used but proc file %s is not readable\n"), buffer); } else { parse_net_file (dsc, buffer, &last ); } @@ -446,7 +449,7 @@ scan_fd (void) (void) closedir (dir); if (empty) { - fprintf (stderr, PROC_BASE " is empty (not mounted ?)\n"); + fprintf (stderr, _("%s is empty (not mounted ?)\n"),PROC_BASE); exit (1); } } @@ -530,7 +533,7 @@ ask (pid_t pid) fflush (stdout); do { - fprintf (stderr, "Kill process %d ? (y/n) ", pid); + fprintf (stderr, _("Kill process %d ? (y/n) "), pid); fflush (stderr); do if ((ch = getchar ()) == EOF) @@ -560,19 +563,19 @@ kill_item (const FILE_DSC * file, const ITEM_DSC * item) return; if (kill (item->u.proc.pid, file->sig_num) >= 0) break; - sprintf (tmp, "kill %d", item->u.proc.pid); + sprintf (tmp, _("kill %d"), item->u.proc.pid); perror (tmp); break; case it_mount: - fprintf (stderr, "No automatic removal. Please use umount %s\n", + fprintf (stderr, _("No automatic removal. Please use umount %s\n"), item->u.misc.path); break; case it_loop: - fprintf (stderr, "No automatic removal. Please use umount %s\n", + fprintf (stderr, _("No automatic removal. Please use umount %s\n"), item->u.misc.path); break; case it_swap: - fprintf (stderr, "No automatic removal. Please use swapoff %s\n", + fprintf (stderr, _("No automatic removal. Please use swapoff %s\n"), file->name); break; } @@ -674,7 +677,7 @@ show_files_or_kill (void) uid = 0; break; default: - fprintf (stderr, "Internal error (type %d)\n", + fprintf (stderr, _("Internal error (type %d)\n"), item->type); exit (1); } @@ -704,13 +707,13 @@ show_files_or_kill (void) !(item->u.proc.ref_set & REF_EXE) ? 'm' : '.'); break; case it_mount: - printf ("kernel mount "); + printf (_("kernel mount ")); break; case it_loop: - printf ("kernel loop "); + printf (_("kernel loop ")); break; case it_swap: - printf ("kernel swap "); + printf (_("kernel swap ")); break; } if (name) @@ -730,8 +733,7 @@ show_files_or_kill (void) if (!(file->flags & FLAG_VERB) || first) putchar ('\n'); if (first) - fprintf (stderr, "No process references; use -v for the complete" - " list\n"); + fprintf (stderr, _("No process references; use -v for the complete list\n")); if (file->flags & FLAG_KILL) for (item = file->items; item; item = item->next) kill_item (file, item); @@ -864,7 +866,7 @@ static void find_net_dev(void) } if (fd >= 0) close(fd); - fprintf(stderr,"can't find sockets' device number"); + fprintf(stderr,_("can't find sockets' device number")); } @@ -872,39 +874,36 @@ static void find_net_dev(void) static void usage (void) { - fprintf (stderr, "usage: fuser [ -a | -s ] [ -n space ] [ -signal ] " - "[ -kimuv ] name ...\n%13s[ - ] [ -n space ] [ -signal ] [ -kimuv ] " - "name ...\n", ""); - fprintf (stderr, " fuser -l\n"); - fprintf (stderr, " fuser -V\n\n"); - fprintf (stderr, " -a display unused files too\n"); - fprintf (stderr, " -k kill processes accessing that file\n"); - fprintf (stderr, " -i ask before killing (ignored without -k)\n"); - fprintf (stderr, " -l list signal names\n"); - fprintf (stderr, " -m mounted FS\n"); - fprintf (stderr, " -n space search in the specified name space (file, " - "udp, or tcp)\n"); - fprintf (stderr, " -s silent operation\n"); - fprintf (stderr, " -signal send signal instead of SIGKILL\n"); - fprintf (stderr, " -u display user ids\n"); - fprintf (stderr, " -v verbose output\n"); - fprintf (stderr, " -V display version information\n"); - fprintf (stderr, " -4 search IPv4 sockets only\n"); - fprintf (stderr, " -6 search IPv6 sockets only\n"); - fprintf (stderr, " - reset options\n\n"); - fprintf (stderr, " udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]" - "\n\n"); + fprintf (stderr, _("usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n")); + fprintf (stderr, _("%13s[ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"), ""); + fprintf (stderr, _(" fuser -l\n")); + fprintf (stderr, _(" fuser -V\n\n")); + fprintf (stderr, _(" -a display unused files too\n")); + fprintf (stderr, _(" -k kill processes accessing that file\n")); + fprintf (stderr, _(" -i ask before killing (ignored without -k)\n")); + fprintf (stderr, _(" -l list signal names\n")); + fprintf (stderr, _(" -m mounted FS\n")); + fprintf (stderr, _(" -n space search in the specified name space (file, udp, or tcp)\n")); + fprintf (stderr, _(" -s silent operation\n")); + fprintf (stderr, _(" -signal send signal instead of SIGKILL\n")); + fprintf (stderr, _(" -u display user ids\n")); + fprintf (stderr, _(" -v verbose output\n")); + fprintf (stderr, _(" -V display version information\n")); + fprintf (stderr, _(" -4 search IPv4 sockets only\n")); + fprintf (stderr, _(" -6 search IPv6 sockets only\n")); + fprintf (stderr, _(" - reset options\n\n")); + fprintf (stderr, _(" udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]\n\n")); exit (1); } void print_version() { - fprintf(stderr, "fuser (psmisc) %s\n", VERSION); - fprintf(stderr, "Copyright (C) 1993-2000 Werner Almesberger and Craig Small\n\n"); - fprintf(stderr, "PSmisc comes with ABSOLUTELY NO WARRANTY.\n"); - fprintf(stderr, "This is free software, and you are welcome to redistribute it under the terms\n"); - fprintf(stderr, "of the GNU General Public License.\n"); - fprintf(stderr, "For more information about these matters, see the files named COPYING.\n"); + fprintf(stderr, _("fuser (psmisc) %s\n"), VERSION); + fprintf(stderr, _("Copyright (C) 1993-2000 Werner Almesberger and Craig Small\n\n")); + fprintf(stderr, _("PSmisc comes with ABSOLUTELY NO WARRANTY.\n")); + fprintf(stderr, _("This is free software, and you are welcome to redistribute it under the terms\n")); + fprintf(stderr, _("of the GNU General Public License.\n")); + fprintf(stderr, _("For more information about these matters, see the files named COPYING.\n")); } @@ -920,6 +919,12 @@ main (int argc, char **argv) sig_number = SIGKILL; name_space = name_spaces; no_files = 1; + + /* Setup the i18n */ + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + if (argc < 2) usage (); if (argc == 2 && !strcmp (argv[1], "-l")) @@ -1074,7 +1079,7 @@ main (int argc, char **argv) if (flags & FLAG_DEV) { - fprintf (stderr, "ignoring -m in name space \"%s\"\n", + fprintf (stderr, _("ignoring -m in name space \"%s\"\n"), this_name_space->name); flags &= ~FLAG_DEV; } @@ -1082,7 +1087,7 @@ main (int argc, char **argv) if (!parse_inet (*argv, this_name_space->name, &lcl_port, &rmt_addr, &rmt_port)) { - fprintf (stderr, "%s/%s: invalid specificiation\n", *argv, + fprintf (stderr, _("%1%s/%2%s: invalid specificiation\n"), *argv, this_name_space->name); continue; } -- 2.40.0