Created
May 8, 2018 20:02
-
-
Save Psycojoker/523af81077f86ba2985a135aa4a3b929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
for i in sys.argv[1:]: | |
for app, data in json.load(open(i)).items(): | |
missing = [] | |
missing_help = [] | |
for number, question in enumerate(data["manifest"]["arguments"]["install"], 1): | |
if not question["ask"].get("en"): | |
missing.append(number) | |
if "help" in question and not question["help"].get("en"): | |
missing_help.append(number) | |
if missing or missing_help: | |
print "[Missing english strings in manifest of %s]" % app | |
for i in missing: | |
print "* in question number", i | |
for i in missing_help: | |
print "* in HELP of question number", i | |
print "manifest url: %s/blob/master/manifest.json" % data["git"]["url"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: