Switch to "-" (single minus) as input denotation for "no mount point"

in all translations and adjust the code accordingly.
Pointed out by Thierry Laronde.
This commit is contained in:
martin 2023-10-31 14:03:33 +00:00
parent 4cbadf4821
commit dd394e6375
6 changed files with 14 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: label.c,v 1.48 2023/01/06 18:19:27 martin Exp $ */
/* $NetBSD: label.c,v 1.49 2023/10/31 14:03:33 martin Exp $ */
/*
* Copyright 1997 Jonathan Stone
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: label.c,v 1.48 2023/01/06 18:19:27 martin Exp $");
__RCSID("$NetBSD: label.c,v 1.49 2023/10/31 14:03:33 martin Exp $");
#endif
#include <sys/types.h>
@ -439,7 +439,7 @@ edit_fs_mountpt(menudesc *m, void *arg)
if (last != NULL)
last[1] = 0;
if (first == NULL || *first == 0 || strcmp(first, "none") == 0) {
if (first == NULL || *first == 0 || strcmp(first, "-") == 0) {
edit->wanted->mount[0] = 0;
edit->wanted->instflags &= ~PUIINST_MOUNT;
return 0;
@ -452,6 +452,7 @@ edit_fs_mountpt(menudesc *m, void *arg)
} else {
strlcpy(edit->wanted->mount, first, sizeof edit->wanted->mount);
}
edit->wanted->instflags |= PUIINST_MOUNT;
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg.mi.de,v 1.43 2022/12/15 15:32:04 martin Exp $ */
/* $NetBSD: msg.mi.de,v 1.44 2023/10/31 14:03:33 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -152,7 +152,7 @@ message sectors
{Sektoren}
message mountpoint
{Mountpoint (oder 'kein(e)'))}
{Mountpoint (oder '-')}
message cylname
{Zyl}

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg.mi.en,v 1.46 2022/12/15 15:32:04 martin Exp $ */
/* $NetBSD: msg.mi.en,v 1.47 2023/10/31 14:03:33 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -143,7 +143,7 @@ message sectors
{sectors}
message mountpoint
{mount point (or 'none')}
{mount point (or '-')}
message cylname
{cyl}

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg.mi.es,v 1.39 2022/12/15 15:32:04 martin Exp $ */
/* $NetBSD: msg.mi.es,v 1.40 2023/10/31 14:03:33 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -150,7 +150,7 @@ message sectors
{sectores}
message mountpoint
{punto de montaje (o 'ninguno')}
{punto de montaje (o '-')}
message cylname
{cil}

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg.mi.fr,v 1.44 2022/12/15 15:32:04 martin Exp $ */
/* $NetBSD: msg.mi.fr,v 1.45 2023/10/31 14:03:33 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -152,7 +152,7 @@ message sectors
{secteurs}
message mountpoint
{point de montage (ou 'aucun')}
{point de montage (ou '-')}
message cylname
{cyl}

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg.mi.pl,v 1.45 2022/12/15 15:32:04 martin Exp $ */
/* $NetBSD: msg.mi.pl,v 1.46 2023/10/31 14:03:33 martin Exp $ */
/* Based on english version: */
/* NetBSD: msg.mi.pl,v 1.36 2004/04/17 18:55:35 atatat Exp */
@ -147,7 +147,7 @@ message sectors
{sektory}
message mountpoint
{punkt montowania (lub 'zaden')}
{punkt montowania (lub '-')}
message cylname
{cyl}