Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: tromey@redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: start of i18n
Date: Fri, 21 Jun 2002 12:06:00 -0000	[thread overview]
Message-ID: <3D137942.4070807@cygnus.com> (raw)
In-Reply-To: <874rfwwlw1.fsf@fleche.redhat.com>

> "Andrew" == Andrew Cagney <ac131313@cygnus.com> writes:


>   I do know, from the last time I looked at gettextizing gdb (that
>   would have been April 98) that parts of gdb aren't i18n-safe.  For
>   instance, add_show_from_set is not.  This means that as part of the

I recently added that to the ARI.  That should at least help to stop it 
spreading.

I suspect GDB is going to have some fun with ui-out.  Some messages are 
not contigious strings but rather a concatenation of several strings.

> Maintenance-wise there are also some things to be aware of.
> Only the first one is difficult.
> 
> * When new strings are added, they must be marked.
>   This is a coding style change and unfortunately isn't really
>   automatable.

Hopefully checking it can be automated.  Sounds like we'll be needing to 
be more careful with message formats and the like.

> * You have to regenerate the primary message catalog whenever strings
>   are added, changed, or deleted.

Should the primary catalogue even be kept in CVS (at least on the 
trunk)?  Hmm, how do things handle a situtation where the primary 
catalogue gets changed but not the translated catalogs?

Given that GDB is interactive it is likely going to see more string 
changes then say BINUTILS or GCC.

> * You have to periodically send the master catalog to the appropriate
>   site so that translation teams can work on it.  I know some projects
>   (Gnome) try to do a string freeze before a release so that the
>   translation teams can catch up.
> 
> * You have to periodically incorporate new translation catalogs from
>   the translation teams into the source repository.
> 
> 
> A couple other ways gdb could be made i18n-aware, plus my comments:
> 
> * gdb could be aware of the encoding of strings in the inferior, and
>   convert to the correct output encoding when printing.  In some
>   situations this might be nice.  I don't plan to look at this.
> 
> * In theory gdb commands could be translated.  However, I think there
>   is some consensus that in general translating commands and arguments
>   is too difficult in practice.  I don't think anybody is doing this,
>   so for now I think gdb should not either.  (For instance: program
>   names and command-line arguments aren't translated, Emacs function
>   names aren't translated.)

more fun!
thanks,
Andrew



  reply	other threads:[~2002-06-21 19:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-21 10:10 Tom Tromey
2002-06-21 10:22 ` Andrew Cagney
2002-06-21 10:49   ` Tom Tromey
2002-06-21 12:06     ` Andrew Cagney [this message]
2002-06-21 13:13       ` Tom Tromey
2002-06-22  2:47         ` Eli Zaretskii
2002-06-22  8:51           ` Andrew Cagney
2002-06-22 10:25             ` Eli Zaretskii
2002-06-26 20:15               ` Andrew Cagney
2002-06-21 10:46 ` Elena Zannoni
2002-06-21 10:50   ` Tom Tromey
2002-06-21 15:13   ` Andrew Cagney
2002-06-21 15:57     ` Tom Tromey
2002-06-21 16:13       ` Andrew Cagney
2002-06-21 16:45         ` Tom Tromey
2002-06-22 15:24 ` [patch] Update selftest.exp; Was: " Andrew Cagney
2002-06-22 18:13   ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D137942.4070807@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox