#!/usr/bin/env python
# -*- encoding: utf-8 -*-

# Class for handling PO files

from gettext_po import *
            
if __name__ == "__main__":
    import sys
    if len(sys.argv)>2:
        t = PoFile(file=sys.argv[1])
        pot = PoFile(file=sys.argv[2])
        pot.merge_translations(t)
        #pot.merge_translations(t, 0, lambda x,y: (x==y, None))
        print unicode(pot).encode('utf-8')
    else:
        print >>sys.stderr, "Not enough cakes today."

