This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran,patch] Internationalisation of the Fortran front-end
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: FX Coudert <fxcoudert at gmail dot com>, patch <gcc-patches at gcc dot gnu dot org>, fortran at gcc dot gnu dot org
- Date: Tue, 30 Aug 2005 23:35:26 +0000 (UTC)
- Subject: Re: [gfortran,patch] Internationalisation of the Fortran front-end
- References: <4314B863.3000804@gmail.com> <20050830231306.GE5466@redhat.com>
On Tue, 30 Aug 2005, Richard Henderson wrote:
> On Tue, Aug 30, 2005 at 09:49:55PM +0200, FX Coudert wrote:
> > + sprintf (message, _("less than rank %d"), GFC_MAX_DIMENSIONS);
> > + must_be (source, 0, message);
>
> Things like this mean that you're essentially printing one
> message as two phrase fragments. This won't translate well.
> You need to present the entire sentence as a unit to the
> translators.
The C++ front end is full of this sort of thing. (Paolo Bonzini's patch
<http://gcc.gnu.org/ml/gcc-patches/2002-06/msg01620.html> tried to address
some such problems but I don't think any version of that patch was ever
reviewed.) Bug 15586 has comments giving some examples of this sort of
thing in gfortran; I don't know whether this patch fixes any or all of
them but don't think fixing them all can be something that blocks this
patch.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)