[Pkg-bitcoin-commits] [electrum] 05/11: Remove unneeded translation patch.

Tristan Seligmann mithrandi at moszumanska.debian.org
Fri May 1 21:26:27 UTC 2015


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

mithrandi pushed a commit to branch master
in repository electrum.

commit 36aa47412f94a341c87b8c6f740e7008ead0a422
Author: Tristan Seligmann <mithrandi at debian.org>
Date:   Fri May 1 22:11:49 2015 +0200

    Remove unneeded translation patch.
---
 debian/README.source                               |  14 -----
 debian/changelog                                   |   1 +
 debian/electrum-translations.zip                   | Bin 859089 -> 0 bytes
 .../3001_dont_fetch_translations_from_web.patch    |  57 ---------------------
 debian/patches/series                              |   1 -
 5 files changed, 1 insertion(+), 72 deletions(-)

diff --git a/debian/README.source b/debian/README.source
index 78c6991..1597e57 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -9,17 +9,3 @@ More info here: http://wiki.debian.org/CDBS+git-buildpackage
 
 
  -- Vasudev Kamath <kamathvasudev at gmail.com>, Sat, 11 Jan 2014 22:25:45 +0530
-
-
-Translations
-------------
-
-The file debian/electrum-translations.zip is retrieved from upstream's
-translations management site; the URL is:
-
-    https://crowdin.net/download/project/electrum.zip
-
-Currently updating this is a manual process.
-
- -- Tristan Seligmann <mithrandi at debian.org>  Wed, 15 Jan 2014 01:43:30 +0200
-
diff --git a/debian/changelog b/debian/changelog
index e5c8ea2..1cd6e5e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ electrum (2.1.1-1) UNRELEASED; urgency=medium
   [ Tristan Seligmann ]
   * New upstream release.
     - Update debian/watch.
+    - Remove 3001_dont_fetch_translations_from_web.patch: no longer necessary.
 
  -- Vasudev Kamath <kamathvasudev at gmail.com>  Sun, 23 Nov 2014 20:07:00 +0530
 
diff --git a/debian/electrum-translations.zip b/debian/electrum-translations.zip
deleted file mode 100644
index 1fd61ef..0000000
Binary files a/debian/electrum-translations.zip and /dev/null differ
diff --git a/debian/patches/3001_dont_fetch_translations_from_web.patch b/debian/patches/3001_dont_fetch_translations_from_web.patch
deleted file mode 100644
index 165374a..0000000
--- a/debian/patches/3001_dont_fetch_translations_from_web.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-Description: Do not fetch webpage during build
- Script mki18n.py generates the po file for which it retrives data
- from the web. This patch makes the script read the translations from
- a locally saved file debian/electrum-translations.zip.
-Author: Vasudev Kamath <kamathvasudev at gmail.com>,
- Tristan Seligmann <mithrandi at mithrandi.net>
-Forwarded: not-needed
-Last-Update: 2014-05-04
-
-Index: electrum/mki18n.py
-===================================================================
---- electrum.orig/mki18n.py	2014-05-04 09:53:01.848401254 +0200
-+++ electrum/mki18n.py	2014-05-04 09:58:00.568908854 +0200
-@@ -1,41 +1,13 @@
- #!/usr/bin/python
--from StringIO import StringIO
--import urllib2, os, zipfile, pycurl
-+import os, zipfile
- 
- crowdin_identifier = 'electrum'
- crowdin_file_name = 'electrum-client/messages.pot'
- locale_file_name = 'locale/messages.pot'
- 
--if os.path.exists('contrib/crowdin_api_key.txt'):
--    crowdin_api_key = open('contrib/crowdin_api_key.txt').read()
--
--    # Generate fresh translation template
--    if not os.path.exists('locale'):
--      os.mkdir('locale')
--
--    cmd = 'xgettext -s --no-wrap -f app.fil --output=locale/messages.pot'
--    print 'Generate template'
--    os.system(cmd)
--
--    # Push to Crowdin
--    print 'Push to Crowdin'
--    url = ('http://api.crowdin.net/api/project/' + crowdin_identifier + '/update-file?key=' + crowdin_api_key)
--
--    c = pycurl.Curl()
--    c.setopt(c.URL, url)
--    c.setopt(c.POST, 1)
--    fields = [('files[' + crowdin_file_name + ']', (pycurl.FORM_FILE, locale_file_name))]
--    c.setopt(c.HTTPPOST, fields)
--    c.perform()
--
--    # Build translations
--    print 'Build translations'
--    response = urllib2.urlopen('http://api.crowdin.net/api/project/' + crowdin_identifier + '/export?key=' + crowdin_api_key).read()
--    print response
--
- # Download & unzip
- print 'Download translations'
--zfobj = zipfile.ZipFile(StringIO(urllib2.urlopen('http://crowdin.net/download/project/' + crowdin_identifier + '.zip').read()))
-+zfobj = zipfile.ZipFile(open('debian/electrum-translations.zip', 'rb'))
- 
- print 'Unzip translations'
- for name in zfobj.namelist():
diff --git a/debian/patches/series b/debian/patches/series
index f17c3c3..85b28e4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,3 @@
-3001_dont_fetch_translations_from_web.patch
 2001_add_tailing_semicolon.patch
 2002_dont_use_local_share.patch
 1001_use_sslv23_method.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/electrum.git



More information about the Pkg-bitcoin-commits mailing list