On Thu, May 31, 2007 at 09:45:26AM -0500, Paul Elliott wrote: > > I have a number of problems with the internationalization section of > the tutorial: > http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch24.html#sec-internationalization-intro > > It is too cookbook. It tells you what to do but not what you are doing. When > you run into problems you don't know how to fix it, because you don't know > what you are doing. > > For example they tell you to add this code to your configure.ac file: > > IT_PROG_INTLTOOL([0.35.0]) > > GETTEXT_PACKAGE=programname > AC_SUBST(GETTEXT_PACKAGE) > AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [The domain to use with gettext]) > AM_GLIB_GNU_GETTEXT > > PROGRAMNAME_LOCALEDIR=[${datadir}/locale] > AC_SUBST(PROGRAMNAME_LOCALEDIR) > > but they do not tell you what this code does! It feels like cargo cult programming. > > It tells you to add these files: intltool-extract.in intltool-merge.in intltool-update.in > to EXTRA_DIST, but it does not tell you what these files are or where to find them > or how to create them! > > It does not tell you which steps are unique to gtkmm2 and which steps would > be required for any program that uses gettext. BTW, what is > the answer to this? Which of the steps are unique to gtkmm2? > > It tells you to "Add po to the SUBDIRS variable." It there anyway to > do internationalization without using recursive make? > > In a famous paper: "Recursive Make Considered Harmful" > http://aegis.sourceforge.net/auug97.pdf Peter Miller argues that > recursive make should not be used. Is there anyway to do this? > > Is there any other documentation on how to setup internationalization > using gettext? Thank You. > In addition to this, it tells you to use: IT_PROG_INTLTOOL([0.35.0]) But the Intltool Readme linked to at the bottom of this page: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch24s02.html Recommends using: AC_PROG_INTLTOOL([minimum required version], [no-xml]) What is the difference between IT_PROG_INTLTOOL and AC_PROG_INTLTOOL? The gtkmm_hello example package also linked to at the bottom of the page does not use either! The gnomemm_hello example package also linked to at the bottom of the pages uses: AC_PROG_INTLTOOL Does any one have an extremely simple gtkmm example program that uses intltool? Thank You. -- Paul Elliott 1(512)837-1096 pelliott io com PMB 181, 11900 Metric Blvd Suite J http://www.io.com/~pelliott/pme/ Austin TX 78758-3117
Attachment:
pgp0NrS7gZqvz.pgp
Description: PGP signature