This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Add _() to query


On Wed, Feb 25, 2009 at 02:52, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Tue, 24 Feb 2009 15:10:51 +0800
>> From: teawater <teawater@gmail.com>
>>
>> Hi Eli,
>>
>> I remember you told me that you want to add _() to all query.
>> I make a patch for it. Do you think it's OK?
>
> Yes, with the exception of a single comment below.
>
> (I don't have an opinion regarding the _() vs --keyword approach to
> marking translatable strings.)
>
>> - ?if (from_tty && (!query ("%s", "")))
>> + ?if (from_tty && (!query (_("%s"), "")))
>
> AFAIK, it is absolutely pointless to mark for translation strings that
> have no text, just formatted output conversion spec. ?That's because
> the only translation of such strings is the string itself.
>
Thanks Eli, I have removed this line and checked patch in.

Hui


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]