def _check_diff(cat_name, base_path):
 po_path = '{path}/en/LC_MESSAGES/django.po'.format(path=base_path)
 p = Popen("git diff -U0 {0} | egrep '^[-+]msgid' | wc -l".format(po_path), stdout=PIPE, stderr=PIPE, shell=True)
 (output, errors) = p.communicate()
 num_changes = int(output.strip())
 print "{0} changed/added messages in '{1}' catalog.".format(num_changes, cat_name)

def _check_diff ( cat_name , base_path ) : po_path = '{path}/en/LC_MESSAGES/django.po' . format ( path = base_path ) p = Popen ( "git diff -U0 {0} | egrep '^[-+]msgid' | wc -l" . format ( po_path ) , stdout = PIPE , stderr = PIPE , shell = True ) ( output , errors ) = p . communicate ( ) num_changes = int ( output . strip ( ) ) print "{0} changed/added messages in '{1}' catalog." . format ( num_changes , cat_name )
output the approximate number of changed/added strings in the en catalog .