This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
NLS updates and a note to Maintainers
- To: gcc-patches at gcc dot gnu dot org
- Subject: NLS updates and a note to Maintainers
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Tue, 27 Jun 2000 22:00:11 +0200
- Cc: gcc at gcc dot gnu dot org
I just committed these updates to the NLS stuff. The missing diagnostic.c
was crucial, so I'll expand a bit.
A bit recap first for those not that familiar with the NLS stuff in GCC.
In GCC functions normally don't call gettext directly but rather the
function that does the final output calls it. These functions must name the
parameter in which the message is passed msgid. The exgettext script scans
passed source files for these funtions and notes name of function and
position of msgid. It then passes these on to xgettext in the form
--keyword=foobar:2. Xgettext in turn will now extract the 2nd parameter in
all calls to foorbar for translation.
POTFILES.in usually lists files that contain translatable messages, but for
GCC, it also serves *as list of files containing the afore mentioned output
functions*.
So the fact that diagnostic.c was missing from POTFILES.in also meant that
functions like pedwarn or warning were missing from the list of functions to
scan for translatable messages and consequently these messages were missing
from gcc.pot.
So if you touch or create code that contains routines that output messages,
please take the time and check if the file is listed in po/POTFILES.in and
add it in case it's missing.
Philipp
2000-06-27 Philipp Thomas <pthomas@suse.de>
* POTFILES.in: Add diagnostic.c .
* gcc.pot: Regenerate.
* cat-id-tbl.c: Regenerate.
--
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