Ludovic Courtès <l...@gnu.org> writes:
> As long as we use xgettext, we have to stick to a format-string-like > approach like what sirgazil proposes. > > Writing a custom xgettext kind of tool wouldn’t help much because > gettext is fundamentally text oriented: you give it a string and it > returns a string. > > So I think the alternative is: > > • use gettext, and in that case stick to a format-string-like > mechanism, or: > > • use a completely new tool that would be able to consume and produce > sexps (trees). > > The latter doesn’t seem reasonable to me. :-) I’m not sure I understand the problem well enough, but there seems to be a middle way: using itstool with XML. When you squint really hard XML is close to S-exprs. -- Ricardo