[Pkg-mozext-commits] [adblock-plus] 374/464: Fixed retrieval of valid language codes from Crowdin

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 372701a8c1c94af1962de6875e1fd8334ec9e6f4
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Apr 8 11:56:27 2013 +0200

    Fixed retrieval of valid language codes from Crowdin
---
 localeTools.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/localeTools.py b/localeTools.py
index 6c2dbd3..3c2225b 100644
--- a/localeTools.py
+++ b/localeTools.py
@@ -297,7 +297,7 @@ def setupTranslations(type, locales, projectName, key):
 
   allowed = set()
   allowedLocales = urllib2.urlopen('http://crowdin.net/page/language-codes').read()
-  for match in re.finditer(r'<tr>\s*<td>([\w\-]+)</td>', allowedLocales, re.S):
+  for match in re.finditer(r'<tr>\s*<td\b[^<>]*>([\w\-]+)</td>', allowedLocales, re.S):
     allowed.add(match.group(1))
   if not allowed.issuperset(locales):
     print 'Warning, following locales aren\'t allowed by server: ' + ', '.join(locales - allowed)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list