rfc: macros/gnome-gettext.m4 change



Hi,

If you use xml-i18n-tools/intltools to mark files to translation that are
not registered in x-i18n-t itself, you have to include their type in
POTFILES.in, e.g.:

[type: gettext/xml] target-defs/palm.guikachu-target.in

this is translated to

	../[type: gettext/xml] target-defs/palm.guikachu-target.in \

in POTFILES. This, of course, leads to po/Makefile barfing. You can hack
around this by removing the [] part yourself in the configure script, but
we could automate this by allowing me to check in a change to
gnome-gettext.m4 that changed the POTFILES-generating line (at the end of
the m4 file):

   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" 		\
        < $srcdir/po/POTFILES.in > po/POTFILES

to

   dnl Create POTFILES from POTFILES.in by including the full
   dnl relative path of each source file and removing inltools
   dnl markup

   changequote(,)
   sed -e "/^#/d" -e "/^\$/d"                   \
       -e "s,.*, $posrcprefix& \\\\,"           \
       -e "\$s/\(.*\) \\\\/\1/"                 \
       -e "s/\[.*\] *//"			\
        < $srcdir/po/POTFILES.in > po/POTFILES
   changequote([,])

As x-i18n-t gets more widespread, more and more independent projects will
want to use it for their own, unknown-to-x-i18n-t XML files, so I think
this change is worthwile to go in CVS.

Can I commit?

	Cactus

-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus cactus rulez org =---'
I'm a cross compiler: at weekends I dress up as Pascal...




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