commit 557286ff792aa687e0dd08f337a9f31a0ab4f0c5
parent 2b9b42d5f776b2d4e328d3d61da324eebdbd9c4a
Author: ThomasV <thomasv@gitorious>
Date: Wed, 10 Jun 2015 21:20:31 +0200
Fix ssl error
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/make_locale b/contrib/make_locale
@@ -23,7 +23,7 @@ if os.path.exists('../contrib/crowdin_api_key.txt'):
crowdin_api_key = open('../contrib/crowdin_api_key.txt').read().strip()
# Push to Crowdin
print 'Push to Crowdin'
- url = ('http://api.crowdin.net/api/project/' + crowdin_identifier + '/update-file?key=' + crowdin_api_key)
+ url = ('http://api.crowdin.com/api/project/' + crowdin_identifier + '/update-file?key=' + crowdin_api_key)
c = pycurl.Curl()
c.setopt(c.URL, url)
c.setopt(c.POST, 1)
@@ -32,12 +32,12 @@ if os.path.exists('../contrib/crowdin_api_key.txt'):
c.perform()
# Build translations
print 'Build translations'
- response = requests.request('GET', 'http://api.crowdin.net/api/project/' + crowdin_identifier + '/export?key=' + crowdin_api_key).content
+ response = requests.request('GET', 'http://api.crowdin.com/api/project/' + crowdin_identifier + '/export?key=' + crowdin_api_key).content
print response
# Download & unzip
print 'Download translations'
-zfobj = zipfile.ZipFile(StringIO(requests.request('GET', 'http://crowdin.net/download/project/' + crowdin_identifier + '.zip').content))
+zfobj = zipfile.ZipFile(StringIO(requests.request('GET', 'http://crowdin.com/download/project/' + crowdin_identifier + '.zip').content))
print 'Unzip translations'
for name in zfobj.namelist():