[Pkg-mozext-commits] [adblock-plus] 396/464: Crowdin API: Send the list of languages in request body, not URL

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:37 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 08fb0e64be3b83d5aea788a23d5307eb659405a5
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Tue Jul 23 15:03:38 2013 +0200

    Crowdin API: Send the list of languages in request body, not URL
    
    --HG--
    extra : rebase_source : 4c0a7d3f90840f79b508a63af8ae695a043cc26a
---
 localeTools.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/localeTools.py b/localeTools.py
index 767fcd2..3876da3 100644
--- a/localeTools.py
+++ b/localeTools.py
@@ -312,7 +312,7 @@ def setupTranslations(type, locales, projectName, key):
   locales = list(locales & allowed)
   locales.sort()
   params = urllib.urlencode([('languages[]', locale) for locale in locales])
-  result = urllib2.urlopen('http://api.crowdin.net/api/project/%s/edit-project?key=%s&%s' % (projectName, key, params)).read()
+  result = urllib2.urlopen('http://api.crowdin.net/api/project/%s/edit-project?key=%s' % (projectName, key), params).read()
   if result.find('<success') < 0:
     raise Exception('Server indicated that the operation was not successful\n' + result)
 

-- 
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