[Pkg-mozext-commits] [adblock-plus] 268/464: Set file titles when uploading to Crowdin
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:24 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 f921764d70481ba363c714d67bb3fe386adc0058
Author: Wladimir Palant <trev at adblockplus.org>
Date: Tue Jul 17 16:52:44 2012 +0200
Set file titles when uploading to Crowdin
---
localeTools.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/localeTools.py b/localeTools.py
index 7f95016..bc167d9 100644
--- a/localeTools.py
+++ b/localeTools.py
@@ -219,7 +219,8 @@ def updateTranslationMaster(dir, locale, projectName, key):
raise Exception('Server indicated that the operation was not successful\n' + result)
if len(add):
- postFiles(add, 'http://api.crowdin.net/api/project/%s/add-file?key=%s&type=chrome' % (projectName, key))
+ titles = urllib.urlencode([('titles[%s]' % name, re.sub(r'\.json', '', name)) for name, data in add])
+ postFiles(add, 'http://api.crowdin.net/api/project/%s/add-file?key=%s&type=chrome&%s' % (projectName, key, titles))
if len(update):
postFiles(update, 'http://api.crowdin.net/api/project/%s/update-file?key=%s' % (projectName, key))
for file in existing:
--
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