Re: msgfmt -c



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Stricker <andreas stricker fela ch> writes:

to add a new language (po file) to my project, i simply edit
configure.in and add the language code to 'ALL_LINGUAS', and the po
file gets compiled when i 'make'. now, how can i tell 'make' to
compile with 'msgfmt -c'  -- instead of  simply 'msgfmt' -- so that
the po file is checked for format errors? (and in a way that my
setting doesn't get overwritten next time i do an './autogen.sh'!)

I think you could simply edit po/Makefile.in.in and add this option
at the right place.

yes, but that one gets overwritten and my change lost when i call
autogen.sh :-/

You're right, autogen.sh calls glib-gettextize with the --force option
that will overwrite your changes.
It looks like this Makefile don't need to be overwritten in your case.

It's also worth mentioning here that glib-gettextize is way out of
date and should not be used (it should be removed and replaced with a
wrapper around autopoint).

Now that gettext provides "autopoint", there is no need for
glib-gettextize.  glib-gettextize doesn't exploit the features of
current gettext releases (it was forked from gettextize several years
ago, and has not been kept up-to-date), such as e.g. gettext-0.14.5.

See http://bugzilla.gnome.org/show_bug.cgi?id=308769 for an example.


Regards,
Roger

- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFDLv6+VcFcaSW/uEgRAoWrAJ4tE2tBpvlb7r7YySp0h4boaJXEQACfb92f
VY9fzIihfTW8fDJKnfbl1X0=
=ksNp
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]