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]
Other format: [Raw text]

Re: RFA [PR objc/29200][diagnostic] Make diagnostics translation friendly


* David Ayers (ayers@fsfe.org) [20090403 11:56]:

> Could someone point me to the documentation on how to get these messages
> actually end up in the relevant files?

I don't think there is any documentation on this, but it's long since I've
checked. All the make rules are at the end of gcc/Makefile below

# -----------------------------------------------------
# Rules for generating translated message descriptions.
# Disabled by autoconf if the tools are not available.
# -----------------------------------------------------

> I'll try to figure out how to translate the the strings and test whether
> they will then show up in my German locale.

Set up things as usual (i.e. create a build dir and run configure). From the
build directory you first call 'make gcc.pot' which calls exgettext which in
turn will update the master message catalog.

Afterwards you call 'make update-po' which will update the translations and
will put them in builddir/po with the extension .pox.  Now you can translate
the german messages.

After having done that, simply compile and install the rest of gcc and your
translation will get compiled and installed along with the other
translations.

Philipp

-- 
Anything whose specification is too complicated to explain easily probably
needs to be redesigned.
                                         --- David Abrahams on boost


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