]> git.ipfire.org Git - thirdparty/util-linux.git/commit
column: call gettext() on an error message only when it gets printed
authorBenno Schulenberg <bensberg@telfort.nl>
Wed, 9 Jul 2025 09:07:32 +0000 (11:07 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 14 Jul 2025 11:57:12 +0000 (13:57 +0200)
commit6a98bbf4c5cc7a7012974430a0539c2f84800e96
treed0af59315319b98584150d1dfa226bb41207556f
parent15de47b9c955b9e3451d864e16dd646169316331
column: call gettext() on an error message only when it gets printed

Just mark error messages for translation, with gettext_noop(), and pass
them untranslated to the subroutines.  Then call gettext() on such a
message only when an error occurs and the message gets printed.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
text-utils/column.c