[PATCH] Gettextizing some overlooked messages

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

 



Hi,

Attached patch gettextizes a few messages in disk-utils/ that were 
somehow overlooked.  It can be applied at any time, as it doesn't 
break any translation: it doesn't change existing strings into new 
ones.  It just adds three new strings, changes two others to be 
identical to two existing ones, and gettextizes three more that 
already exist.

Regards,

Benno
>From a6f5d40fff75d4289cc06e6cdebd444827e8a05d Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@xxxxxxxxxxxxx>
Date: Sun, 12 Aug 2007 11:48:34 +0200
Subject: [PATCH] Gettextizing some overlooked messages.

Gettextize three new strings, make two strings indentical to two others,
and gettextize three strings that are already gettextized elsewhere.
---
 disk-utils/blockdev.c   |    4 ++--
 disk-utils/fsck.minix.c |   12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c
index 0b30cd5..d02ebbc 100644
--- a/disk-utils/blockdev.c
+++ b/disk-utils/blockdev.c
@@ -120,7 +120,7 @@ usage(void) {
 
 	fprintf(stderr, _("Available commands:\n"));
 	fprintf(stderr, "\t%-30s %s\n", "--getsz",
-			"get size in 512-byte sectors");
+			_("get size in 512-byte sectors"));
 	for (i = 0; i < SIZE(bdcms); i++) {
 		if (bdcms[i].argname)
 			fprintf(stderr, "\t%s %-*s %s\n", bdcms[i].name,
@@ -326,7 +326,7 @@ do_commands(int fd, char **argv, int d) {
 		if (res == -1) {
 			perror(bdcms[j].iocname);
 			if (verbose)
-				printf("%s failed.\n", _(bdcms[j].help));
+				printf(_("%s failed.\n"), _(bdcms[j].help));
 			exit(1);
 		}
 		switch(bdcms[j].argtype) {
diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c
index 4553c49..cd41d79 100644
--- a/disk-utils/fsck.minix.c
+++ b/disk-utils/fsck.minix.c
@@ -590,7 +590,7 @@ read_tables(void) {
 		die(_("Unable to allocate buffer for inode map"));
 	zone_map = malloc(ZMAPS * BLOCK_SIZE);
 	if (!inode_map)
-		die("Unable to allocate buffer for zone map");
+		die(_("Unable to allocate buffer for zone map"));
 	memset(inode_map,0,sizeof(inode_map));
 	memset(zone_map,0,sizeof(zone_map));
 	inode_buffer = malloc(INODE_BUFFER_SIZE);
@@ -736,7 +736,7 @@ check_root2 (void) {
 	struct minix2_inode *inode = Inode2 + ROOT_INO;
 
 	if (!inode || !S_ISDIR (inode->i_mode))
-		die ("root inode isn't a directory");
+		die(_("root inode isn't a directory"));
 }
 
 static int
@@ -953,7 +953,7 @@ check_file(struct minix_inode * dir, unsigned int offset) {
 	if (!offset) {
 		if (!inode || strcmp(".",name)) {
 			get_current_name();
-			printf(_("`%s': bad directory: '.' isn't first\n"),
+			printf(_("%s: bad directory: '.' isn't first\n"),
 			       current_name);
 			errors_uncorrected = 1;
 		} else return;
@@ -961,7 +961,7 @@ check_file(struct minix_inode * dir, unsigned int offset) {
 	if (offset == dirsize) {
 		if (!inode || strcmp("..",name)) {
 			get_current_name();
-			printf(_("`%s': bad directory: '..' isn't second\n"),
+			printf(_("%s: bad directory: '..' isn't second\n"),
 			       current_name);
 			errors_uncorrected = 1;
 		} else return;
@@ -1081,7 +1081,7 @@ recursive_check2 (unsigned int ino) {
 
 	dir = Inode2 + ino;
 	if (!S_ISDIR (dir->i_mode))
-		die ("internal error");
+		die(_("internal error"));
 	if (dir->i_size < 2 * dirsize) {
 		get_current_name ();
 		printf (_("%s: bad directory: size < 32"),
@@ -1124,7 +1124,7 @@ check_counts(void) {
 		if (!inode_in_use(i)) {
 			printf(_("Inode %d used, marked unused in the bitmap."),
 				i);
-			if (ask("Set",1))
+			if (ask(_("Set"),1))
 				mark_inode(i);
 		}
 		if (Inode[i].i_nlinks != inode_count[i]) {
-- 
1.5.1.6


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux