[tor-commits] [bridgedb/develop] Don't translate strings which go into the bucket files.

isis at torproject.org isis at torproject.org
Tue May 6 12:35:20 UTC 2014


commit 7c63162e12a60acfe3420741e0797f6e05e052af
Author: Isis Lovecruft <isis at torproject.org>
Date:   Fri May 2 16:57:56 2014 +0000

    Don't translate strings which go into the bucket files.
---
 lib/bridgedb/Bucket.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/bridgedb/Bucket.py b/lib/bridgedb/Bucket.py
index 416c1ea..2914bf5 100644
--- a/lib/bridgedb/Bucket.py
+++ b/lib/bridgedb/Bucket.py
@@ -232,11 +232,11 @@ class BucketManager:
                 f = open(filename, 'w')
                 for bh in bridgeHistories:
                     days = bh.tosa / long(60*60*24)
-                    line = "%s:%s\t(%d %s)" %  \
-                            (bh.ip, bh.port, days,  _("""days at this address"""))
+                    line = "%s:%s\t(%d days at this address)" %  \
+                           (bh.ip, bh.port, days)
                     if str(bh.fingerprint) in blocklist.keys():
-                        line = line + "\t%s: (%s)" % (_("""(Might be blocked)"""),
-                                ",".join(blocklist[bh.fingerprint]),)
+                        line = line + "\t(Might be blocked): (%s)" % \
+                               ",".join(blocklist[bh.fingerprint])
                     f.write(line + '\n')
                 f.close()
             except IOError:





More information about the tor-commits mailing list