ddnet/scripts/languages/find_unchanged.py

17 lines
336 B
Python
Raw Normal View History

2018-07-03 19:43:34 +00:00
#!/usr/bin/env python3
import os
2015-06-30 16:57:25 +00:00
import sys
import twlang
os.chdir(os.path.dirname(__file__) + "/../..")
2015-06-30 16:57:25 +00:00
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)