From 8271e20fac024bf20b80017e9d01d2d0028cb78d Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 30 Dec 2009 16:21:05 +0000 Subject: [PATCH] - Started work on adding Peer ID spoofing settings for Web UI (incomplete) --- src/httpconnection.cpp | 2 +- src/webui/preferences_content.html | 39 ++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/src/httpconnection.cpp b/src/httpconnection.cpp index 6a9706600..0e04b7f4b 100644 --- a/src/httpconnection.cpp +++ b/src/httpconnection.cpp @@ -108,7 +108,7 @@ QString HttpConnection::translateDocument(QString data) { bool found = false; do { found = false; - QRegExp regex("_\\(([\\w\\s?!:\\/\\(\\),\\-\\.]+)\\)"); + QRegExp regex(QString::fromUtf8("_\\(([\\w\\s?!:\\/\\(\\),µ\\-\\.]+)\\)")); i = regex.indexIn(data, i); if(i >= 0) { //qDebug("Found translatable string: %s", regex.cap(1).toUtf8().data()); diff --git a/src/webui/preferences_content.html b/src/webui/preferences_content.html index 0fa0ccf0f..55dfd5416 100644 --- a/src/webui/preferences_content.html +++ b/src/webui/preferences_content.html @@ -69,6 +69,20 @@
+
+ _(Client whitelisting workaround) + _(Identify as:) + +    + _(Version:) +    + _(Build:) +
+