Skip to content

Instantly share code, notes, and snippets.

@Psycojoker
Created May 8, 2018 20:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Psycojoker/523af81077f86ba2985a135aa4a3b929 to your computer and use it in GitHub Desktop.
Save Psycojoker/523af81077f86ba2985a135aa4a3b929 to your computer and use it in GitHub Desktop.
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"]
print
print
@Psycojoker
Copy link
Author

Usage:

python missing_strings.py official-build.json community-build.json 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment