Skip to content

Commit

Permalink
nls: remove translation strings
Browse files Browse the repository at this point in the history
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: e19cc7b
Signed-off-by: Sami Kerola <[email protected]>
  • Loading branch information
kerolasa authored and karelzak committed May 28, 2018
1 parent faa44b6 commit 1405658
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion disk-utils/fdisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
6 changes: 3 additions & 3 deletions misc-utils/cal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion misc-utils/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion sys-utils/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion sys-utils/umount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1405658

Please sign in to comment.