Re: msgfmt -c
Roger Leigh wrote: 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. Thanks for the hint. I've just played a bit with it and tried to replace glib-gettextize with autopoint. Here what I've done, if somebody will try it too. autogen.sh: Apart from the check in autogen.sh at top it means basically to replace the line echo no | glib-gettextize --force --copy with autopoint --force configure.in: More work comes up in configure.in, where we have to remove the line ALL_LINGUAS=it and call AM_GNU_GETTEXT instead of AM_GLIB_GNU_GETTEXT (the later must be removed or the build will fail) don't know what that implies for the GTK-way-of-gettext? We also have to add the following line for autopoint: AM_GNU_GETTEXT_VERSION(x.yy.zz) Makefile.am: Here we have to mainly to add intl to SUBDIRS (before src) po/LINGUAS: This file must be added and filled with the contents of the ALL_LINGUAS variable removed from configure.in po/Makevars: This file is created after the first successful run of autopoint, but named Makevars.template. So we have to copy it to Makevars and modifing the containing line XGETTEXT_OPTIONS to our requirements (e.g.: XGETTEXT_OPTIONS = --from-code=UTF-8) This file must contain top_builddir = .., or the build will fail otherwise) Now it should build an run properly. In my case it worked fine. Cheers, Andy ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
msgfmt -c
ah, thank you. this helped. gyözö 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. Try if this patch fit your needs. Cheers, Andy -- panic(smp_callin() a\n); linux-2.6.6/arch/parisc/kernel/smp.c ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: msgfmt -c
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Stricker [EMAIL PROTECTED] 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/Linuxhttp://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- ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
msgfmt -c
hello list, this is a bit off-topic but on the other hand it isn't because a lot of people use glade and the code-generation feature. 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'!) thanks, gyozo -- I refuse to have a battle of wits with an unarmed person. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list