ddnet/data/languages/scripts/find_unchanged.py
2018-07-06 08:39:08 -03:00

14 lines
278 B
Python
Executable file

#!/usr/bin/env python3
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.items():
if tran == expr:
print(tran)