From: "Eli Zaretskii" <eliz@gnu.org>
To: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
Cc: gdb-patches@sources.redhat.com
Subject: Re: i18n, part 2
Date: Sun, 05 Dec 2004 21:41:00 -0000 [thread overview]
Message-ID: <01c4db12$Blat.v2.2.2$4dfdf600@zahav.net.il> (raw)
In-Reply-To: <20041204215404.GA2413@ata.cs.hun.edu.tr> (message from Baurjan Ismagulov on Sat, 4 Dec 2004 22:54:04 +0100)
> Date: Sat, 4 Dec 2004 22:54:04 +0100
> From: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
>
> Hmm, it did the last time I tried it, but 0.14.1-6 seems to work as
> expected. I modified the patch.
Thanks. My comments are below.
> BTW, is there an argument reformatting function in emacs, so that, say,
> M-q would wrap the arguments and strings up to fill-column?
Not that I know of, but you might have better success asking this on
emacs-devel@gnu.org.
> @@ -1700,16 +1700,16 @@ aix_thread_extra_thread_info (struct thr
> status = pthdb_pthread_suspendstate (pd_session, pdtid,
> &suspendstate);
> if (status == PTHDB_SUCCESS && suspendstate == PSS_SUSPENDED)
> - fprintf_unfiltered (buf, ", suspended");
> + fprintf_unfiltered (buf, _(", suspended"));
>
> status = pthdb_pthread_detachstate (pd_session, pdtid,
> &detachstate);
> if (status == PTHDB_SUCCESS && detachstate == PDS_DETACHED)
> - fprintf_unfiltered (buf, ", detached");
> + fprintf_unfiltered (buf, _(", detached"));
>
> pthdb_pthread_cancelpend (pd_session, pdtid, &cancelpend);
> if (status == PTHDB_SUCCESS && cancelpend)
> - fprintf_unfiltered (buf, ", cancel pending");
> + fprintf_unfiltered (buf, _(", cancel pending"));
>
> ui_file_write (buf, "", 1);
We discussed cases like this before, I believe. The original code
fragment looks like this:
if (tid != PTHDB_INVALID_TID)
fprintf_unfiltered (buf, "tid %d", tid);
status = pthdb_pthread_state (pd_session, pdtid, &state);
if (status != PTHDB_SUCCESS)
state = PST_NOTSUP;
fprintf_unfiltered (buf, ", %s", state2str (state));
status = pthdb_pthread_suspendstate (pd_session, pdtid,
&suspendstate);
if (status == PTHDB_SUCCESS && suspendstate == PSS_SUSPENDED)
fprintf_unfiltered (buf, ", suspended");
status = pthdb_pthread_detachstate (pd_session, pdtid,
&detachstate);
if (status == PTHDB_SUCCESS && detachstate == PDS_DETACHED)
fprintf_unfiltered (buf, ", detached");
pthdb_pthread_cancelpend (pd_session, pdtid, &cancelpend);
if (status == PTHDB_SUCCESS && cancelpend)
fprintf_unfiltered (buf, ", cancel pending");
ui_file_write (buf, "", 1);
This code produces a complete sentence one word at a time, which I
think is bad for translating. I think the code needs to be rewritten
to have full sentences like these:
"tid %d, %s, suspended, detached, cancel pending"
"tid %d, %s, detached, cancel pending"
"tid %d, %s, cancel pending"
"tid %d, %s"
"tid %d, %s, suspended, cancel pending"
"tid %d, %s, suspended, detached"
"tid %d, %s, detached, cancel pending"
"tid %d, %s, detached"
etc. That makes the code less clever, but the translation is much
easier. As the code is now, it will be almost impossible to get right
in some languages.
> - error ("Illegal update to pc in instruction");
> + error (_("Illegal update to pc in instruction"));
Perhaps we should take this opportunity to change "Illegal" to
"Invalid" here (and elsewhere in your patch), to follow the GNU coding
standards.
Otherwise, okay; thanks.
next prev parent reply other threads:[~2004-12-05 21:34 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-04 20:06 Baurjan Ismagulov
2004-12-04 21:52 ` Daniel Jacobowitz
2004-12-04 22:17 ` Baurjan Ismagulov
2004-12-04 23:59 ` Daniel Jacobowitz
2004-12-05 21:41 ` Eli Zaretskii [this message]
2004-12-05 23:39 ` Daniel Jacobowitz
2004-12-06 2:19 ` Baurjan Ismagulov
2004-12-06 4:59 ` Eli Zaretskii
2004-12-06 0:00 ` Baurjan Ismagulov
2004-12-15 0:50 ` Baurjan Ismagulov
2004-12-15 21:48 ` Eli Zaretskii
2004-12-06 18:53 ` Kevin Buettner
2004-12-06 20:59 ` Eli Zaretskii
2004-12-06 23:04 ` Kevin Buettner
2004-12-07 5:08 ` Eli Zaretskii
2004-12-07 5:10 ` Daniel Jacobowitz
2004-12-07 17:28 ` Kevin Buettner
2004-12-07 19:59 ` Eli Zaretskii
2004-12-07 20:28 ` Andreas Schwab
2004-12-12 19:50 ` Andrew Cagney
2004-12-12 22:08 ` Eli Zaretskii
2004-12-12 18:23 ` Andrew Cagney
2004-12-12 21:49 ` Eli Zaretskii
2004-12-07 22:02 ` Eli Zaretskii
2004-12-12 18:35 ` Andrew Cagney
2004-12-26 4:46 ` Baurjan Ismagulov
2004-12-26 23:25 ` Eli Zaretskii
2005-01-05 15:48 ` Andrew Cagney
2005-01-05 16:07 ` Baurjan Ismagulov
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='01c4db12$Blat.v2.2.2$4dfdf600@zahav.net.il' \
--to=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=ibr@ata.cs.hun.edu.tr \
/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