Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner

Psycojoker commented May 8, 2018

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