[pology] Automatically setting PO header using set-header sieve when merging

Karl Ove Hufthammer karl at huftis.org
Wed Jul 11 09:12:55 PDT 2018


Dear Pology list members,

I’m trying to set up the merge functionality of Pology so that the PO 
headers are automatically cleaned up, i.e. any comments are deleted and 
the ‘title’ is set to some pre-defined string. The following command 
does what I want:

   posieve set-header -srmcomment -srmlicense -srmcopyright 
-stitle:'Translation of %poname to MyLangName' -stitle:'' *.po

However, instead of running this command manually, I want the header 
cleanup to be part of the normal ‘posummit merge’ operation. I think I 
need something like

   S.hook_on_merge_head.extend([
      * magic stuff *
   ])

in my .messages file. But I can’t figure out what ‘* magic stuff *’ 
should be to properly run the ‘set-header’ sieve. Can anyone help?

-- 
Karl Ove Hufthammer



More information about the pology mailing list