From: Benno Schulenberg Date: Sat, 29 Sep 2007 13:14:42 +0000 (+0200) Subject: docs: tweak a few messages for clarity X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6557c51226da131349beeee5c79d71129406f9a5;p=util-linux docs: tweak a few messages for clarity Add a missing period, a missing space, a comma and a word for clarity, plus a period and an uppercase letter to match surrounding messages. Further add a missing call to gettext, and undo an unneeded linewrap. Signed-off-by: Benno Schulenberg --- diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c index 2394368b..b1cc6e74 100644 --- a/disk-utils/mkswap.c +++ b/disk-utils/mkswap.c @@ -686,9 +686,9 @@ main(int argc, char ** argv) { if (!sum) { fprintf(stderr, _("\ %s: Device '%s' contains a valid Sun disklabel.\n\ -This probably means creating v0 swap would destroy your partition table\n\ -No swap created. If you really want to create swap v0 on that device, use\n\ -the -f option to force it.\n"), +This probably means creating v0 swap would destroy your partition table.\n\ +No swap was created. If you really want to create v0 swap on that device,\n\ +use the -f option to force it.\n"), program_name, device_name); exit(1); } diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c index 7a82e2f8..05c8cd6a 100644 --- a/fdisk/cfdisk.c +++ b/fdisk/cfdisk.c @@ -1209,7 +1209,7 @@ menuSelect( int y, int x, struct MenuItem *menuItems, int itemLength, int i, ylast = y, key = 0, current = menuDefault; if( !( menuType & ( MENU_HORIZ | MENU_VERT ) ) ) { - print_warning(_("Menu without direction. Defaulting horizontal.")); + print_warning(_("Menu without direction. Defaulting to horizontal.")); menuType |= MENU_HORIZ; } diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 89a49253..aa6004e6 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -1494,7 +1494,7 @@ change_sysid(void) { || (i == 8 && sys != 0))) printf(_("Consider leaving partition 9 " "as volume header (0),\nand " - "partition 11 as entire volume (6)" + "partition 11 as entire volume (6), " "as IRIX expects it.\n\n")); if (sys == origsys) break; diff --git a/login-utils/chsh.c b/login-utils/chsh.c index 430a34b5..58cbbb06 100644 --- a/login-utils/chsh.c +++ b/login-utils/chsh.c @@ -372,11 +372,11 @@ check_shell (char *shell) { #ifdef ONLY_LISTED_SHELLS if (! get_shell_list (shell)) { if (!getuid()) - printf (_("Warning: \"%s\" is not listed in /etc/shells\n"), shell); + printf (_("Warning: \"%s\" is not listed in /etc/shells.\n"), shell); else { printf (_("%s: \"%s\" is not listed in /etc/shells.\n"), whoami, shell); - printf( _("%s: use -l option to see list\n"), whoami ); + printf( _("%s: Use -l option to see list.\n"), whoami ); exit(1); } } diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c index 0c2316ba..1b3400c1 100644 --- a/sys-utils/ipcs.c +++ b/sys-utils/ipcs.c @@ -419,7 +419,7 @@ void do_sem (char format) case CREATOR: printf (_("------ Semaphore Arrays Creators/Owners --------\n")); printf (_("%-10s %-10s %-10s %-10s %-10s %-10s\n"), - _("semid"),_("perms"),_("cuid"),_("cgid"),_("uid"),("gid")); + _("semid"),_("perms"),_("cuid"),_("cgid"),_("uid"),_("gid")); break; case TIME: @@ -434,8 +434,7 @@ void do_sem (char format) default: printf (_("------ Semaphore Arrays --------\n")); printf (_("%-10s %-10s %-10s %-10s %-10s\n"), - _("key"),_("semid"),_("owner"),_("perms"), - _("nsems")); + _("key"),_("semid"),_("owner"),_("perms"),_("nsems")); break; }