i18n: Remove mobile.json-related codepaths.

This commit is contained in:
Alex Vandiver
2025-06-28 04:53:48 +00:00
committed by Tim Abbott
parent a117181fdb
commit d1995687c9
4 changed files with 0 additions and 257 deletions

View File

@@ -157,17 +157,4 @@ class Command(compilemessages.Command):
if value == "":
not_translated += 1
# mobile stats
with open(os.path.join(locale_path, "mobile_info.json"), "rb") as mob:
mobile_info = orjson.loads(mob.read())
try:
info = mobile_info[locale]
except KeyError:
if self.strict:
raise
info = {"total": 0, "not_translated": 0}
total += info["total"]
not_translated += info["not_translated"]
return (total - not_translated) * 100 // total