ddnet/data/languages/scripts/find_unchanged.py

13 lines
259 B
Python
Raw Normal View History

2015-06-30 16:57:25 +00:00
import twlang
import sys
if len(sys.argv) < 2:
print("usage: python find_unchanged.py <file>")
sys.exit()
infile = sys.argv[1]
trans = twlang.translations(infile)
for tran, (_, expr, _) in trans.iteritems():
if tran == expr:
print(tran)