2018-07-03 19:43:34 +00:00
|
|
|
#!/usr/bin/env python3
|
2018-07-24 22:44:49 +00:00
|
|
|
import os
|
2015-06-30 16:57:25 +00:00
|
|
|
import sys
|
2018-07-24 22:44:49 +00:00
|
|
|
import twlang
|
|
|
|
|
2018-07-25 07:15:09 +00:00
|
|
|
os.chdir(os.path.dirname(__file__) + "/../..")
|
2015-06-30 16:57:25 +00:00
|
|
|
|
|
|
|
if len(sys.argv) < 2:
|
2020-12-02 14:22:26 +00:00
|
|
|
print("usage: python find_unchanged.py <file>")
|
|
|
|
sys.exit()
|
2015-06-30 16:57:25 +00:00
|
|
|
infile = sys.argv[1]
|
|
|
|
|
|
|
|
trans = twlang.translations(infile)
|
2018-07-03 19:43:34 +00:00
|
|
|
for tran, (_, expr, _) in trans.items():
|
2020-12-02 14:22:26 +00:00
|
|
|
if tran == expr:
|
|
|
|
print(tran)
|