diff options
author | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:39 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:39 +0100 |
commit | 7eda085c41faa3445b4b168ce78ab18dab87d98a (patch) | |
tree | eb8da4baebd0af68fa84818d3d51b4a3714667fc /sys-utils/ctrlaltdel.c | |
parent | 5c36a0eb7cdb0360f9afd5d747c321f423b35984 (diff) | |
download | util-linux-old-7eda085c41faa3445b4b168ce78ab18dab87d98a.tar.gz |
Imported from util-linux-2.9v tarball.
Diffstat (limited to 'sys-utils/ctrlaltdel.c')
-rw-r--r-- | sys-utils/ctrlaltdel.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys-utils/ctrlaltdel.c b/sys-utils/ctrlaltdel.c index c754fd05..5a0ac9ff 100644 --- a/sys-utils/ctrlaltdel.c +++ b/sys-utils/ctrlaltdel.c @@ -2,19 +2,28 @@ * ctrlaltdel.c - Set the function of the Ctrl-Alt-Del combination * Created 4-Jul-92 by Peter Orbaek <poe@daimi.aau.dk> * ftp://ftp.daimi.aau.dk/pub/linux/poe/ + * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org> + * - added Native Language Support + * */ #include <stdio.h> #include <unistd.h> #include <string.h> #include "linux_reboot.h" +#include "nls.h" int main(int argc, char *argv[]) { + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + + if(geteuid()) { fprintf(stderr, - "You must be root to set the Ctrl-Alt-Del behaviour.\n"); + _("You must be root to set the Ctrl-Alt-Del behaviour.\n")); exit(1); } @@ -29,7 +38,7 @@ main(int argc, char *argv[]) { exit(1); } } else { - fprintf(stderr, "Usage: ctrlaltdel hard|soft\n"); + fprintf(stderr, _("Usage: ctrlaltdel hard|soft\n")); exit(1); } exit(0); |