On Tue, 2009-06-02 at 19:54 +0200, Frank Lanitz wrote:
I agree. For me autotools are always a huge pain with a high violence factor.
And waf for me. =)
For now I did a quick'n'dirty shell script as a some kind of proof on concept I'm planning to reimplement with Python hopeful today. In fact it is possible to do the merging stuff in a nice way:
- To a global file: Put all single po files together into one file
and run same steps as in make update-po on it 2) Putting translations back to each plguin: Just cp po files and also run stuff from make update-po on it. I tried it on all plugins and didn't recognised any major issue here. All what is needed is to have some global replacement for POTFILES and LINGUAS which could be also generated from each plugins itself.
In response to this, I'll attach the autogen.sh I have currently. It's a modified version of addons/autogen.sh, so if you compare both files, you'll be able to see the parts I've added.
The code I've added into this script generates POTFILES.in, POTFILES.skip, and LINGUAS, as well as merges translations from all .po files from all the plugins specified in the SUBDIRS variable, into the po/ of the toplevel directory.