bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get argp to print standard fields in the target language?


From: Bruno Haible
Subject: Re: How to get argp to print standard fields in the target language?
Date: Sun, 21 May 2023 15:01:23 +0200

Anadon wrote:
> Since all usage of argp has the same translation strings, they could
> be a part of files distributed as a package with the OS.

No, it would not help if, say, glibc would include these strings in the
libc.pot file. That's because there are other platforms (*BSD, mingw, etc.)
that don't have this .pot file and its translations.

Therefore these strings from argp-help.c need to be either in your
package's .pot file, or in a gnulib.pot file. There was an experimental
gnulib.pot file many years ago, but it was too cumbersome to keep up-to-date.
Therefore the only good option is to have these strings in your
package's .pot file.

> From my current
> understanding, this does not work with gettext as implemented because
> simultaneous domains as described in
> https://www.gnu.org/software/gettext/manual/gettext.html#Triggering do
> not seem to be supported.

Simultaneous gettext domains are supported. GNU clisp uses this feature,
as it has 2 gettext domains.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]