ddnet/scripts/languages/find_unchanged.py

14 lines
278 B
Python
Raw Normal View History

2018-07-03 19:43:34 +00:00
#!/usr/bin/env python3
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)
2018-07-03 19:43:34 +00:00
for tran, (_, expr, _) in trans.items():
2015-06-30 16:57:25 +00:00
if tran == expr:
print(tran)