Skip to content

Instantly share code, notes, and snippets.

@kzar
Created September 25, 2017 16:43
Show Gist options
  • Save kzar/39c505e9cba786887eeaef68b02260ea to your computer and use it in GitHub Desktop.
Save kzar/39c505e9cba786887eeaef68b02260ea to your computer and use it in GitHub Desktop.
Adblock Plus Crowdin integration fix
diff --git a/localeTools.py b/localeTools.py
index 140f22c..f80a187 100644
--- a/localeTools.py
+++ b/localeTools.py
@@ -299,7 +299,7 @@ def setupTranslations(localeConfig, projectName, key):
allowed = set()
allowedLocales = json.load(urllib2.urlopen(
'https://crowdin.com/languages/languages_list?callback='
- ))
+ ))['data']
for locale in allowedLocales:
allowed.add(locale['code'])
if not allowed.issuperset(locales):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment