public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* i18n mark-up
@ 2004-08-07 20:12 Andrew Cagney
  2004-08-08  3:59 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 2004-08-07 20:12 UTC (permalink / raw)
  To: gdb

Hello,

Does anyone have any suggestions on how we should approach the task of 
marking up GDB's source for i18n?

Andrew

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: i18n mark-up
  2004-08-07 20:12 i18n mark-up Andrew Cagney
@ 2004-08-08  3:59 ` Eli Zaretskii
  2004-08-08 15:16   ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2004-08-08  3:59 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb

> Date: Sat, 07 Aug 2004 16:12:09 -0400
> From: Andrew Cagney <cagney@gnu.org>
> 
> Does anyone have any suggestions on how we should approach the task of 
> marking up GDB's source for i18n?

Any reason why it shouldn't be done as for any other program?  That
is, use gettext tools to extract messages to a catalogue, then wrap
each message string in the sources with the _() macro call, and add
the rest of the infrastructure for the translated catalogues?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: i18n mark-up
  2004-08-08  3:59 ` Eli Zaretskii
@ 2004-08-08 15:16   ` Andrew Cagney
  2004-08-08 19:22     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 2004-08-08 15:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb

>>> Date: Sat, 07 Aug 2004 16:12:09 -0400
>>> From: Andrew Cagney <cagney@gnu.org>
>>> 
>>> Does anyone have any suggestions on how we should approach the task of 
>>> marking up GDB's source for i18n?
> 
> 
> Any reason why it shouldn't be done as for any other program?  That
> is, use gettext tools to extract messages to a catalogue, then wrap
> each message string in the sources with the _() macro call, and add
> the rest of the infrastructure for the translated catalogues?

and all have been implemented as you suggest.

Well, almost.  We've still got the tinyiest of tasks of marking up GDB's 
source with those _() macros :-)

Andrew


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: i18n mark-up
  2004-08-08 15:16   ` Andrew Cagney
@ 2004-08-08 19:22     ` Eli Zaretskii
  2004-08-11 17:54       ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2004-08-08 19:22 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb

> Date: Sun, 08 Aug 2004 11:16:38 -0400
> From: Andrew Cagney <cagney@gnu.org>
> 
> Well, almost.  We've still got the tinyiest of tasks of marking up GDB's 
> source with those _() macros :-)

Doesn't gettext have some tool to do that?

Even if it doesn't, this sounds like a simple Sed job, doesn't it?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: i18n mark-up
  2004-08-08 19:22     ` Eli Zaretskii
@ 2004-08-11 17:54       ` Andrew Cagney
  2004-08-12  4:00         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 2004-08-11 17:54 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb

>>> Date: Sun, 08 Aug 2004 11:16:38 -0400
>>> From: Andrew Cagney <cagney@gnu.org>
>>> 
>>> Well, almost.  We've still got the tinyiest of tasks of marking up GDB's 
>>> source with those _() macros :-)
> 
> 
> Doesn't gettext have some tool to do that?

I don't know, I've never done this before - hence me asking.

> Even if it doesn't, this sounds like a simple Sed job, doesn't it?

Yes, that could do it (not so simple sed due to multi-line strings and 
the need to not translate the commands).

Andrew


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: i18n mark-up
  2004-08-11 17:54       ` Andrew Cagney
@ 2004-08-12  4:00         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2004-08-12  4:00 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb

> Date: Wed, 11 Aug 2004 13:54:03 -0400
> From: Andrew Cagney <cagney@gnu.org>
> 
> >>> Date: Sun, 08 Aug 2004 11:16:38 -0400
> >>> From: Andrew Cagney <cagney@gnu.org>
> >>> 
> >>> Well, almost.  We've still got the tinyiest of tasks of marking up GDB's 
> >>> source with those _() macros :-)
> > 
> > 
> > Doesn't gettext have some tool to do that?
> 
> I don't know, I've never done this before - hence me asking.

Take a look at the gettext manual here:

   http://www.gnu.org/software/gettext/manual/html_chapter/gettext_3.html#SEC17

It seems like they suggest to do it semi-manually with the PO-Mode
package for Emacs.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-08-12  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-07 20:12 i18n mark-up Andrew Cagney
2004-08-08  3:59 ` Eli Zaretskii
2004-08-08 15:16   ` Andrew Cagney
2004-08-08 19:22     ` Eli Zaretskii
2004-08-11 17:54       ` Andrew Cagney
2004-08-12  4:00         ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).