This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Changes to gcc.c (display_help)


* Kaveh R . Ghazi (ghazi@caip.rutgers.edu) [20000627 16:57]:

> If proper translation is really helped by this, okay fine.

Well as I said, it could be changed back to shorter strings, i.e. one per
option or text block. But the current code looks like:

  printf ("\nOptions starting with -g, -f, -m, -O or -W are automatically passed on to\n");
  printf ("the various sub-processes invoked by %s.  In order to pass other options\n",
	  programname);
  printf ("on to these processes the -W<letter> options must be used.\n");

IMO it's rather obvious that this gets hard to translate as each printf
results in a different entry for gcc.pot which has to be translated
separately and thus severely limits the translator. If you change it to

printf (_("\n\
Options starting with -g, -f, -m, -O or -W are automatically passed on to\n\
the various sub-processes invoked by %s.  In order to pass other options\n\
on to these processes the -W<letter> options must be used.\n\
"), programname);

You get one single entry to translate and the translator is free to
restructure that sentence as needed. 

But thanks anyway for pointing out the pitfalls. I'll redo my patch with
shorter strings now.

Philipp

-- 
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany

#define NINODE  50              /* number of in core inodes */
#define NPROC   30              /* max number of processes */
 	-- Version 7 UNIX for PDP 11, /usr/include/sys/param.h

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]