[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to harvest translatable strings from generated files?
From: |
Aharon Robbins |
Subject: |
Re: how to harvest translatable strings from generated files? |
Date: |
Thu, 14 Jul 2005 21:22:51 +0300 |
> Yes, and it is some effort to make 'xgettext' understand a custom format.
Can I suggest a new option?
xgettext --external-program="program --gen-pot"
which invokes `program' with the `--gen-pot' option. That program
reads the custom-format file and generates a standard GNU .pot file
on standard output (or some such). This is a generalization of
what happens now with gawk, and allows trivial extension to other
file formats. (My reasoning is that gawk already knows how to parse
awk programs, let it do the hard part, and producing a .pot file
isn't that hard.)
HTH,
Arnold
--
Aharon (Arnold) Robbins --- Pioneer Consulting Ltd. arnold AT skeeve DOT com
P.O. Box 354 Home Phone: +972 8 979-0381 Fax: +1 206 350 8765
Nof Ayalon Cell Phone: +972 50 729-7545
D.N. Shimshon 99785 ISRAEL