File indexing completed on 2024-04-14 12:50:16

0001 # -*- coding: UTF-8 -*-
0002 
0003 """
0004 Check and rearrange content of PO header into canonical form.
0005 
0006 Documented in C{doc/user/sieving.docbook}.
0007 
0008 @author: Chusslove Illich (Часлав Илић) <caslav.ilic@gmx.net>
0009 @license: GPLv3
0010 """
0011 
0012 from pology import _, n_
0013 from pology.normalize import canonical_header
0014 
0015 
0016 def setup_sieve (p):
0017 
0018     p.set_desc(_("@info sieve discription",
0019     "Check and rearrange content of PO header into canonical form."
0020     ))
0021 
0022 
0023 class Sieve (object):
0024 
0025     def __init__ (self, params):
0026 
0027         pass
0028 
0029 
0030     def process_header (self, hdr, cat):
0031 
0032         canonical_header(hdr, cat)
0033