Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst Remove "usage" translations - they never co...



details:   https://anonhg.NetBSD.org/src/rev/a3e3758fca06
branches:  trunk
changeset: 445576:a3e3758fca06
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Nov 03 18:30:00 2018 +0000

description:
Remove "usage" translations - they never could be displayed as we only select
the language later.
Extend usage display a bit and sync with reality.

diffstat:

 usr.sbin/sysinst/main.c    |  19 +++++++++++++++++--
 usr.sbin/sysinst/msg.mi.de |   6 +-----
 usr.sbin/sysinst/msg.mi.en |   6 +-----
 usr.sbin/sysinst/msg.mi.es |   6 +-----
 usr.sbin/sysinst/msg.mi.fr |   6 +-----
 usr.sbin/sysinst/msg.mi.pl |   6 +-----
 6 files changed, 22 insertions(+), 27 deletions(-)

diffs (133 lines):

diff -r 8124426c50ff -r a3e3758fca06 usr.sbin/sysinst/main.c
--- a/usr.sbin/sysinst/main.c   Sat Nov 03 17:26:41 2018 +0000
+++ b/usr.sbin/sysinst/main.c   Sat Nov 03 18:30:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.11 2018/10/06 18:45:37 martin Exp $ */
+/*     $NetBSD: main.c,v 1.12 2018/11/03 18:30:00 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -420,7 +420,22 @@
 usage(void)
 {
 
-       (void)fprintf(stderr, "%s", msg_string(MSG_usage));
+       (void)fprintf(stderr, "usage: sysinst [-D] [-f definition_file] "
+           "[-r release] [-C bg:fg]"
+#ifndef NO_PARTMAN
+           " [-p]"
+#endif
+           "\n"
+           "where:\n"
+           "\t-D\n\t\trun in debug mode\n"
+           "\t-f definition_file\n\t\toverride built-in defaults from file\n"
+           "\t-r release\n\t\toverride release name\n"
+           "\t-C bg:fg\n\t\tuse different color scheme\n"
+#ifndef NO_PARTMAN
+           "\t-p\n\t\tonly run the partition editor, no installation\n"
+#endif
+           );
+
        exit(1);
 }
 
diff -r 8124426c50ff -r a3e3758fca06 usr.sbin/sysinst/msg.mi.de
--- a/usr.sbin/sysinst/msg.mi.de        Sat Nov 03 17:26:41 2018 +0000
+++ b/usr.sbin/sysinst/msg.mi.de        Sat Nov 03 18:30:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.mi.de,v 1.8 2018/09/11 08:05:18 martin Exp $       */
+/*     $NetBSD: msg.mi.de,v 1.9 2018/11/03 18:30:00 martin Exp $       */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -34,10 +34,6 @@
 
 /* MI Message catalog -- German, machine independent */
 
-message usage
-{Aufruf: sysinst [-D] [-f Definitionsdatei] [-r Version] [-C bg:fg]
-}
-
 /*
  * We can not use non ascii characters in this message - it is displayed
  * before the locale is set up!
diff -r 8124426c50ff -r a3e3758fca06 usr.sbin/sysinst/msg.mi.en
--- a/usr.sbin/sysinst/msg.mi.en        Sat Nov 03 17:26:41 2018 +0000
+++ b/usr.sbin/sysinst/msg.mi.en        Sat Nov 03 18:30:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.mi.en,v 1.12 2018/09/11 08:05:18 martin Exp $      */
+/*     $NetBSD: msg.mi.en,v 1.13 2018/11/03 18:30:00 martin Exp $      */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -34,10 +34,6 @@
 
 /* MI Message catalog -- english, machine independent */
 
-message usage
-{usage: sysinst [-D] [-f definition_file] [-r release] [-C bg:fg]
-}
-
 message sysinst_message_language
 {Installation messages in English}
 
diff -r 8124426c50ff -r a3e3758fca06 usr.sbin/sysinst/msg.mi.es
--- a/usr.sbin/sysinst/msg.mi.es        Sat Nov 03 17:26:41 2018 +0000
+++ b/usr.sbin/sysinst/msg.mi.es        Sat Nov 03 18:30:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.mi.es,v 1.8 2018/09/11 08:05:18 martin Exp $       */
+/*     $NetBSD: msg.mi.es,v 1.9 2018/11/03 18:30:00 martin Exp $       */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -34,10 +34,6 @@
 
 /* MI Message catalog -- spanish, machine independent */
 
-message usage
-{uso: sysinst [-D] [-f fichero_definición] [-r versión] [-C bg:fg]
-}
-
 /*
  * We can not use non ascii characters in this message - it is displayed
  * before the locale is set up!
diff -r 8124426c50ff -r a3e3758fca06 usr.sbin/sysinst/msg.mi.fr
--- a/usr.sbin/sysinst/msg.mi.fr        Sat Nov 03 17:26:41 2018 +0000
+++ b/usr.sbin/sysinst/msg.mi.fr        Sat Nov 03 18:30:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.mi.fr,v 1.11 2018/09/11 08:05:18 martin Exp $      */
+/*     $NetBSD: msg.mi.fr,v 1.12 2018/11/03 18:30:00 martin Exp $      */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -34,10 +34,6 @@
 
 /* MI Message catalog -- french, machine independent */
 
-message usage
-{utilisation: sysinst [-D] [-f fichier_de_définition] [-r version] [-C bg:fg]
-}
-
 /*
  * We can not use non ascii characters in this message - it is displayed
  * before the locale is set up!
diff -r 8124426c50ff -r a3e3758fca06 usr.sbin/sysinst/msg.mi.pl
--- a/usr.sbin/sysinst/msg.mi.pl        Sat Nov 03 17:26:41 2018 +0000
+++ b/usr.sbin/sysinst/msg.mi.pl        Sat Nov 03 18:30:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.mi.pl,v 1.10 2018/09/11 08:05:18 martin Exp $      */
+/*     $NetBSD: msg.mi.pl,v 1.11 2018/11/03 18:30:00 martin Exp $      */
 /*     Based on english version: */
 /*     NetBSD: msg.mi.pl,v 1.36 2004/04/17 18:55:35 atatat Exp       */
 
@@ -36,10 +36,6 @@
 
 /* MI Message catalog -- polish, machine independent */
 
-message usage
-{uzycie: sysinst [-D] [-f plik_definicja] [-r wersja] [-C bg:fg]
-}
-
 /*
  * We can not use non ascii characters in this message - it is displayed
  * before the locale is set up!



Home | Main Index | Thread Index | Old Index