Hi Eric, > For reference, here is libvirt's custom generator: > > http://libvirt.org/git/?p=libvirt.git;a=blob;f=daemon/remote_generator.pl;h=062ccc1;hb=d3c5104 > > And here's the generated file it produced, just before we removed it > from libvirt.git: > > http://libvirt.org/git/?p=libvirt.git;a=blob;f=daemon/remote_dispatch_bodies.h;hb=d3c5104 > > Now, find _("connection not open") in those two files, then decide how > xgettext will do the same :)
You could move that block of 6 lines (lines 591..596) to a template in C syntax, have the generator slurp in and reproduce the template, and have xgettext parse that template. xgettext does not require that the input files are complete valid C files, just that they use C syntax. In other words, parts of a body of a function is OK. Bruno -- In memoriam The victims of the Skelani massacre <http://books.google.de/books?id=nltdtAo38K0C&pg=PA41&lpg=PA41&source=bl&ots=DX2VTN1nga&sig=d_BXUZM0I81hZtfrSBA3392p-KY&hl=de&ei=JHy6TcGTCYmLswbpsrDzBQ&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBkQ6AEwAA#v=onepage&q&f=false>
