Add Transifex-related tools

feature/node-rewrite
Sven Slootweg 12 years ago
parent eb63c49ded
commit a3d818833e

File diff suppressed because one or more lines are too long

@ -0,0 +1,21 @@
#!/usr/bin/env python
import sys, json, re
f = open(sys.argv[1])
output = {}
for line in f:
if not line.startswith("#"):
data = re.search("(.+?[^\\\]);(.+)", line)
if data is not None:
key = data.group(1).replace("\;", ";").strip()
val = data.group(2).replace("\;", ";").strip()
output[key] = {
"message": val,
"description": ""
}
print json.dumps(output)
Loading…
Cancel
Save