This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Allow translation of the copyright symbol.
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 24 Jan 2004 22:59:32 +0000 (UTC)
- Subject: Re: [patch] Allow translation of the copyright symbol.
- References: <20040124.174501.63117599.kazu@cs.umass.edu>
On Sat, 24 Jan 2004, Kazu Hirata wrote:
> @@ -347,14 +347,14 @@ lang_specific_driver (int *in_argc, cons
> case OPTION_version:
> printf ("\
> GNU Fortran (GCC) %s\n\
> -Copyright (C) 2002 Free Software Foundation, Inc.\n\
> +Copyright %s 2004 Free Software Foundation, Inc.\n\
> \n\
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.\n\
Note that none of this message is marked for translation at present. The
copyright message part should be a separate string from the test, and the
second part should be marked for translation with _. This isn't however
something that needs to be fixed in this patch; it's a separate problem.
> printf ("gcjh (GCC) %s\n\n", version_string);
> - printf ("Copyright (C) 2002 Free Software Foundation, Inc.\n");
> + printf ("Copyright %s 2004 Free Software Foundation, Inc.\n", _("(C)"));
> printf ("This is free software; see the source for copying conditions. There is NO\n");
> printf ("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n");
Here, the subsequent lines should be one string, marked for translation.
Again a separate problem. Likewise for the other Java programs.
Note that translation has no effect in a program unless it sets up the
locale and libintl properly. The way to do this is gcc_init_libintl ().
mips-tdump, mips-tfile and all the programs from gcc/java/ don't do this,
so you won't get the copyright symbol translated in them either.
I think all these things would be good to have fixed for 3.4 (before we
submit a new message catalog to the TP), but it's up to the RM.
--
Joseph S. Myers
jsm@polyomino.org.uk