From: Benno Schulenberg Date: Sun, 16 Mar 2025 15:20:37 +0000 (+0100) Subject: irqtop,lsirq: set up locale path, so messages get actually translated X-Git-Tag: v2.41~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31ee0ccf754656536222c413b090d10d389f29a2;p=thirdparty%2Futil-linux.git irqtop,lsirq: set up locale path, so messages get actually translated Signed-off-by: Benno Schulenberg (cherry picked from commit 7a912b98f99131049f91c1a3f53c4f51075ac348) --- diff --git a/sys-utils/irqtop.c b/sys-utils/irqtop.c index 8fbedb16a..ce6a2ca5b 100644 --- a/sys-utils/irqtop.c +++ b/sys-utils/irqtop.c @@ -391,6 +391,9 @@ int main(int argc, char **argv) }; setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + close_stdout_atexit(); parse_args(&ctl, &out, argc, argv); diff --git a/sys-utils/lsirq.c b/sys-utils/lsirq.c index e31addaf5..a389f249e 100644 --- a/sys-utils/lsirq.c +++ b/sys-utils/lsirq.c @@ -105,6 +105,9 @@ int main(int argc, char **argv) int softirq = 0; setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + close_stdout_atexit(); while ((c = getopt_long(argc, argv, "no:s:t:C:ShJPV", longopts, NULL)) != -1) { err_exclusive_options(c, longopts, excl, excl_st);