]> err.no Git - util-linux/commitdiff
po: gettextizing some overlooked messages.
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 12 Aug 2007 09:48:34 +0000 (11:48 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Aug 2007 12:46:28 +0000 (14:46 +0200)
Gettextize three new strings, make two strings indentical to two others,
and gettextize three strings that are already gettextized elsewhere.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/blockdev.c
disk-utils/fsck.minix.c

index 0b30cd5c468a472ab6516b4a4feb4344e768a595..d02ebbce0aaf59c639b7a93988ecb8c4dd2ce25e 100644 (file)
@@ -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) {
index 4553c49a9eaf827ed903eb2eca05c37c6bec111c..cd41d795001876872795107c1631af4cfac242e8 100644 (file)
@@ -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]) {