This is the mail archive of the gdb@sources.redhat.com 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: Questions about gdb and gettext


>>>>> "Richard" == Richard Earnshaw <rearnsha@arm.com> writes:

Tom> It isn't always necessary to mark every string in the source.
Tom> You can also tell the xgettext program that certain functions
Tom> implicitly translate their argument.  So, for instance, we could
Tom> set things up so that the first argument to `warning' and `error'
Tom> doesn't need any special marking.

Richard> How would that save you having to mark the strings?  AFAICT
Richard> it would just mean that you have to mark them with N_()
Richard> rather than _().

We would pass --keyword=error --keyword=warning to xgettext.

Tom


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