ddnet/scripts/languages/find_unchanged.py
2018-07-25 09:17:09 +02:00

17 lines
357 B
Python
Executable file

#!/usr/bin/env python3
import os
import sys
import twlang
os.chdir(os.path.dirname(os.path.realpath(sys.argv[0])) + "/../..")
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)