i18n, part 2

Kevin Buettner kevinb@redhat.com
Tue Dec 7 17:28:00 GMT 2004

On Tue, 07 Dec 2004 07:00:10 +0200
"Eli Zaretskii" <eliz@gnu.org> wrote:

> > Date: Mon, 6 Dec 2004 15:51:14 -0700
> > From: Kevin Buettner <kevinb@redhat.com>
> > 
> > The code in question is simply outputting a list of attributes
> > associated with a particular thread.  How should we make the necessary
> > context available to the translator without putting an undue burden
> > on GDB maintainers?
> I suggested a way to do that.  I don't think it's putting an undue
> burden on us, but if someone comes with a better idea, I will gladly
> vote in favor.  Just let's not assume the problem does not exist.

Could we use an alternate macro for such cases?  This alternate macro
would take two arguments, one of which is the string to be translated,
the other.  The other is simply a comment providing context for the
translators.  Perhaps something like this?

#define __(str,context_comment) _(str)

Then, for "suspended" and other such attributes, we could put something
like this in the code:

    __("suspended", "thread-id attribute")

The nice thing about this is that the comment string can contain anything;
if a translator finds that not enough information is contained in the string,
they can provides suggestions to us to make it more useful.


More information about the Gdb-patches mailing list