From d511a57810f26bd6274f41b44863eab890bd3bce Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 12 Jun 2012 15:43:59 +0400 Subject: [PATCH] request specific version of the wiki page --- lib/version.py | 1 + mki18n.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/version.py b/lib/version.py index a9cb48e33..84720b466 100644 --- a/lib/version.py +++ b/lib/version.py @@ -1,2 +1,3 @@ ELECTRUM_VERSION = "0.57c" SEED_VERSION = 4 # bump this everytime the seed generation is modified +TRANSLATION_ID = 27601 # version of the wiki page diff --git a/mki18n.py b/mki18n.py index 630a5bbf2..6778be2df 100755 --- a/mki18n.py +++ b/mki18n.py @@ -1,8 +1,9 @@ #!/usr/bin/python import urllib2, os +from lib.version import TRANSLATION_ID -url = "https://en.bitcoin.it/wiki/Electrum/Translation?action=raw" +url = "https://en.bitcoin.it/w/index.php?title=Electrum/Translation&oldid=%d&action=raw"%TRANSLATION_ID f = urllib2.urlopen(url) lines = f.readlines() dicts = {}