]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
nls: remove translation strings
authorSami Kerola <kerolasa@iki.fi>
Thu, 10 May 2018 20:18:53 +0000 (21:18 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 28 May 2018 11:36:38 +0000 (13:36 +0200)
While looking earlier commit I noticed everything but formatting was removed
from a message in namei.c file.  That inspired me to look if there are more
strings that does not need translation project attention.  This change
removes at least some of them, if not all.

Reference: e19cc7b65b31c57f0fe9cb73c9afad5197796f82
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/fdisk.c
misc-utils/cal.c
misc-utils/namei.c
sys-utils/mount.c
sys-utils/umount.c

index 2126b4cb101a8d5751eae8b6b9eac4599db28442..73525fa5141b872e417befb54d858403b5e5f364 100644 (file)
@@ -657,7 +657,7 @@ int print_partition_info(struct fdisk_context *cxt)
                        goto clean_data;
                if (!data || !*data)
                        continue;
-               fdisk_info(cxt, _("%15s: %s"), fdisk_field_get_name(fd), data);
+               fdisk_info(cxt, "%15s: %s", fdisk_field_get_name(fd), data);
                free(data);
        }
 
index 266f77bdcde5b0a71f79c5834d6c1d717ca95ca1..2a86c1992634bf4e414d3f0211ce01e81c22ceaf 100644 (file)
@@ -739,19 +739,19 @@ static void cal_output_header(struct cal_month *month, const struct cal_control
 
        if (ctl->header_hint || ctl->header_year) {
                for (i = month; i; i = i->next) {
-                       sprintf(out, _("%s"), ctl->full_month[i->month - 1]);
+                       sprintf(out, "%s", ctl->full_month[i->month - 1]);
                        center(out, ctl->week_width - 1, i->next == NULL ? 0 : ctl->gutter_width);
                }
                if (!ctl->header_year) {
                        my_putstring("\n");
                        for (i = month; i; i = i->next) {
-                               sprintf(out, _("%04d"), i->year);
+                               sprintf(out, "%04d", i->year);
                                center(out, ctl->week_width - 1, i->next == NULL ? 0 : ctl->gutter_width);
                        }
                }
        } else {
                for (i = month; i; i = i->next) {
-                       sprintf(out, _("%s %04d"), ctl->full_month[i->month - 1], i->year);
+                       sprintf(out, "%s %04d", ctl->full_month[i->month - 1], i->year);
                        center(out, ctl->week_width - 1, i->next == NULL ? 0 : ctl->gutter_width);
                }
        }
index 35cdf1964002948d152ac226ac0c61bea6e65005..60171f60028225f3b616ad6145ba7f0884413254 100644 (file)
@@ -281,7 +281,7 @@ print_namei(struct namei *nm, char *path)
                                blanks += 1;
                        blanks += nm->level * 2;
                        printf("%*s ", blanks, "");
-                       printf(_("%s - %s\n"), nm->name, strerror(nm->noent));
+                       printf("%s - %s\n", nm->name, strerror(nm->noent));
                        return -1;
                }
 
index 72e8a455ed81cc9d75e4ee44921f2c10e87056c0..3a7bbf6ddbf775470f39f37c2b841f6c3cc6684d 100644 (file)
@@ -304,7 +304,7 @@ static int mk_exit_code(struct libmnt_context *cxt, int rc)
                        spec = mnt_context_get_source(cxt);
                if (!spec)
                        spec = "???";
-               warnx(_("%s: %s."), spec, buf);
+               warnx("%s: %s.", spec, buf);
        }
 
        if (rc == MNT_EX_SUCCESS && mnt_context_get_status(cxt) == 1) {
index 61d9a33ef1c85897dd475013f22ebb9a752b9592..d522e05a97d5145c3cca236e34fcf626ea39185f 100644 (file)
@@ -158,7 +158,7 @@ static int mk_exit_code(struct libmnt_context *cxt, int rc)
                        spec = mnt_context_get_source(cxt);
                if (!spec)
                        spec = "???";
-               warnx(_("%s: %s."), spec, buf);
+               warnx("%s: %s.", spec, buf);
        }
        return rc;
 }