comparison flys-artifacts/contrib/check-i18n-properties.py @ 2627:daf413420cf7

check-i18n-properties.py: Checked in unsaved version. flys-artifacts/trunk@4219 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 11 Apr 2012 15:37:44 +0000
parents 72ce02d1a568
children
comparison
equal deleted inserted replaced
2626:50f6f0463153 2627:daf413420cf7
12 line = f.readline() 12 line = f.readline()
13 if not line: break 13 if not line: break
14 m = SPLIT_RE.match(line) 14 m = SPLIT_RE.match(line)
15 if not m: continue 15 if not m: continue
16 k = m.group(1).strip() 16 k = m.group(1).strip()
17 v = m.group(2).strip 17 v = m.group(2).strip()
18 if k in props: 18 if k in props:
19 print >> sys.stderr, "'%s' more than once in '%s'." % ( 19 print >> sys.stderr, "'%s' found more than once in '%s'." % (
20 k, filename) 20 k, filename)
21 else: 21 else:
22 props[k] = v 22 props[k] = v
23 return props 23 return props
24 24

http://dive4elements.wald.intevation.org