This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Don't internationalize Copyright message.
Hi Joseph,
> It should be possible to put a comment in the source code immediately
> before the copyright messages that gets put into the .pot file, telling
> translators that only the copyright symbol on the copyright notice lines
> is to be translated.
What about something like this?
2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c: Allow translation of the copyright symbol.
* mips-tfile.c: Likewise.
Index: gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.405
diff -u -r1.405 gcc.c
--- gcc.c 24 Jan 2004 10:09:48 -0000 1.405
+++ gcc.c 24 Jan 2004 11:02:02 -0000
@@ -3347,8 +3347,8 @@
{
/* translate_options () has turned --version into -fversion. */
printf (_("%s (GCC) %s\n"), programname, version_string);
- fputs ("Copyright (C) 2004 Free Software Foundation, Inc.\n",
- stdout);
+ printf ("Copyright %s 2004 Free Software Foundation, Inc.\n",
+ _("(C)"));
fputs (_("This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"),
stdout);
Index: mips-tfile.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/mips-tfile.c,v
retrieving revision 1.63
diff -u -r1.63 mips-tfile.c
--- mips-tfile.c 24 Jan 2004 10:09:48 -0000 1.63
+++ mips-tfile.c 24 Jan 2004 11:02:04 -0000
@@ -4774,7 +4774,8 @@
if (version)
{
printf (_("mips-tfile (GCC) %s\n"), version_string);
- fputs ("Copyright (C) 2004 Free Software Foundation, Inc.\n", stdout);
+ printf ("Copyright %s 2004 Free Software Foundation, Inc.\n",
+ _("(C)"));
fputs (_("This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"),
stdout);