5 import polib # type: ignore
7 tails_live_website_urls = []
9 for entry in [e for e in polib.pofile(sys.argv[1]) if not e.obsolete]:
10 tails_live_website_urls += re.findall(
11 '(http[s]?://tails.boum.org/[a-zA-Z/]*)', entry.msgid)
13 if tails_live_website_urls:
14 print("Error: found translatable URLs to the Tails live website:")
15 print("\n".join(" - " + url for url in tails_live_website_urls))
17 print("Please make them non-translatable.")
18 print("For context, see tails/tails#17958.")