]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/pager: Translate error message
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 5 Mar 2026 16:08:58 +0000 (17:08 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 5 Mar 2026 16:08:58 +0000 (17:08 +0100)
Since the error message is not printed by a signal handler anymore, it
can be translated.

Requested-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/pager.c

index 8268110bccd1fd3e140c1bd331819af94a03098c..094716c7a127fda40c555b14be338850a945035e 100644 (file)
@@ -302,7 +302,7 @@ void pager_close(void)
        errno = safe_errno;
 
        if (ret == -1)
-               err(EXIT_FAILURE, "waitpid failed");
+               err(EXIT_FAILURE, _("waitpid failed"));
 
        if (pager_caught_signal || (pager_caught_sigpipe && ret))
                exit(EXIT_FAILURE);