Merge branch 'upstream/master'
Conflicts: src/bitmessageqt/bitmessageui.py src/bitmessageqt/bitmessageui.ui src/bitmessageqt/settings.py src/helper_startup.py
This commit is contained in:
commit
0195f97789
|
@ -57,8 +57,8 @@ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
|
||||||
|
|
||||||
Now, install the required dependencies
|
Now, install the required dependencies
|
||||||
```
|
```
|
||||||
sudo port install python27 py27-pyqt4 openssl
|
brew install python pyqt
|
||||||
sudo port install git-core +svn +doc +bash_completion +gitweb
|
brew install git
|
||||||
```
|
```
|
||||||
|
|
||||||
Download and run PyBitmessage:
|
Download and run PyBitmessage:
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -7,7 +7,8 @@ PREFIX?=/usr/local
|
||||||
all:
|
all:
|
||||||
debug:
|
debug:
|
||||||
source:
|
source:
|
||||||
tar -cvzf ../${APP}_${VERSION}.orig.tar.gz ../${APP}-${VERSION} --exclude-vcs
|
tar -cvf ../${APP}_${VERSION}.orig.tar ../${APP}-${VERSION} --exclude-vcs
|
||||||
|
gzip -f9n ../${APP}_${VERSION}.orig.tar
|
||||||
install:
|
install:
|
||||||
mkdir -p ${DESTDIR}/usr
|
mkdir -p ${DESTDIR}/usr
|
||||||
mkdir -p ${DESTDIR}${PREFIX}
|
mkdir -p ${DESTDIR}${PREFIX}
|
||||||
|
|
19
arch.sh
19
arch.sh
|
@ -1,10 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
GIT_APP=PyBitmessage
|
||||||
APP=pybitmessage
|
APP=pybitmessage
|
||||||
PREV_VERSION=0.3.5
|
PREV_VERSION=0.3.5
|
||||||
VERSION=0.3.5
|
VERSION=0.3.5
|
||||||
RELEASE=1
|
RELEASE=1
|
||||||
ARCH_TYPE=`uname -m`
|
ARCH_TYPE=any
|
||||||
CURRDIR=`pwd`
|
CURRDIR=`pwd`
|
||||||
SOURCE=archpackage/${APP}-${VERSION}.tar.gz
|
SOURCE=archpackage/${APP}-${VERSION}.tar.gz
|
||||||
|
|
||||||
|
@ -25,24 +26,12 @@ make clean
|
||||||
rm -f archpackage/*.gz
|
rm -f archpackage/*.gz
|
||||||
|
|
||||||
# having the root directory called name-version seems essential
|
# having the root directory called name-version seems essential
|
||||||
mv ../${APP} ../${APP}-${VERSION}
|
mv ../${GIT_APP} ../${APP}-${VERSION}
|
||||||
tar -cvzf ${SOURCE} ../${APP}-${VERSION} --exclude-vcs
|
tar -cvzf ${SOURCE} ../${APP}-${VERSION} --exclude-vcs
|
||||||
|
|
||||||
# rename the root directory without the version number
|
# rename the root directory without the version number
|
||||||
mv ../${APP}-${VERSION} ../${APP}
|
mv ../${APP}-${VERSION} ../${GIT_APP}
|
||||||
|
|
||||||
# calculate the MD5 checksum
|
# calculate the MD5 checksum
|
||||||
CHECKSM=$(md5sum ${SOURCE})
|
CHECKSM=$(md5sum ${SOURCE})
|
||||||
sed -i "s/md5sums[^)]*)/md5sums=(${CHECKSM%% *})/g" archpackage/PKGBUILD
|
sed -i "s/md5sums[^)]*)/md5sums=(${CHECKSM%% *})/g" archpackage/PKGBUILD
|
||||||
|
|
||||||
cd archpackage
|
|
||||||
|
|
||||||
# Create the package
|
|
||||||
tar -c -f ${APP}-${VERSION}.pkg.tar .
|
|
||||||
sync
|
|
||||||
xz ${APP}-${VERSION}.pkg.tar
|
|
||||||
sync
|
|
||||||
|
|
||||||
# Move back to the original directory
|
|
||||||
cd ${CURRDIR}
|
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@ pkgname=pybitmessage
|
||||||
pkgver=0.3.5
|
pkgver=0.3.5
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Bitmessage is a P2P communications protocol used to send encrypted messages to another person or to many subscribers. It is decentralized and trustless, meaning that you need-not inherently trust any entities like root certificate authorities. It uses strong authentication which means that the sender of a message cannot be spoofed, and it aims to hide "non-content" data, like the sender and receiver of messages, from passive eavesdroppers like those running warrantless wiretapping programs."
|
pkgdesc="Bitmessage is a P2P communications protocol used to send encrypted messages to another person or to many subscribers. It is decentralized and trustless, meaning that you need-not inherently trust any entities like root certificate authorities. It uses strong authentication which means that the sender of a message cannot be spoofed, and it aims to hide "non-content" data, like the sender and receiver of messages, from passive eavesdroppers like those running warrantless wiretapping programs."
|
||||||
arch=('i686' 'x86_64')
|
arch=('any')
|
||||||
url="https://github.com/Bitmessage/PyBitmessage"
|
url="https://github.com/Bitmessage/PyBitmessage"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
groups=()
|
groups=()
|
||||||
depends=('python2' 'qt4' 'python2-pyqt4' 'sqlite' 'openssl' 'gst123')
|
depends=('python2' 'qt4' 'python2-pyqt4' 'sqlite' 'openssl' 'mpg123')
|
||||||
makedepends=()
|
makedepends=()
|
||||||
optdepends=('python2-gevent')
|
optdepends=('python2-gevent: Python network library that uses greenlet and libevent for easy and scalable concurrency')
|
||||||
provides=()
|
provides=()
|
||||||
conflicts=()
|
conflicts=()
|
||||||
replaces=()
|
replaces=()
|
||||||
|
@ -19,7 +19,7 @@ install=
|
||||||
changelog=
|
changelog=
|
||||||
source=($pkgname-$pkgver.tar.gz)
|
source=($pkgname-$pkgver.tar.gz)
|
||||||
noextract=()
|
noextract=()
|
||||||
md5sums=()
|
md5sums=(ebf89129571571198473559b4b2e552c)
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
APP=pybitmessage
|
APP=pybitmessage
|
||||||
PREV_VERSION=0.3.4
|
PREV_VERSION=0.3.5
|
||||||
VERSION=0.3.5
|
VERSION=0.3.5
|
||||||
RELEASE=1
|
RELEASE=1
|
||||||
ARCH_TYPE=`uname -m`
|
ARCH_TYPE=all
|
||||||
DIR=${APP}-${VERSION}
|
DIR=${APP}-${VERSION}
|
||||||
|
|
||||||
if [ $ARCH_TYPE == "x86_64" ]; then
|
if [ $ARCH_TYPE == "x86_64" ]; then
|
||||||
|
|
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -14,7 +14,8 @@ pybitmessage (0.3.5-1) raring; urgency=low
|
||||||
* Added Russian translation
|
* Added Russian translation
|
||||||
* Added search support in the UI
|
* Added search support in the UI
|
||||||
* Added 'make uninstall'
|
* Added 'make uninstall'
|
||||||
* To improve OSX support, use PKCS5_PBKDF2_HMAC_SHA1 if PKCS5_PBKDF2_HMAC is unavailable
|
* To improve OSX support, use PKCS5_PBKDF2_HMAC_SHA1
|
||||||
|
if PKCS5_PBKDF2_HMAC is unavailable
|
||||||
* Added better warnings for OSX users who are using old versions of Python
|
* Added better warnings for OSX users who are using old versions of Python
|
||||||
* Repaired debian packaging
|
* Repaired debian packaging
|
||||||
* Altered Makefile to avoid needing to chase changes
|
* Altered Makefile to avoid needing to chase changes
|
||||||
|
|
4
debian/control
vendored
4
debian/control
vendored
|
@ -1,4 +1,5 @@
|
||||||
Source: pybitmessage
|
Source: pybitmessage
|
||||||
|
Section: mail
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Bob Mottram (4096 bits) <bob@robotics.uk.to>
|
Maintainer: Bob Mottram (4096 bits) <bob@robotics.uk.to>
|
||||||
Build-Depends: debhelper (>= 9.0.0)
|
Build-Depends: debhelper (>= 9.0.0)
|
||||||
|
@ -7,8 +8,7 @@ Homepage: https://github.com/Bitmessage/PyBitmessage
|
||||||
Vcs-Git: https://github.com/Bitmessage/PyBitmessage.git
|
Vcs-Git: https://github.com/Bitmessage/PyBitmessage.git
|
||||||
|
|
||||||
Package: pybitmessage
|
Package: pybitmessage
|
||||||
Section: mail
|
Architecture: all
|
||||||
Architecture: any
|
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.7.0), openssl, python-qt4, libqt4-dev (>= 4.8.0), python-qt4-dev, sqlite3, libsqlite3-dev, gst123
|
Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.7.0), openssl, python-qt4, libqt4-dev (>= 4.8.0), python-qt4-dev, sqlite3, libsqlite3-dev, gst123
|
||||||
Suggests: libmessaging-menu-dev
|
Suggests: libmessaging-menu-dev
|
||||||
Description: Send encrypted messages
|
Description: Send encrypted messages
|
||||||
|
|
|
@ -26,7 +26,7 @@ packagemonkey -n "PyBitmessage" --version "0.3.5" --dir "." -l "mit" \
|
||||||
--dependspuppy "openssl, python-qt4, sqlite3, sqlite3-dev, " \
|
--dependspuppy "openssl, python-qt4, sqlite3, sqlite3-dev, " \
|
||||||
"python-openssl, python-sip, gst123" \
|
"python-openssl, python-sip, gst123" \
|
||||||
--dependsarch "python2, qt4, python2-pyqt4, sqlite, openssl, gst123" \
|
--dependsarch "python2, qt4, python2-pyqt4, sqlite, openssl, gst123" \
|
||||||
--suggestsarch "python2-gevent" --pythonversion 2 \
|
--suggestsarch "python2-gevent: Python network library that uses greenlet and libevent for easy and scalable concurrency" --pythonversion 2 \
|
||||||
--dependsebuild "dev-libs/openssl, dev-python/PyQt4[${PYTHON_USEDEP}]" \
|
--dependsebuild "dev-libs/openssl, dev-python/PyQt4[${PYTHON_USEDEP}]" \
|
||||||
--buildebuild "\${PYTHON_DEPS}" --pythonreq "sqlite" \
|
--buildebuild "\${PYTHON_DEPS}" --pythonreq "sqlite" \
|
||||||
--repository "https://github.com/Bitmessage/PyBitmessage.git"
|
--repository "https://github.com/Bitmessage/PyBitmessage.git"
|
||||||
|
|
4
osx.sh
Normal file → Executable file
4
osx.sh
Normal file → Executable file
|
@ -12,12 +12,12 @@ if [[ -z "$1" ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Creating OS X packages for Bitmessage. This script will ask for sudo to create the dmg volume"
|
echo "Creating OS X packages for Bitmessage."
|
||||||
|
|
||||||
cd src && python build_osx.py py2app
|
cd src && python build_osx.py py2app
|
||||||
|
|
||||||
if [[ $? = "0" ]]; then
|
if [[ $? = "0" ]]; then
|
||||||
sudo hdiutil create -fs HFS+ -volname "Bitmessage" -srcfolder dist/Bitmessage.app dist/bitmessage-v$1.dmg
|
hdiutil create -fs HFS+ -volname "Bitmessage" -srcfolder dist/Bitmessage.app dist/bitmessage-v$1.dmg
|
||||||
else
|
else
|
||||||
echo "Problem creating Bitmessage.app, stopping."
|
echo "Problem creating Bitmessage.app, stopping."
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
pybitmessage-0.3.5-1|PyBitmessage|0.3.5|1|Internet;mailnews;|7.2M||pybitmessage-0.3.5-1.pet|+openssl,+python-qt4,+sqlite3,+sqlite3-dev,+python-openssl,+python-sip,+gst123|Send encrypted messages|ubuntu|precise|5|
|
pybitmessage-0.3.5-1|PyBitmessage|0.3.5|1|Internet;mailnews;|3.8M||pybitmessage-0.3.5-1.pet|+openssl,+python-qt4,+sqlite3,+sqlite3-dev,+python-openssl,+python-sip,+gst123|Send encrypted messages|ubuntu|precise|5|
|
||||||
|
|
|
@ -6,6 +6,7 @@ License: MIT
|
||||||
URL: https://github.com/Bitmessage/PyBitmessage
|
URL: https://github.com/Bitmessage/PyBitmessage
|
||||||
Packager: Bob Mottram (4096 bits) <bob@robotics.uk.to>
|
Packager: Bob Mottram (4096 bits) <bob@robotics.uk.to>
|
||||||
Source0: http://yourdomainname.com/src/%{name}_%{version}.orig.tar.gz
|
Source0: http://yourdomainname.com/src/%{name}_%{version}.orig.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
Group: Office/Email
|
Group: Office/Email
|
||||||
|
|
||||||
Requires: python, PyQt4, openssl-compat-bitcoin-libs, gst123
|
Requires: python, PyQt4, openssl-compat-bitcoin-libs, gst123
|
||||||
|
@ -83,7 +84,8 @@ make install -B DESTDIR=%{buildroot} PREFIX=/usr
|
||||||
- Added Russian translation
|
- Added Russian translation
|
||||||
- Added search support in the UI
|
- Added search support in the UI
|
||||||
- Added 'make uninstall'
|
- Added 'make uninstall'
|
||||||
- To improve OSX support, use PKCS5_PBKDF2_HMAC_SHA1 if PKCS5_PBKDF2_HMAC is unavailable
|
- To improve OSX support, use PKCS5_PBKDF2_HMAC_SHA1
|
||||||
|
if PKCS5_PBKDF2_HMAC is unavailable
|
||||||
- Added better warnings for OSX users who are using old versions of Python
|
- Added better warnings for OSX users who are using old versions of Python
|
||||||
- Repaired debian packaging
|
- Repaired debian packaging
|
||||||
- Altered Makefile to avoid needing to chase changes
|
- Altered Makefile to avoid needing to chase changes
|
||||||
|
|
|
@ -97,13 +97,18 @@ def calculateInventoryHash(data):
|
||||||
return sha2.digest()[0:32]
|
return sha2.digest()[0:32]
|
||||||
|
|
||||||
def encodeAddress(version,stream,ripe):
|
def encodeAddress(version,stream,ripe):
|
||||||
if version >= 2:
|
if version >= 2 and version < 4:
|
||||||
if len(ripe) != 20:
|
if len(ripe) != 20:
|
||||||
raise Exception("Programming error in encodeAddress: The length of a given ripe hash was not 20.")
|
raise Exception("Programming error in encodeAddress: The length of a given ripe hash was not 20.")
|
||||||
if ripe[:2] == '\x00\x00':
|
if ripe[:2] == '\x00\x00':
|
||||||
ripe = ripe[2:]
|
ripe = ripe[2:]
|
||||||
elif ripe[:1] == '\x00':
|
elif ripe[:1] == '\x00':
|
||||||
ripe = ripe[1:]
|
ripe = ripe[1:]
|
||||||
|
elif version == 4:
|
||||||
|
if len(ripe) != 20:
|
||||||
|
raise Exception("Programming error in encodeAddress: The length of a given ripe hash was not 20.")
|
||||||
|
ripe = ripe.lstrip('\x00')
|
||||||
|
|
||||||
a = encodeVarint(version) + encodeVarint(stream) + ripe
|
a = encodeVarint(version) + encodeVarint(stream) + ripe
|
||||||
sha = hashlib.new('sha512')
|
sha = hashlib.new('sha512')
|
||||||
sha.update(a)
|
sha.update(a)
|
||||||
|
@ -164,7 +169,7 @@ def decodeAddress(address):
|
||||||
#print 'addressVersionNumber', addressVersionNumber
|
#print 'addressVersionNumber', addressVersionNumber
|
||||||
#print 'bytesUsedByVersionNumber', bytesUsedByVersionNumber
|
#print 'bytesUsedByVersionNumber', bytesUsedByVersionNumber
|
||||||
|
|
||||||
if addressVersionNumber > 3:
|
if addressVersionNumber > 4:
|
||||||
print 'cannot decode address version numbers this high'
|
print 'cannot decode address version numbers this high'
|
||||||
status = 'versiontoohigh'
|
status = 'versiontoohigh'
|
||||||
return status,0,0,0
|
return status,0,0,0
|
||||||
|
@ -191,6 +196,15 @@ def decodeAddress(address):
|
||||||
return 'ripetoolong',0,0,0
|
return 'ripetoolong',0,0,0
|
||||||
else:
|
else:
|
||||||
return 'otherproblem',0,0,0
|
return 'otherproblem',0,0,0
|
||||||
|
elif addressVersionNumber == 4:
|
||||||
|
if len(data[bytesUsedByVersionNumber+bytesUsedByStreamNumber:-4]) > 20:
|
||||||
|
return 'ripetoolong',0,0,0
|
||||||
|
elif len(data[bytesUsedByVersionNumber+bytesUsedByStreamNumber:-4]) < 4:
|
||||||
|
return 'ripetooshort',0,0,0
|
||||||
|
else:
|
||||||
|
x00string = '\x00' * (20 - len(data[bytesUsedByVersionNumber+bytesUsedByStreamNumber:-4]))
|
||||||
|
return status,addressVersionNumber,streamNumber,x00string+data[bytesUsedByVersionNumber+bytesUsedByStreamNumber:-4]
|
||||||
|
|
||||||
|
|
||||||
def addBMIfNotPresent(address):
|
def addBMIfNotPresent(address):
|
||||||
address = str(address).strip()
|
address = str(address).strip()
|
||||||
|
|
|
@ -9,13 +9,6 @@
|
||||||
|
|
||||||
# The software version variable is now held in shared.py
|
# The software version variable is now held in shared.py
|
||||||
|
|
||||||
# import ctypes
|
|
||||||
try:
|
|
||||||
from gevent import monkey
|
|
||||||
monkey.patch_all()
|
|
||||||
except ImportError as ex:
|
|
||||||
print "Not using the gevent module as it was not found. No need to worry."
|
|
||||||
|
|
||||||
import signal # Used to capture a Ctrl-C keypress so that Bitmessage can shutdown gracefully.
|
import signal # Used to capture a Ctrl-C keypress so that Bitmessage can shutdown gracefully.
|
||||||
# The next 3 are used for the API
|
# The next 3 are used for the API
|
||||||
from SimpleXMLRPCServer import *
|
from SimpleXMLRPCServer import *
|
||||||
|
@ -38,10 +31,17 @@ from class_singleWorker import *
|
||||||
from class_outgoingSynSender import *
|
from class_outgoingSynSender import *
|
||||||
from class_singleListener import *
|
from class_singleListener import *
|
||||||
from class_addressGenerator import *
|
from class_addressGenerator import *
|
||||||
|
from debug import logger
|
||||||
|
|
||||||
# Helper Functions
|
# Helper Functions
|
||||||
import helper_bootstrap
|
import helper_bootstrap
|
||||||
|
|
||||||
|
import sys
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
if float("{1}.{2}".format(*sys.version_info)) < 7.5:
|
||||||
|
logger.critical("You should use python 2.7.5 or greater. Your version: %s", "{0}.{1}.{2}".format(*sys.version_info))
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
def connectToStream(streamNumber):
|
def connectToStream(streamNumber):
|
||||||
selfInitiatedConnections[streamNumber] = {}
|
selfInitiatedConnections[streamNumber] = {}
|
||||||
if sys.platform[0:3] == 'win':
|
if sys.platform[0:3] == 'win':
|
||||||
|
@ -54,6 +54,13 @@ def connectToStream(streamNumber):
|
||||||
a.start()
|
a.start()
|
||||||
|
|
||||||
|
|
||||||
|
class APIError(Exception):
|
||||||
|
def __init__(self, error_number, error_message):
|
||||||
|
self.error_number = error_number
|
||||||
|
self.error_message = error_message
|
||||||
|
def __str__(self):
|
||||||
|
return "API Error %04i: %s" % (self.error_number, self.error_message)
|
||||||
|
|
||||||
# This is one of several classes that constitute the API
|
# This is one of several classes that constitute the API
|
||||||
# This class was written by Vaibhav Bhatia. Modified by Jonathan Warren (Atheros).
|
# This class was written by Vaibhav Bhatia. Modified by Jonathan Warren (Atheros).
|
||||||
# http://code.activestate.com/recipes/501148-xmlrpc-serverclient-which-does-cookie-handling-and/
|
# http://code.activestate.com/recipes/501148-xmlrpc-serverclient-which-does-cookie-handling-and/
|
||||||
|
@ -127,20 +134,19 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
print 'Authentication failed because header lacks Authentication field'
|
logger.warn('Authentication failed because header lacks Authentication field')
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _dispatch(self, method, params):
|
def _decode(self, text, decode_type):
|
||||||
self.cookies = []
|
try:
|
||||||
|
return text.decode(decode_type)
|
||||||
|
except TypeError as e:
|
||||||
|
raise APIError(22, "Decode error - " + str(e))
|
||||||
|
|
||||||
validuser = self.APIAuthenticateClient()
|
def _handle_request(self, method, params):
|
||||||
if not validuser:
|
|
||||||
time.sleep(2)
|
|
||||||
return "RPC Username or password incorrect or HTTP header lacks authentication at all."
|
|
||||||
# handle request
|
|
||||||
if method == 'helloWorld':
|
if method == 'helloWorld':
|
||||||
(a, b) = params
|
(a, b) = params
|
||||||
return a + '-' + b
|
return a + '-' + b
|
||||||
|
@ -166,7 +172,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return data
|
return data
|
||||||
elif method == 'createRandomAddress':
|
elif method == 'createRandomAddress':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
elif len(params) == 1:
|
elif len(params) == 1:
|
||||||
label, = params
|
label, = params
|
||||||
eighteenByteRipe = False
|
eighteenByteRipe = False
|
||||||
|
@ -193,12 +199,12 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
payloadLengthExtraBytes = int(
|
payloadLengthExtraBytes = int(
|
||||||
shared.networkDefaultPayloadLengthExtraBytes * smallMessageDifficulty)
|
shared.networkDefaultPayloadLengthExtraBytes * smallMessageDifficulty)
|
||||||
else:
|
else:
|
||||||
return 'API Error 0000: Too many parameters!'
|
raise APIError(0, 'Too many parameters!')
|
||||||
label = label.decode('base64')
|
label = self._decode(label, "base64")
|
||||||
try:
|
try:
|
||||||
unicode(label, 'utf-8')
|
unicode(label, 'utf-8')
|
||||||
except:
|
except:
|
||||||
return 'API Error 0017: Label is not valid UTF-8 data.'
|
raise APIError(17, 'Label is not valid UTF-8 data.')
|
||||||
shared.apiAddressGeneratorReturnQueue.queue.clear()
|
shared.apiAddressGeneratorReturnQueue.queue.clear()
|
||||||
streamNumberForAddress = 1
|
streamNumberForAddress = 1
|
||||||
shared.addressGeneratorQueue.put((
|
shared.addressGeneratorQueue.put((
|
||||||
|
@ -206,7 +212,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return shared.apiAddressGeneratorReturnQueue.get()
|
return shared.apiAddressGeneratorReturnQueue.get()
|
||||||
elif method == 'createDeterministicAddresses':
|
elif method == 'createDeterministicAddresses':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
elif len(params) == 1:
|
elif len(params) == 1:
|
||||||
passphrase, = params
|
passphrase, = params
|
||||||
numberOfAddresses = 1
|
numberOfAddresses = 1
|
||||||
|
@ -260,24 +266,24 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
payloadLengthExtraBytes = int(
|
payloadLengthExtraBytes = int(
|
||||||
shared.networkDefaultPayloadLengthExtraBytes * smallMessageDifficulty)
|
shared.networkDefaultPayloadLengthExtraBytes * smallMessageDifficulty)
|
||||||
else:
|
else:
|
||||||
return 'API Error 0000: Too many parameters!'
|
raise APIError(0, 'Too many parameters!')
|
||||||
if len(passphrase) == 0:
|
if len(passphrase) == 0:
|
||||||
return 'API Error 0001: The specified passphrase is blank.'
|
raise APIError(1, 'The specified passphrase is blank.')
|
||||||
passphrase = passphrase.decode('base64')
|
passphrase = self._decode(passphrase, "base64")
|
||||||
if addressVersionNumber == 0: # 0 means "just use the proper addressVersionNumber"
|
if addressVersionNumber == 0: # 0 means "just use the proper addressVersionNumber"
|
||||||
addressVersionNumber = 3
|
addressVersionNumber = 3
|
||||||
if addressVersionNumber != 3:
|
if addressVersionNumber != 3:
|
||||||
return 'API Error 0002: The address version number currently must be 3 (or 0 which means auto-select). ' + addressVersionNumber + ' isn\'t supported.'
|
raise APIError(2,'The address version number currently must be 3 (or 0 which means auto-select). ' + addressVersionNumber + ' isn\'t supported.')
|
||||||
if streamNumber == 0: # 0 means "just use the most available stream"
|
if streamNumber == 0: # 0 means "just use the most available stream"
|
||||||
streamNumber = 1
|
streamNumber = 1
|
||||||
if streamNumber != 1:
|
if streamNumber != 1:
|
||||||
return 'API Error 0003: The stream number must be 1 (or 0 which means auto-select). Others aren\'t supported.'
|
raise APIError(3,'The stream number must be 1 (or 0 which means auto-select). Others aren\'t supported.')
|
||||||
if numberOfAddresses == 0:
|
if numberOfAddresses == 0:
|
||||||
return 'API Error 0004: Why would you ask me to generate 0 addresses for you?'
|
raise APIError(4, 'Why would you ask me to generate 0 addresses for you?')
|
||||||
if numberOfAddresses > 999:
|
if numberOfAddresses > 999:
|
||||||
return 'API Error 0005: You have (accidentally?) specified too many addresses to make. Maximum 999. This check only exists to prevent mischief; if you really want to create more addresses than this, contact the Bitmessage developers and we can modify the check or you can do it yourself by searching the source code for this message.'
|
raise APIError(5, 'You have (accidentally?) specified too many addresses to make. Maximum 999. This check only exists to prevent mischief; if you really want to create more addresses than this, contact the Bitmessage developers and we can modify the check or you can do it yourself by searching the source code for this message.')
|
||||||
shared.apiAddressGeneratorReturnQueue.queue.clear()
|
shared.apiAddressGeneratorReturnQueue.queue.clear()
|
||||||
print 'Requesting that the addressGenerator create', numberOfAddresses, 'addresses.'
|
logger.debug('Requesting that the addressGenerator create %s addresses.', numberOfAddresses)
|
||||||
shared.addressGeneratorQueue.put(
|
shared.addressGeneratorQueue.put(
|
||||||
('createDeterministicAddresses', addressVersionNumber, streamNumber,
|
('createDeterministicAddresses', addressVersionNumber, streamNumber,
|
||||||
'unused API address', numberOfAddresses, passphrase, eighteenByteRipe, nonceTrialsPerByte, payloadLengthExtraBytes))
|
'unused API address', numberOfAddresses, passphrase, eighteenByteRipe, nonceTrialsPerByte, payloadLengthExtraBytes))
|
||||||
|
@ -291,19 +297,19 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return data
|
return data
|
||||||
elif method == 'getDeterministicAddress':
|
elif method == 'getDeterministicAddress':
|
||||||
if len(params) != 3:
|
if len(params) != 3:
|
||||||
return 'API Error 0000: I need exactly 3 parameters.'
|
raise APIError(0, 'I need exactly 3 parameters.')
|
||||||
passphrase, addressVersionNumber, streamNumber = params
|
passphrase, addressVersionNumber, streamNumber = params
|
||||||
numberOfAddresses = 1
|
numberOfAddresses = 1
|
||||||
eighteenByteRipe = False
|
eighteenByteRipe = False
|
||||||
if len(passphrase) == 0:
|
if len(passphrase) == 0:
|
||||||
return 'API Error 0001: The specified passphrase is blank.'
|
raise APIError(1, 'The specified passphrase is blank.')
|
||||||
passphrase = passphrase.decode('base64')
|
passphrase = self._decode(passphrase, "base64")
|
||||||
if addressVersionNumber != 3:
|
if addressVersionNumber != 3:
|
||||||
return 'API Error 0002: The address version number currently must be 3. ' + addressVersionNumber + ' isn\'t supported.'
|
raise APIError(2, 'The address version number currently must be 3. ' + addressVersionNumber + ' isn\'t supported.')
|
||||||
if streamNumber != 1:
|
if streamNumber != 1:
|
||||||
return 'API Error 0003: The stream number must be 1. Others aren\'t supported.'
|
raise APIError(3, ' The stream number must be 1. Others aren\'t supported.')
|
||||||
shared.apiAddressGeneratorReturnQueue.queue.clear()
|
shared.apiAddressGeneratorReturnQueue.queue.clear()
|
||||||
print 'Requesting that the addressGenerator create', numberOfAddresses, 'addresses.'
|
logger.debug('Requesting that the addressGenerator create %s addresses.', numberOfAddresses)
|
||||||
shared.addressGeneratorQueue.put(
|
shared.addressGeneratorQueue.put(
|
||||||
('getDeterministicAddress', addressVersionNumber,
|
('getDeterministicAddress', addressVersionNumber,
|
||||||
streamNumber, 'unused API address', numberOfAddresses, passphrase, eighteenByteRipe))
|
streamNumber, 'unused API address', numberOfAddresses, passphrase, eighteenByteRipe))
|
||||||
|
@ -343,8 +349,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return data
|
return data
|
||||||
elif method == 'getInboxMessageById' or method == 'getInboxMessageByID':
|
elif method == 'getInboxMessageById' or method == 'getInboxMessageByID':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
msgid = params[0].decode('hex')
|
msgid = self._decode(params[0], "hex")
|
||||||
v = (msgid,)
|
v = (msgid,)
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
shared.sqlSubmitQueue.put('''SELECT msgid, toaddress, fromaddress, subject, received, message, encodingtype, read FROM inbox WHERE msgid=?''')
|
shared.sqlSubmitQueue.put('''SELECT msgid, toaddress, fromaddress, subject, received, message, encodingtype, read FROM inbox WHERE msgid=?''')
|
||||||
|
@ -391,7 +397,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return data
|
return data
|
||||||
elif method == 'getInboxMessagesByReceiver' or method == 'getInboxMessagesByAddress': #after some time getInboxMessagesByAddress should be removed
|
elif method == 'getInboxMessagesByReceiver' or method == 'getInboxMessagesByAddress': #after some time getInboxMessagesByAddress should be removed
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
toAddress = params[0]
|
toAddress = params[0]
|
||||||
v = (toAddress,)
|
v = (toAddress,)
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
|
@ -411,8 +417,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return data
|
return data
|
||||||
elif method == 'getSentMessageById' or method == 'getSentMessageByID':
|
elif method == 'getSentMessageById' or method == 'getSentMessageByID':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
msgid = params[0].decode('hex')
|
msgid = self._decode(params[0], "hex")
|
||||||
v = (msgid,)
|
v = (msgid,)
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
shared.sqlSubmitQueue.put('''SELECT msgid, toaddress, fromaddress, subject, lastactiontime, message, encodingtype, status, ackdata FROM sent WHERE msgid=?''')
|
shared.sqlSubmitQueue.put('''SELECT msgid, toaddress, fromaddress, subject, lastactiontime, message, encodingtype, status, ackdata FROM sent WHERE msgid=?''')
|
||||||
|
@ -429,7 +435,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return data
|
return data
|
||||||
elif method == 'getSentMessagesByAddress' or method == 'getSentMessagesBySender':
|
elif method == 'getSentMessagesByAddress' or method == 'getSentMessagesBySender':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
fromAddress = params[0]
|
fromAddress = params[0]
|
||||||
v = (fromAddress,)
|
v = (fromAddress,)
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
|
@ -449,8 +455,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return data
|
return data
|
||||||
elif method == 'getSentMessageByAckData':
|
elif method == 'getSentMessageByAckData':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
ackData = params[0].decode('hex')
|
ackData = self._decode(params[0], "hex")
|
||||||
v = (ackData,)
|
v = (ackData,)
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
shared.sqlSubmitQueue.put('''SELECT msgid, toaddress, fromaddress, subject, lastactiontime, message, encodingtype, status, ackdata FROM sent WHERE ackdata=?''')
|
shared.sqlSubmitQueue.put('''SELECT msgid, toaddress, fromaddress, subject, lastactiontime, message, encodingtype, status, ackdata FROM sent WHERE ackdata=?''')
|
||||||
|
@ -467,8 +473,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return data
|
return data
|
||||||
elif method == 'trashMessage':
|
elif method == 'trashMessage':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
msgid = params[0].decode('hex')
|
msgid = self._decode(params[0], "hex")
|
||||||
|
|
||||||
# Trash if in inbox table
|
# Trash if in inbox table
|
||||||
helper_inbox.trash(msgid)
|
helper_inbox.trash(msgid)
|
||||||
|
@ -484,14 +490,14 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return 'Trashed message (assuming message existed).'
|
return 'Trashed message (assuming message existed).'
|
||||||
elif method == 'trashInboxMessage':
|
elif method == 'trashInboxMessage':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
msgid = params[0].decode('hex')
|
msgid = self._decode(params[0], "hex")
|
||||||
helper_inbox.trash(msgid)
|
helper_inbox.trash(msgid)
|
||||||
return 'Trashed inbox message (assuming message existed).'
|
return 'Trashed inbox message (assuming message existed).'
|
||||||
elif method == 'trashSentMessage':
|
elif method == 'trashSentMessage':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
msgid = params[0].decode('hex')
|
msgid = self._decode(params[0], "hex")
|
||||||
t = (msgid,)
|
t = (msgid,)
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
shared.sqlSubmitQueue.put('''UPDATE sent SET folder='trash' WHERE msgid=?''')
|
shared.sqlSubmitQueue.put('''UPDATE sent SET folder='trash' WHERE msgid=?''')
|
||||||
|
@ -501,61 +507,72 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
shared.sqlLock.release()
|
shared.sqlLock.release()
|
||||||
# shared.UISignalQueue.put(('removeSentRowByMsgid',msgid)) This function doesn't exist yet.
|
# shared.UISignalQueue.put(('removeSentRowByMsgid',msgid)) This function doesn't exist yet.
|
||||||
return 'Trashed sent message (assuming message existed).'
|
return 'Trashed sent message (assuming message existed).'
|
||||||
|
elif method == 'trashSentMessageByAckData':
|
||||||
|
# This API method should only be used when msgid is not available
|
||||||
|
if len(params) == 0:
|
||||||
|
raise APIError(0, 'I need parameters!')
|
||||||
|
ackdata = self._decode(params[0], "hex")
|
||||||
|
t = (ackdata,)
|
||||||
|
shared.sqlLock.acquire()
|
||||||
|
shared.sqlSubmitQueue.put('''UPDATE sent SET folder='trash' WHERE ackdata=?''')
|
||||||
|
shared.sqlSubmitQueue.put(t)
|
||||||
|
shared.sqlReturnQueue.get()
|
||||||
|
shared.sqlSubmitQueue.put('commit')
|
||||||
|
shared.sqlLock.release()
|
||||||
|
return 'Trashed sent message (assuming message existed).'
|
||||||
elif method == 'sendMessage':
|
elif method == 'sendMessage':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
elif len(params) == 4:
|
elif len(params) == 4:
|
||||||
toAddress, fromAddress, subject, message = params
|
toAddress, fromAddress, subject, message = params
|
||||||
encodingType = 2
|
encodingType = 2
|
||||||
elif len(params) == 5:
|
elif len(params) == 5:
|
||||||
toAddress, fromAddress, subject, message, encodingType = params
|
toAddress, fromAddress, subject, message, encodingType = params
|
||||||
if encodingType != 2:
|
if encodingType != 2:
|
||||||
return 'API Error 0006: The encoding type must be 2 because that is the only one this program currently supports.'
|
raise APIError(6, 'The encoding type must be 2 because that is the only one this program currently supports.')
|
||||||
subject = subject.decode('base64')
|
subject = self._decode(subject, "base64")
|
||||||
message = message.decode('base64')
|
message = self._decode(message, "base64")
|
||||||
status, addressVersionNumber, streamNumber, toRipe = decodeAddress(
|
status, addressVersionNumber, streamNumber, toRipe = decodeAddress(
|
||||||
toAddress)
|
toAddress)
|
||||||
if status != 'success':
|
if status != 'success':
|
||||||
with shared.printLock:
|
logger.warn('API Error 0007: Could not decode address %s. Status: %s.', toAddress, status)
|
||||||
print 'API Error 0007: Could not decode address:', toAddress, ':', status
|
|
||||||
|
|
||||||
if status == 'checksumfailed':
|
if status == 'checksumfailed':
|
||||||
return 'API Error 0008: Checksum failed for address: ' + toAddress
|
raise APIError(8, 'Checksum failed for address: ' + toAddress)
|
||||||
if status == 'invalidcharacters':
|
if status == 'invalidcharacters':
|
||||||
return 'API Error 0009: Invalid characters in address: ' + toAddress
|
raise APIError(9, 'Invalid characters in address: ' + toAddress)
|
||||||
if status == 'versiontoohigh':
|
if status == 'versiontoohigh':
|
||||||
return 'API Error 0010: Address version number too high (or zero) in address: ' + toAddress
|
raise APIError(10, 'Address version number too high (or zero) in address: ' + toAddress)
|
||||||
return 'API Error 0007: Could not decode address: ' + toAddress + ' : ' + status
|
raise APIError(7, 'Could not decode address: ' + toAddress + ' : ' + status)
|
||||||
if addressVersionNumber < 2 or addressVersionNumber > 3:
|
if addressVersionNumber < 2 or addressVersionNumber > 3:
|
||||||
return 'API Error 0011: The address version number currently must be 2 or 3. Others aren\'t supported. Check the toAddress.'
|
raise APIError(11, 'The address version number currently must be 2 or 3. Others aren\'t supported. Check the toAddress.')
|
||||||
if streamNumber != 1:
|
if streamNumber != 1:
|
||||||
return 'API Error 0012: The stream number must be 1. Others aren\'t supported. Check the toAddress.'
|
raise APIError(12, 'The stream number must be 1. Others aren\'t supported. Check the toAddress.')
|
||||||
status, addressVersionNumber, streamNumber, fromRipe = decodeAddress(
|
status, addressVersionNumber, streamNumber, fromRipe = decodeAddress(
|
||||||
fromAddress)
|
fromAddress)
|
||||||
if status != 'success':
|
if status != 'success':
|
||||||
with shared.printLock:
|
logger.warn('API Error 0007: Could not decode address %s. Status: %s.', fromAddress, status)
|
||||||
print 'API Error 0007: Could not decode address:', fromAddress, ':', status
|
|
||||||
|
|
||||||
if status == 'checksumfailed':
|
if status == 'checksumfailed':
|
||||||
return 'API Error 0008: Checksum failed for address: ' + fromAddress
|
raise APIError(8, 'Checksum failed for address: ' + fromAddress)
|
||||||
if status == 'invalidcharacters':
|
if status == 'invalidcharacters':
|
||||||
return 'API Error 0009: Invalid characters in address: ' + fromAddress
|
raise APIError(9, 'Invalid characters in address: ' + fromAddress)
|
||||||
if status == 'versiontoohigh':
|
if status == 'versiontoohigh':
|
||||||
return 'API Error 0010: Address version number too high (or zero) in address: ' + fromAddress
|
raise APIError(10, 'Address version number too high (or zero) in address: ' + fromAddress)
|
||||||
return 'API Error 0007: Could not decode address: ' + fromAddress + ' : ' + status
|
raise APIError(7, 'Could not decode address: ' + fromAddress + ' : ' + status)
|
||||||
if addressVersionNumber < 2 or addressVersionNumber > 3:
|
if addressVersionNumber < 2 or addressVersionNumber > 3:
|
||||||
return 'API Error 0011: The address version number currently must be 2 or 3. Others aren\'t supported. Check the fromAddress.'
|
raise APIError(11, 'The address version number currently must be 2 or 3. Others aren\'t supported. Check the fromAddress.')
|
||||||
if streamNumber != 1:
|
if streamNumber != 1:
|
||||||
return 'API Error 0012: The stream number must be 1. Others aren\'t supported. Check the fromAddress.'
|
raise APIError(12, 'The stream number must be 1. Others aren\'t supported. Check the fromAddress.')
|
||||||
toAddress = addBMIfNotPresent(toAddress)
|
toAddress = addBMIfNotPresent(toAddress)
|
||||||
fromAddress = addBMIfNotPresent(fromAddress)
|
fromAddress = addBMIfNotPresent(fromAddress)
|
||||||
try:
|
try:
|
||||||
fromAddressEnabled = shared.config.getboolean(
|
fromAddressEnabled = shared.config.getboolean(
|
||||||
fromAddress, 'enabled')
|
fromAddress, 'enabled')
|
||||||
except:
|
except:
|
||||||
return 'API Error 0013: Could not find your fromAddress in the keys.dat file.'
|
raise APIError(13, 'Could not find your fromAddress in the keys.dat file.')
|
||||||
if not fromAddressEnabled:
|
if not fromAddressEnabled:
|
||||||
return 'API Error 0014: Your fromAddress is disabled. Cannot send.'
|
raise APIError(14, 'Your fromAddress is disabled. Cannot send.')
|
||||||
|
|
||||||
ackdata = OpenSSL.rand(32)
|
ackdata = OpenSSL.rand(32)
|
||||||
|
|
||||||
|
@ -584,40 +601,39 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
|
|
||||||
elif method == 'sendBroadcast':
|
elif method == 'sendBroadcast':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
if len(params) == 3:
|
if len(params) == 3:
|
||||||
fromAddress, subject, message = params
|
fromAddress, subject, message = params
|
||||||
encodingType = 2
|
encodingType = 2
|
||||||
elif len(params) == 4:
|
elif len(params) == 4:
|
||||||
fromAddress, subject, message, encodingType = params
|
fromAddress, subject, message, encodingType = params
|
||||||
if encodingType != 2:
|
if encodingType != 2:
|
||||||
return 'API Error 0006: The encoding type must be 2 because that is the only one this program currently supports.'
|
raise APIError(6, 'The encoding type must be 2 because that is the only one this program currently supports.')
|
||||||
subject = subject.decode('base64')
|
subject = self._decode(subject, "base64")
|
||||||
message = message.decode('base64')
|
message = self._decode(message, "base64")
|
||||||
|
|
||||||
status, addressVersionNumber, streamNumber, fromRipe = decodeAddress(
|
status, addressVersionNumber, streamNumber, fromRipe = decodeAddress(
|
||||||
fromAddress)
|
fromAddress)
|
||||||
if status != 'success':
|
if status != 'success':
|
||||||
with shared.printLock:
|
logger.warn('API Error 0007: Could not decode address %s. Status: %s.', fromAddress, status)
|
||||||
print 'API Error 0007: Could not decode address:', fromAddress, ':', status
|
|
||||||
|
|
||||||
if status == 'checksumfailed':
|
if status == 'checksumfailed':
|
||||||
return 'API Error 0008: Checksum failed for address: ' + fromAddress
|
raise APIError(8, 'Checksum failed for address: ' + fromAddress)
|
||||||
if status == 'invalidcharacters':
|
if status == 'invalidcharacters':
|
||||||
return 'API Error 0009: Invalid characters in address: ' + fromAddress
|
raise APIError(9, 'Invalid characters in address: ' + fromAddress)
|
||||||
if status == 'versiontoohigh':
|
if status == 'versiontoohigh':
|
||||||
return 'API Error 0010: Address version number too high (or zero) in address: ' + fromAddress
|
raise APIError(10, 'Address version number too high (or zero) in address: ' + fromAddress)
|
||||||
return 'API Error 0007: Could not decode address: ' + fromAddress + ' : ' + status
|
raise APIError(7, 'Could not decode address: ' + fromAddress + ' : ' + status)
|
||||||
if addressVersionNumber < 2 or addressVersionNumber > 3:
|
if addressVersionNumber < 2 or addressVersionNumber > 3:
|
||||||
return 'API Error 0011: the address version number currently must be 2 or 3. Others aren\'t supported. Check the fromAddress.'
|
raise APIError(11, 'the address version number currently must be 2 or 3. Others aren\'t supported. Check the fromAddress.')
|
||||||
if streamNumber != 1:
|
if streamNumber != 1:
|
||||||
return 'API Error 0012: the stream number must be 1. Others aren\'t supported. Check the fromAddress.'
|
raise APIError(12, 'the stream number must be 1. Others aren\'t supported. Check the fromAddress.')
|
||||||
fromAddress = addBMIfNotPresent(fromAddress)
|
fromAddress = addBMIfNotPresent(fromAddress)
|
||||||
try:
|
try:
|
||||||
fromAddressEnabled = shared.config.getboolean(
|
fromAddressEnabled = shared.config.getboolean(
|
||||||
fromAddress, 'enabled')
|
fromAddress, 'enabled')
|
||||||
except:
|
except:
|
||||||
return 'API Error 0013: could not find your fromAddress in the keys.dat file.'
|
raise APIError(13, 'could not find your fromAddress in the keys.dat file.')
|
||||||
ackdata = OpenSSL.rand(32)
|
ackdata = OpenSSL.rand(32)
|
||||||
toAddress = '[Broadcast subscribers]'
|
toAddress = '[Broadcast subscribers]'
|
||||||
ripe = ''
|
ripe = ''
|
||||||
|
@ -635,14 +651,15 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return ackdata.encode('hex')
|
return ackdata.encode('hex')
|
||||||
elif method == 'getStatus':
|
elif method == 'getStatus':
|
||||||
if len(params) != 1:
|
if len(params) != 1:
|
||||||
return 'API Error 0000: I need one parameter!'
|
raise APIError(0, 'I need one parameter!')
|
||||||
ackdata, = params
|
ackdata, = params
|
||||||
if len(ackdata) != 64:
|
if len(ackdata) != 64:
|
||||||
return 'API Error 0015: The length of ackData should be 32 bytes (encoded in hex thus 64 characters).'
|
raise APIError(15, 'The length of ackData should be 32 bytes (encoded in hex thus 64 characters).')
|
||||||
|
ackdata = self._decode(ackdata, "hex")
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
shared.sqlSubmitQueue.put(
|
shared.sqlSubmitQueue.put(
|
||||||
'''SELECT status FROM sent where ackdata=?''')
|
'''SELECT status FROM sent where ackdata=?''')
|
||||||
shared.sqlSubmitQueue.put((ackdata.decode('hex'),))
|
shared.sqlSubmitQueue.put((ackdata,))
|
||||||
queryreturn = shared.sqlReturnQueue.get()
|
queryreturn = shared.sqlReturnQueue.get()
|
||||||
shared.sqlLock.release()
|
shared.sqlLock.release()
|
||||||
if queryreturn == []:
|
if queryreturn == []:
|
||||||
|
@ -652,37 +669,36 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
return status
|
return status
|
||||||
elif method == 'addSubscription':
|
elif method == 'addSubscription':
|
||||||
if len(params) == 0:
|
if len(params) == 0:
|
||||||
return 'API Error 0000: I need parameters!'
|
raise APIError(0, 'I need parameters!')
|
||||||
if len(params) == 1:
|
if len(params) == 1:
|
||||||
address, = params
|
address, = params
|
||||||
label == ''
|
label == ''
|
||||||
if len(params) == 2:
|
if len(params) == 2:
|
||||||
address, label = params
|
address, label = params
|
||||||
label = label.decode('base64')
|
label = self._decode(label, "base64")
|
||||||
try:
|
try:
|
||||||
unicode(label, 'utf-8')
|
unicode(label, 'utf-8')
|
||||||
except:
|
except:
|
||||||
return 'API Error 0017: Label is not valid UTF-8 data.'
|
raise APIError(17, 'Label is not valid UTF-8 data.')
|
||||||
if len(params) > 2:
|
if len(params) > 2:
|
||||||
return 'API Error 0000: I need either 1 or 2 parameters!'
|
raise APIError(0, 'I need either 1 or 2 parameters!')
|
||||||
address = addBMIfNotPresent(address)
|
address = addBMIfNotPresent(address)
|
||||||
status, addressVersionNumber, streamNumber, toRipe = decodeAddress(
|
status, addressVersionNumber, streamNumber, toRipe = decodeAddress(
|
||||||
address)
|
address)
|
||||||
if status != 'success':
|
if status != 'success':
|
||||||
with shared.printLock:
|
logger.warn('API Error 0007: Could not decode address %s. Status: %s.', address, status)
|
||||||
print 'API Error 0007: Could not decode address:', address, ':', status
|
|
||||||
|
|
||||||
if status == 'checksumfailed':
|
if status == 'checksumfailed':
|
||||||
return 'API Error 0008: Checksum failed for address: ' + address
|
raise APIError(8, 'Checksum failed for address: ' + address)
|
||||||
if status == 'invalidcharacters':
|
if status == 'invalidcharacters':
|
||||||
return 'API Error 0009: Invalid characters in address: ' + address
|
raise APIError(9, 'Invalid characters in address: ' + address)
|
||||||
if status == 'versiontoohigh':
|
if status == 'versiontoohigh':
|
||||||
return 'API Error 0010: Address version number too high (or zero) in address: ' + address
|
raise APIError(10, 'Address version number too high (or zero) in address: ' + address)
|
||||||
return 'API Error 0007: Could not decode address: ' + address + ' : ' + status
|
raise APIError(7, 'Could not decode address: ' + address + ' : ' + status)
|
||||||
if addressVersionNumber < 2 or addressVersionNumber > 3:
|
if addressVersionNumber < 2 or addressVersionNumber > 3:
|
||||||
return 'API Error 0011: The address version number currently must be 2 or 3. Others aren\'t supported.'
|
raise APIError(11, 'The address version number currently must be 2 or 3. Others aren\'t supported.')
|
||||||
if streamNumber != 1:
|
if streamNumber != 1:
|
||||||
return 'API Error 0012: The stream number must be 1. Others aren\'t supported.'
|
raise APIError(12, 'The stream number must be 1. Others aren\'t supported.')
|
||||||
# First we must check to see if the address is already in the
|
# First we must check to see if the address is already in the
|
||||||
# subscriptions list.
|
# subscriptions list.
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
|
@ -693,7 +709,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
queryreturn = shared.sqlReturnQueue.get()
|
queryreturn = shared.sqlReturnQueue.get()
|
||||||
shared.sqlLock.release()
|
shared.sqlLock.release()
|
||||||
if queryreturn != []:
|
if queryreturn != []:
|
||||||
return 'API Error 0016: You are already subscribed to that address.'
|
raise APIError(16, 'You are already subscribed to that address.')
|
||||||
t = (label, address, True)
|
t = (label, address, True)
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
shared.sqlSubmitQueue.put(
|
shared.sqlSubmitQueue.put(
|
||||||
|
@ -709,7 +725,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
|
|
||||||
elif method == 'deleteSubscription':
|
elif method == 'deleteSubscription':
|
||||||
if len(params) != 1:
|
if len(params) != 1:
|
||||||
return 'API Error 0000: I need 1 parameter!'
|
raise APIError(0, 'I need 1 parameter!')
|
||||||
address, = params
|
address, = params
|
||||||
address = addBMIfNotPresent(address)
|
address = addBMIfNotPresent(address)
|
||||||
t = (address,)
|
t = (address,)
|
||||||
|
@ -746,9 +762,9 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
# object and sends it out to the rest of the Bitmessage network as if it had generated the
|
# object and sends it out to the rest of the Bitmessage network as if it had generated the
|
||||||
# message itself. Please do not yet add this to the api doc.
|
# message itself. Please do not yet add this to the api doc.
|
||||||
if len(params) != 1:
|
if len(params) != 1:
|
||||||
return 'API Error 0000: I need 1 parameter!'
|
raise APIError(0, 'I need 1 parameter!')
|
||||||
encryptedPayload, = params
|
encryptedPayload, = params
|
||||||
encryptedPayload = encryptedPayload.decode('hex')
|
encryptedPayload = self._decode(encryptedPayload, "hex")
|
||||||
toStreamNumber = decodeVarint(encryptedPayload[16:26])[0]
|
toStreamNumber = decodeVarint(encryptedPayload[16:26])[0]
|
||||||
inventoryHash = calculateInventoryHash(encryptedPayload)
|
inventoryHash = calculateInventoryHash(encryptedPayload)
|
||||||
objectType = 'msg'
|
objectType = 'msg'
|
||||||
|
@ -765,9 +781,9 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
# rest of the Bitmessage network as if it had generated the pubkey object itself. Please
|
# rest of the Bitmessage network as if it had generated the pubkey object itself. Please
|
||||||
# do not yet add this to the api doc.
|
# do not yet add this to the api doc.
|
||||||
if len(params) != 1:
|
if len(params) != 1:
|
||||||
return 'API Error 0000: I need 1 parameter!'
|
raise APIError(0, 'I need 1 parameter!')
|
||||||
payload, = params
|
payload, = params
|
||||||
payload = payload.decode('hex')
|
payload = self._decode(payload, "hex")
|
||||||
pubkeyReadPosition = 8 # bypass the nonce
|
pubkeyReadPosition = 8 # bypass the nonce
|
||||||
if payload[pubkeyReadPosition:pubkeyReadPosition+4] == '\x00\x00\x00\x00': # if this pubkey uses 8 byte time
|
if payload[pubkeyReadPosition:pubkeyReadPosition+4] == '\x00\x00\x00\x00': # if this pubkey uses 8 byte time
|
||||||
pubkeyReadPosition += 8
|
pubkeyReadPosition += 8
|
||||||
|
@ -790,11 +806,11 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
# doc.
|
# doc.
|
||||||
|
|
||||||
if len(params) != 1:
|
if len(params) != 1:
|
||||||
return 'API Error 0000: I need 1 parameter!'
|
raise APIError(0, 'I need 1 parameter!')
|
||||||
requestedHash, = params
|
requestedHash, = params
|
||||||
if len(requestedHash) != 40:
|
if len(requestedHash) != 40:
|
||||||
return 'API Error 0019: The length of hash should be 20 bytes (encoded in hex thus 40 characters).'
|
raise APIError(19, 'The length of hash should be 20 bytes (encoded in hex thus 40 characters).')
|
||||||
requestedHash = requestedHash.decode('hex')
|
requestedHash = self._decode(requestedHash, "hex")
|
||||||
|
|
||||||
# This is not a particularly commonly used API function. Before we
|
# This is not a particularly commonly used API function. Before we
|
||||||
# use it we'll need to fill out a field in our inventory database
|
# use it we'll need to fill out a field in our inventory database
|
||||||
|
@ -832,11 +848,11 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
# Method will eventually be used by a particular Android app to
|
# Method will eventually be used by a particular Android app to
|
||||||
# retrieve pubkeys. Please do not yet add this to the api docs.
|
# retrieve pubkeys. Please do not yet add this to the api docs.
|
||||||
if len(params) != 1:
|
if len(params) != 1:
|
||||||
return 'API Error 0000: I need 1 parameter!'
|
raise APIError(0, 'I need 1 parameter!')
|
||||||
requestedHash, = params
|
requestedHash, = params
|
||||||
if len(requestedHash) != 40:
|
if len(requestedHash) != 40:
|
||||||
return 'API Error 0019: The length of hash should be 20 bytes (encoded in hex thus 40 characters).'
|
raise APIError(19, 'The length of hash should be 20 bytes (encoded in hex thus 40 characters).')
|
||||||
requestedHash = requestedHash.decode('hex')
|
requestedHash = self._decode(requestedHash, "hex")
|
||||||
parameters = (requestedHash,)
|
parameters = (requestedHash,)
|
||||||
with shared.sqlLock:
|
with shared.sqlLock:
|
||||||
shared.sqlSubmitQueue.put('''SELECT transmitdata FROM pubkeys WHERE hash = ? ; ''')
|
shared.sqlSubmitQueue.put('''SELECT transmitdata FROM pubkeys WHERE hash = ? ; ''')
|
||||||
|
@ -849,9 +865,31 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
data += ']}'
|
data += ']}'
|
||||||
return data
|
return data
|
||||||
elif method == 'clientStatus':
|
elif method == 'clientStatus':
|
||||||
return '{ "networkConnections" : "%s" }' % str(len(shared.connectedHostsList))
|
if len(shared.connectedHostsList) == 0:
|
||||||
|
networkStatus = 'notConnected'
|
||||||
|
elif len(shared.connectedHostsList) > 0 and not shared.clientHasReceivedIncomingConnections:
|
||||||
|
networkStatus = 'connectedButHaveNotReceivedIncomingConnections'
|
||||||
else:
|
else:
|
||||||
return 'API Error 0020: Invalid method: %s' % method
|
networkStatus = 'connectedAndReceivingIncomingConnections'
|
||||||
|
return json.dumps({'networkConnections':len(shared.connectedHostsList),'numberOfMessagesProcessed':shared.numberOfMessagesProcessed, 'numberOfBroadcastsProcessed':shared.numberOfBroadcastsProcessed, 'numberOfPubkeysProcessed':shared.numberOfPubkeysProcessed, 'networkStatus':networkStatus}, indent=4, separators=(',', ': '))
|
||||||
|
else:
|
||||||
|
raise APIError(20, 'Invalid method: %s' % method)
|
||||||
|
|
||||||
|
def _dispatch(self, method, params):
|
||||||
|
self.cookies = []
|
||||||
|
|
||||||
|
validuser = self.APIAuthenticateClient()
|
||||||
|
if not validuser:
|
||||||
|
time.sleep(2)
|
||||||
|
return "RPC Username or password incorrect or HTTP header lacks authentication at all."
|
||||||
|
|
||||||
|
try:
|
||||||
|
return self._handle_request(method, params)
|
||||||
|
except APIError as e:
|
||||||
|
return str(e)
|
||||||
|
except Exception as e:
|
||||||
|
logger.exception(e)
|
||||||
|
return "API Error 0021: Unexpected API Failure - %s" % str(e)
|
||||||
|
|
||||||
# This thread, of which there is only one, runs the API.
|
# This thread, of which there is only one, runs the API.
|
||||||
|
|
||||||
|
@ -878,7 +916,7 @@ if shared.useVeryEasyProofOfWorkForTesting:
|
||||||
shared.networkDefaultPayloadLengthExtraBytes / 7000)
|
shared.networkDefaultPayloadLengthExtraBytes / 7000)
|
||||||
|
|
||||||
class Main:
|
class Main:
|
||||||
def start(self, deamon=False):
|
def start(self, daemon=False):
|
||||||
# is the application already running? If yes then exit.
|
# is the application already running? If yes then exit.
|
||||||
thisapp = singleton.singleinstance()
|
thisapp = singleton.singleinstance()
|
||||||
|
|
||||||
|
@ -931,7 +969,7 @@ class Main:
|
||||||
singleListenerThread.daemon = True # close the main program even if there are threads left
|
singleListenerThread.daemon = True # close the main program even if there are threads left
|
||||||
singleListenerThread.start()
|
singleListenerThread.start()
|
||||||
|
|
||||||
if deamon == False and shared.safeConfigGetBoolean('bitmessagesettings', 'daemon') == False:
|
if daemon == False and shared.safeConfigGetBoolean('bitmessagesettings', 'daemon') == False:
|
||||||
try:
|
try:
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
@ -944,7 +982,7 @@ class Main:
|
||||||
else:
|
else:
|
||||||
shared.config.remove_option('bitmessagesettings', 'dontconnect')
|
shared.config.remove_option('bitmessagesettings', 'dontconnect')
|
||||||
|
|
||||||
if deamon:
|
if daemon:
|
||||||
with shared.printLock:
|
with shared.printLock:
|
||||||
print 'Running as a daemon. The main program should exit this thread.'
|
print 'Running as a daemon. The main program should exit this thread.'
|
||||||
else:
|
else:
|
||||||
|
@ -962,7 +1000,6 @@ class Main:
|
||||||
def getApiAddress(self):
|
def getApiAddress(self):
|
||||||
if not shared.safeConfigGetBoolean('bitmessagesettings', 'apienabled'):
|
if not shared.safeConfigGetBoolean('bitmessagesettings', 'apienabled'):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
address = shared.config.get('bitmessagesettings', 'apiinterface')
|
address = shared.config.get('bitmessagesettings', 'apiinterface')
|
||||||
port = shared.config.getint('bitmessagesettings', 'apiport')
|
port = shared.config.getint('bitmessagesettings', 'apiport')
|
||||||
return {'address':address,'port':port}
|
return {'address':address,'port':port}
|
||||||
|
|
|
@ -423,11 +423,11 @@ class MyForm(QtGui.QMainWindow):
|
||||||
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
||||||
"updateNetworkStatusTab()"), self.updateNetworkStatusTab)
|
"updateNetworkStatusTab()"), self.updateNetworkStatusTab)
|
||||||
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
||||||
"incrementNumberOfMessagesProcessed()"), self.incrementNumberOfMessagesProcessed)
|
"updateNumberOfMessagesProcessed()"), self.updateNumberOfMessagesProcessed)
|
||||||
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
||||||
"incrementNumberOfPubkeysProcessed()"), self.incrementNumberOfPubkeysProcessed)
|
"updateNumberOfPubkeysProcessed()"), self.updateNumberOfPubkeysProcessed)
|
||||||
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
||||||
"incrementNumberOfBroadcastsProcessed()"), self.incrementNumberOfBroadcastsProcessed)
|
"updateNumberOfBroadcastsProcessed()"), self.updateNumberOfBroadcastsProcessed)
|
||||||
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
||||||
"setStatusIcon(PyQt_PyObject)"), self.setStatusIcon)
|
"setStatusIcon(PyQt_PyObject)"), self.setStatusIcon)
|
||||||
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.UISignalThread, QtCore.SIGNAL(
|
||||||
|
@ -1078,12 +1078,22 @@ class MyForm(QtGui.QMainWindow):
|
||||||
if 'linux' in sys.platform:
|
if 'linux' in sys.platform:
|
||||||
# Note: QSound was a nice idea but it didn't work
|
# Note: QSound was a nice idea but it didn't work
|
||||||
if '.mp3' in soundFilename:
|
if '.mp3' in soundFilename:
|
||||||
|
gst_available=False
|
||||||
try:
|
try:
|
||||||
subprocess.call(["gst123", soundFilename],
|
subprocess.call(["gst123", soundFilename],
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
|
gst_available=True
|
||||||
except:
|
except:
|
||||||
print "WARNING: gst123 must be installed in order to play mp3 sounds"
|
print "WARNING: gst123 must be installed in order to play mp3 sounds"
|
||||||
|
if not gst_available:
|
||||||
|
try:
|
||||||
|
subprocess.call(["mpg123", soundFilename],
|
||||||
|
stdin=subprocess.PIPE,
|
||||||
|
stdout=subprocess.PIPE)
|
||||||
|
gst_available=True
|
||||||
|
except:
|
||||||
|
print "WARNING: mpg123 must be installed in order to play mp3 sounds"
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
subprocess.call(["aplay", soundFilename],
|
subprocess.call(["aplay", soundFilename],
|
||||||
|
@ -1266,20 +1276,17 @@ class MyForm(QtGui.QMainWindow):
|
||||||
self.actionShow.setChecked(not self.actionShow.isChecked())
|
self.actionShow.setChecked(not self.actionShow.isChecked())
|
||||||
self.appIndicatorShowOrHideWindow()
|
self.appIndicatorShowOrHideWindow()
|
||||||
|
|
||||||
def incrementNumberOfMessagesProcessed(self):
|
def updateNumberOfMessagesProcessed(self):
|
||||||
self.numberOfMessagesProcessed += 1
|
|
||||||
self.ui.labelMessageCount.setText(_translate(
|
self.ui.labelMessageCount.setText(_translate(
|
||||||
"MainWindow", "Processed %1 person-to-person messages.").arg(str(self.numberOfMessagesProcessed)))
|
"MainWindow", "Processed %1 person-to-person messages.").arg(str(shared.numberOfMessagesProcessed)))
|
||||||
|
|
||||||
def incrementNumberOfBroadcastsProcessed(self):
|
def updateNumberOfBroadcastsProcessed(self):
|
||||||
self.numberOfBroadcastsProcessed += 1
|
|
||||||
self.ui.labelBroadcastCount.setText(_translate(
|
self.ui.labelBroadcastCount.setText(_translate(
|
||||||
"MainWindow", "Processed %1 broadcast messages.").arg(str(self.numberOfBroadcastsProcessed)))
|
"MainWindow", "Processed %1 broadcast messages.").arg(str(shared.numberOfBroadcastsProcessed)))
|
||||||
|
|
||||||
def incrementNumberOfPubkeysProcessed(self):
|
def updateNumberOfPubkeysProcessed(self):
|
||||||
self.numberOfPubkeysProcessed += 1
|
|
||||||
self.ui.labelPubkeyCount.setText(_translate(
|
self.ui.labelPubkeyCount.setText(_translate(
|
||||||
"MainWindow", "Processed %1 public keys.").arg(str(self.numberOfPubkeysProcessed)))
|
"MainWindow", "Processed %1 public keys.").arg(str(shared.numberOfPubkeysProcessed)))
|
||||||
|
|
||||||
def updateNetworkStatusTab(self):
|
def updateNetworkStatusTab(self):
|
||||||
# print 'updating network status tab'
|
# print 'updating network status tab'
|
||||||
|
@ -2053,14 +2060,19 @@ class MyForm(QtGui.QMainWindow):
|
||||||
"MainWindow", "You must restart Bitmessage for the port number change to take effect."))
|
"MainWindow", "You must restart Bitmessage for the port number change to take effect."))
|
||||||
shared.config.set('bitmessagesettings', 'port', str(
|
shared.config.set('bitmessagesettings', 'port', str(
|
||||||
self.settingsDialogInstance.ui.lineEditTCPPort.text()))
|
self.settingsDialogInstance.ui.lineEditTCPPort.text()))
|
||||||
if shared.config.get('bitmessagesettings', 'socksproxytype') == 'none' and str(self.settingsDialogInstance.ui.comboBoxProxyType.currentText())[0:5] == 'SOCKS':
|
#print 'self.settingsDialogInstance.ui.comboBoxProxyType.currentText()', self.settingsDialogInstance.ui.comboBoxProxyType.currentText()
|
||||||
|
#print 'self.settingsDialogInstance.ui.comboBoxProxyType.currentText())[0:5]', self.settingsDialogInstance.ui.comboBoxProxyType.currentText()[0:5]
|
||||||
|
if shared.config.get('bitmessagesettings', 'socksproxytype') == 'none' and self.settingsDialogInstance.ui.comboBoxProxyType.currentText()[0:5] == 'SOCKS':
|
||||||
if shared.statusIconColor != 'red':
|
if shared.statusIconColor != 'red':
|
||||||
QMessageBox.about(self, _translate("MainWindow", "Restart"), _translate(
|
QMessageBox.about(self, _translate("MainWindow", "Restart"), _translate(
|
||||||
"MainWindow", "Bitmessage will use your proxy from now on but you may want to manually restart Bitmessage now to close existing connections (if any)."))
|
"MainWindow", "Bitmessage will use your proxy from now on but you may want to manually restart Bitmessage now to close existing connections (if any)."))
|
||||||
if shared.config.get('bitmessagesettings', 'socksproxytype')[0:5] == 'SOCKS' and str(self.settingsDialogInstance.ui.comboBoxProxyType.currentText()) == 'none':
|
if shared.config.get('bitmessagesettings', 'socksproxytype')[0:5] == 'SOCKS' and self.settingsDialogInstance.ui.comboBoxProxyType.currentText()[0:5] != 'SOCKS':
|
||||||
self.statusBar().showMessage('')
|
self.statusBar().showMessage('')
|
||||||
|
if self.settingsDialogInstance.ui.comboBoxProxyType.currentText()[0:5] == 'SOCKS':
|
||||||
shared.config.set('bitmessagesettings', 'socksproxytype', str(
|
shared.config.set('bitmessagesettings', 'socksproxytype', str(
|
||||||
self.settingsDialogInstance.ui.comboBoxProxyType.currentText()))
|
self.settingsDialogInstance.ui.comboBoxProxyType.currentText()))
|
||||||
|
else:
|
||||||
|
shared.config.set('bitmessagesettings', 'socksproxytype', 'none')
|
||||||
shared.config.set('bitmessagesettings', 'socksauthentication', str(
|
shared.config.set('bitmessagesettings', 'socksauthentication', str(
|
||||||
self.settingsDialogInstance.ui.checkBoxAuthentication.isChecked()))
|
self.settingsDialogInstance.ui.checkBoxAuthentication.isChecked()))
|
||||||
shared.config.set('bitmessagesettings', 'sockshostname', str(
|
shared.config.set('bitmessagesettings', 'sockshostname', str(
|
||||||
|
@ -3354,16 +3366,13 @@ class myTableWidgetItem(QTableWidgetItem):
|
||||||
def __lt__(self, other):
|
def __lt__(self, other):
|
||||||
return int(self.data(33).toPyObject()) < int(other.data(33).toPyObject())
|
return int(self.data(33).toPyObject()) < int(other.data(33).toPyObject())
|
||||||
|
|
||||||
from threading import Thread
|
class UISignaler(QThread):
|
||||||
class UISignaler(Thread,QThread):
|
|
||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
Thread.__init__(self, parent)
|
|
||||||
QThread.__init__(self, parent)
|
QThread.__init__(self, parent)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
try:
|
|
||||||
command, data = shared.UISignalQueue.get()
|
command, data = shared.UISignalQueue.get()
|
||||||
if command == 'writeNewAddressToTable':
|
if command == 'writeNewAddressToTable':
|
||||||
label, address, streamNumber = data
|
label, address, streamNumber = data
|
||||||
|
@ -3391,12 +3400,12 @@ class UISignaler(Thread,QThread):
|
||||||
toAddress, fromLabel, fromAddress, subject, message, ackdata)
|
toAddress, fromLabel, fromAddress, subject, message, ackdata)
|
||||||
elif command == 'updateNetworkStatusTab':
|
elif command == 'updateNetworkStatusTab':
|
||||||
self.emit(SIGNAL("updateNetworkStatusTab()"))
|
self.emit(SIGNAL("updateNetworkStatusTab()"))
|
||||||
elif command == 'incrementNumberOfMessagesProcessed':
|
elif command == 'updateNumberOfMessagesProcessed':
|
||||||
self.emit(SIGNAL("incrementNumberOfMessagesProcessed()"))
|
self.emit(SIGNAL("updateNumberOfMessagesProcessed()"))
|
||||||
elif command == 'incrementNumberOfPubkeysProcessed':
|
elif command == 'updateNumberOfPubkeysProcessed':
|
||||||
self.emit(SIGNAL("incrementNumberOfPubkeysProcessed()"))
|
self.emit(SIGNAL("updateNumberOfPubkeysProcessed()"))
|
||||||
elif command == 'incrementNumberOfBroadcastsProcessed':
|
elif command == 'updateNumberOfBroadcastsProcessed':
|
||||||
self.emit(SIGNAL("incrementNumberOfBroadcastsProcessed()"))
|
self.emit(SIGNAL("updateNumberOfBroadcastsProcessed()"))
|
||||||
elif command == 'setStatusIcon':
|
elif command == 'setStatusIcon':
|
||||||
self.emit(SIGNAL("setStatusIcon(PyQt_PyObject)"), data)
|
self.emit(SIGNAL("setStatusIcon(PyQt_PyObject)"), data)
|
||||||
elif command == 'rerenderInboxFromLabels':
|
elif command == 'rerenderInboxFromLabels':
|
||||||
|
@ -3408,32 +3417,16 @@ class UISignaler(Thread,QThread):
|
||||||
else:
|
else:
|
||||||
sys.stderr.write(
|
sys.stderr.write(
|
||||||
'Command sent to UISignaler not recognized: %s\n' % command)
|
'Command sent to UISignaler not recognized: %s\n' % command)
|
||||||
except Exception,ex:
|
|
||||||
# uncaught exception will block gevent
|
|
||||||
import traceback
|
|
||||||
traceback.print_exc()
|
|
||||||
traceback.print_stack()
|
|
||||||
print ex
|
|
||||||
pass
|
|
||||||
|
|
||||||
try:
|
|
||||||
import gevent
|
|
||||||
except ImportError as ex:
|
|
||||||
gevent = None
|
|
||||||
else:
|
|
||||||
def mainloop(app):
|
|
||||||
while True:
|
|
||||||
app.processEvents()
|
|
||||||
gevent.sleep(0.01)
|
|
||||||
def testprint():
|
|
||||||
#print 'this is running'
|
|
||||||
gevent.spawn_later(1, testprint)
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
app = QtGui.QApplication(sys.argv)
|
app = QtGui.QApplication(sys.argv)
|
||||||
translator = QtCore.QTranslator()
|
translator = QtCore.QTranslator()
|
||||||
|
|
||||||
|
try:
|
||||||
locale_countrycode = str(locale.getdefaultlocale()[0])
|
locale_countrycode = str(locale.getdefaultlocale()[0])
|
||||||
|
except:
|
||||||
|
# The above is not compatible with all versions of OSX.
|
||||||
|
locale_countrycode = "en_US" # Default to english.
|
||||||
locale_lang = locale_countrycode[0:2]
|
locale_lang = locale_countrycode[0:2]
|
||||||
user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale'))
|
user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale'))
|
||||||
user_lang = user_countrycode[0:2]
|
user_lang = user_countrycode[0:2]
|
||||||
|
@ -3485,8 +3478,4 @@ def run():
|
||||||
myapp.notifierInit()
|
myapp.notifierInit()
|
||||||
if shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):
|
if shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):
|
||||||
myapp.showConnectDialog() # ask the user if we may connect
|
myapp.showConnectDialog() # ask the user if we may connect
|
||||||
if gevent is None:
|
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec_())
|
||||||
else:
|
|
||||||
gevent.joinall([gevent.spawn(testprint), gevent.spawn(mainloop, app), gevent.spawn(mainloop, app), gevent.spawn(mainloop, app), gevent.spawn(mainloop, app), gevent.spawn(mainloop, app)])
|
|
||||||
print 'done'
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Form implementation generated from reading ui file 'bitmessageui.ui'
|
# Form implementation generated from reading ui file 'bitmessageui.ui'
|
||||||
#
|
#
|
||||||
# Created: Thu Aug 29 14:14:15 2013
|
# Created: Thu Aug 29 15:35:38 2013
|
||||||
# by: PyQt4 UI code generator 4.10.2
|
# by: PyQt4 UI code generator 4.10.2
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
@ -26,7 +26,7 @@ except AttributeError:
|
||||||
class Ui_MainWindow(object):
|
class Ui_MainWindow(object):
|
||||||
def setupUi(self, MainWindow):
|
def setupUi(self, MainWindow):
|
||||||
MainWindow.setObjectName(_fromUtf8("MainWindow"))
|
MainWindow.setObjectName(_fromUtf8("MainWindow"))
|
||||||
MainWindow.resize(810, 580)
|
MainWindow.resize(795, 580)
|
||||||
icon = QtGui.QIcon()
|
icon = QtGui.QIcon()
|
||||||
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/can-icon-24px.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/can-icon-24px.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
MainWindow.setWindowIcon(icon)
|
MainWindow.setWindowIcon(icon)
|
||||||
|
@ -69,7 +69,11 @@ class Ui_MainWindow(object):
|
||||||
self.inboxSearchOptionCB.addItem(_fromUtf8(""))
|
self.inboxSearchOptionCB.addItem(_fromUtf8(""))
|
||||||
self.horizontalLayoutSearch.addWidget(self.inboxSearchOptionCB)
|
self.horizontalLayoutSearch.addWidget(self.inboxSearchOptionCB)
|
||||||
self.verticalLayout_2.addLayout(self.horizontalLayoutSearch)
|
self.verticalLayout_2.addLayout(self.horizontalLayoutSearch)
|
||||||
self.tableWidgetInbox = QtGui.QTableWidget(self.inbox)
|
self.splitter = QtGui.QSplitter(self.inbox)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Vertical)
|
||||||
|
self.splitter.setObjectName(_fromUtf8("splitter"))
|
||||||
|
self.tableWidgetInbox = QtGui.QTableWidget(self.splitter)
|
||||||
|
self.tableWidgetInbox.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
||||||
self.tableWidgetInbox.setAlternatingRowColors(True)
|
self.tableWidgetInbox.setAlternatingRowColors(True)
|
||||||
self.tableWidgetInbox.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
self.tableWidgetInbox.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
||||||
self.tableWidgetInbox.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
self.tableWidgetInbox.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
||||||
|
@ -93,11 +97,11 @@ class Ui_MainWindow(object):
|
||||||
self.tableWidgetInbox.horizontalHeader().setStretchLastSection(True)
|
self.tableWidgetInbox.horizontalHeader().setStretchLastSection(True)
|
||||||
self.tableWidgetInbox.verticalHeader().setVisible(False)
|
self.tableWidgetInbox.verticalHeader().setVisible(False)
|
||||||
self.tableWidgetInbox.verticalHeader().setDefaultSectionSize(26)
|
self.tableWidgetInbox.verticalHeader().setDefaultSectionSize(26)
|
||||||
self.verticalLayout_2.addWidget(self.tableWidgetInbox)
|
self.textEditInboxMessage = QtGui.QTextEdit(self.splitter)
|
||||||
self.textEditInboxMessage = QtGui.QTextEdit(self.inbox)
|
|
||||||
self.textEditInboxMessage.setBaseSize(QtCore.QSize(0, 500))
|
self.textEditInboxMessage.setBaseSize(QtCore.QSize(0, 500))
|
||||||
|
self.textEditInboxMessage.setReadOnly(True)
|
||||||
self.textEditInboxMessage.setObjectName(_fromUtf8("textEditInboxMessage"))
|
self.textEditInboxMessage.setObjectName(_fromUtf8("textEditInboxMessage"))
|
||||||
self.verticalLayout_2.addWidget(self.textEditInboxMessage)
|
self.verticalLayout_2.addWidget(self.splitter)
|
||||||
icon1 = QtGui.QIcon()
|
icon1 = QtGui.QIcon()
|
||||||
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/inbox.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/inbox.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.tabWidget.addTab(self.inbox, icon1, _fromUtf8(""))
|
self.tabWidget.addTab(self.inbox, icon1, _fromUtf8(""))
|
||||||
|
@ -159,7 +163,7 @@ class Ui_MainWindow(object):
|
||||||
spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
||||||
self.gridLayout_2.addItem(spacerItem1, 3, 4, 1, 1)
|
self.gridLayout_2.addItem(spacerItem1, 3, 4, 1, 1)
|
||||||
self.pushButtonSend = QtGui.QPushButton(self.send)
|
self.pushButtonSend = QtGui.QPushButton(self.send)
|
||||||
self.pushButtonSend.setEnabled(False)
|
self.pushButtonSend.setEnabled(True)
|
||||||
self.pushButtonSend.setObjectName(_fromUtf8("pushButtonSend"))
|
self.pushButtonSend.setObjectName(_fromUtf8("pushButtonSend"))
|
||||||
self.gridLayout_2.addWidget(self.pushButtonSend, 7, 6, 1, 1)
|
self.gridLayout_2.addWidget(self.pushButtonSend, 7, 6, 1, 1)
|
||||||
self.labelSendBroadcastWarning = QtGui.QLabel(self.send)
|
self.labelSendBroadcastWarning = QtGui.QLabel(self.send)
|
||||||
|
@ -199,7 +203,11 @@ class Ui_MainWindow(object):
|
||||||
self.sentSearchOptionCB.addItem(_fromUtf8(""))
|
self.sentSearchOptionCB.addItem(_fromUtf8(""))
|
||||||
self.horizontalLayout.addWidget(self.sentSearchOptionCB)
|
self.horizontalLayout.addWidget(self.sentSearchOptionCB)
|
||||||
self.verticalLayout.addLayout(self.horizontalLayout)
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||||
self.tableWidgetSent = QtGui.QTableWidget(self.sent)
|
self.splitter_2 = QtGui.QSplitter(self.sent)
|
||||||
|
self.splitter_2.setOrientation(QtCore.Qt.Vertical)
|
||||||
|
self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
|
||||||
|
self.tableWidgetSent = QtGui.QTableWidget(self.splitter_2)
|
||||||
|
self.tableWidgetSent.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
||||||
self.tableWidgetSent.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
|
self.tableWidgetSent.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
|
||||||
self.tableWidgetSent.setAlternatingRowColors(True)
|
self.tableWidgetSent.setAlternatingRowColors(True)
|
||||||
self.tableWidgetSent.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
self.tableWidgetSent.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
||||||
|
@ -223,10 +231,10 @@ class Ui_MainWindow(object):
|
||||||
self.tableWidgetSent.horizontalHeader().setStretchLastSection(True)
|
self.tableWidgetSent.horizontalHeader().setStretchLastSection(True)
|
||||||
self.tableWidgetSent.verticalHeader().setVisible(False)
|
self.tableWidgetSent.verticalHeader().setVisible(False)
|
||||||
self.tableWidgetSent.verticalHeader().setStretchLastSection(False)
|
self.tableWidgetSent.verticalHeader().setStretchLastSection(False)
|
||||||
self.verticalLayout.addWidget(self.tableWidgetSent)
|
self.textEditSentMessage = QtGui.QTextEdit(self.splitter_2)
|
||||||
self.textEditSentMessage = QtGui.QTextEdit(self.sent)
|
self.textEditSentMessage.setReadOnly(True)
|
||||||
self.textEditSentMessage.setObjectName(_fromUtf8("textEditSentMessage"))
|
self.textEditSentMessage.setObjectName(_fromUtf8("textEditSentMessage"))
|
||||||
self.verticalLayout.addWidget(self.textEditSentMessage)
|
self.verticalLayout.addWidget(self.splitter_2)
|
||||||
icon3 = QtGui.QIcon()
|
icon3 = QtGui.QIcon()
|
||||||
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/sent.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/sent.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.tabWidget.addTab(self.sent, icon3, _fromUtf8(""))
|
self.tabWidget.addTab(self.sent, icon3, _fromUtf8(""))
|
||||||
|
@ -434,7 +442,7 @@ class Ui_MainWindow(object):
|
||||||
self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
|
self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
|
||||||
MainWindow.setCentralWidget(self.centralwidget)
|
MainWindow.setCentralWidget(self.centralwidget)
|
||||||
self.menubar = QtGui.QMenuBar(MainWindow)
|
self.menubar = QtGui.QMenuBar(MainWindow)
|
||||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 810, 18))
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 795, 23))
|
||||||
self.menubar.setObjectName(_fromUtf8("menubar"))
|
self.menubar.setObjectName(_fromUtf8("menubar"))
|
||||||
self.menuFile = QtGui.QMenu(self.menubar)
|
self.menuFile = QtGui.QMenu(self.menubar)
|
||||||
self.menuFile.setObjectName(_fromUtf8("menuFile"))
|
self.menuFile.setObjectName(_fromUtf8("menuFile"))
|
||||||
|
@ -552,8 +560,8 @@ class Ui_MainWindow(object):
|
||||||
self.textEditMessage.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
self.textEditMessage.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
||||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", None))
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\';\"><br /></p></body></html>", None))
|
||||||
self.label.setText(_translate("MainWindow", "To:", None))
|
self.label.setText(_translate("MainWindow", "To:", None))
|
||||||
self.label_2.setText(_translate("MainWindow", "From:", None))
|
self.label_2.setText(_translate("MainWindow", "From:", None))
|
||||||
self.radioButtonBroadcast.setText(_translate("MainWindow", "Broadcast to everyone who is subscribed to your address", None))
|
self.radioButtonBroadcast.setText(_translate("MainWindow", "Broadcast to everyone who is subscribed to your address", None))
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>810</width>
|
<width>795</width>
|
||||||
<height>580</height>
|
<height>580</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -22,7 +22,16 @@
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<property name="margin">
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
|
@ -112,7 +121,14 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
<widget class="QSplitter" name="splitter">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
<widget class="QTableWidget" name="tableWidgetInbox">
|
<widget class="QTableWidget" name="tableWidgetInbox">
|
||||||
|
<property name="editTriggers">
|
||||||
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||||||
|
</property>
|
||||||
<property name="alternatingRowColors">
|
<property name="alternatingRowColors">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
@ -173,8 +189,6 @@
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QTextEdit" name="textEditInboxMessage">
|
<widget class="QTextEdit" name="textEditInboxMessage">
|
||||||
<property name="baseSize">
|
<property name="baseSize">
|
||||||
<size>
|
<size>
|
||||||
|
@ -182,6 +196,10 @@
|
||||||
<height>500</height>
|
<height>500</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -269,8 +287,8 @@
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:9pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2';"><br /></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -425,7 +443,14 @@ p, li { white-space: pre-wrap; }
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
<widget class="QSplitter" name="splitter_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
<widget class="QTableWidget" name="tableWidgetSent">
|
<widget class="QTableWidget" name="tableWidgetSent">
|
||||||
|
<property name="editTriggers">
|
||||||
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||||||
|
</property>
|
||||||
<property name="dragDropMode">
|
<property name="dragDropMode">
|
||||||
<enum>QAbstractItemView::DragDrop</enum>
|
<enum>QAbstractItemView::DragDrop</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -486,9 +511,12 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
<widget class="QTextEdit" name="textEditSentMessage">
|
||||||
<item>
|
<property name="readOnly">
|
||||||
<widget class="QTextEdit" name="textEditSentMessage"/>
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -1038,8 +1066,8 @@ p, li { white-space: pre-wrap; }
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>810</width>
|
<width>795</width>
|
||||||
<height>18</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Form implementation generated from reading ui file 'settings.ui'
|
# Form implementation generated from reading ui file 'settings.ui'
|
||||||
#
|
#
|
||||||
# Created: Thu Aug 29 14:40:14 2013
|
# Created: Thu Aug 29 15:35:40 2013
|
||||||
# by: PyQt4 UI code generator 4.10.2
|
# by: PyQt4 UI code generator 4.10.2
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
@ -71,6 +71,7 @@ class Ui_settingsDialog(object):
|
||||||
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox)
|
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox)
|
||||||
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
||||||
self.languageComboBox = QtGui.QComboBox(self.groupBox)
|
self.languageComboBox = QtGui.QComboBox(self.groupBox)
|
||||||
|
self.languageComboBox.setMinimumSize(QtCore.QSize(100, 0))
|
||||||
self.languageComboBox.setObjectName(_fromUtf8("languageComboBox"))
|
self.languageComboBox.setObjectName(_fromUtf8("languageComboBox"))
|
||||||
self.languageComboBox.addItem(_fromUtf8(""))
|
self.languageComboBox.addItem(_fromUtf8(""))
|
||||||
self.languageComboBox.addItem(_fromUtf8(""))
|
self.languageComboBox.addItem(_fromUtf8(""))
|
||||||
|
@ -350,10 +351,10 @@ class Ui_settingsDialog(object):
|
||||||
self.languageComboBox.setItemText(0, _translate("settingsDialog", "System Settings", "system"))
|
self.languageComboBox.setItemText(0, _translate("settingsDialog", "System Settings", "system"))
|
||||||
self.languageComboBox.setItemText(1, _translate("settingsDialog", "English", "en"))
|
self.languageComboBox.setItemText(1, _translate("settingsDialog", "English", "en"))
|
||||||
self.languageComboBox.setItemText(2, _translate("settingsDialog", "Esperanto", "eo"))
|
self.languageComboBox.setItemText(2, _translate("settingsDialog", "Esperanto", "eo"))
|
||||||
self.languageComboBox.setItemText(3, _translate("settingsDialog", "French", "fr"))
|
self.languageComboBox.setItemText(3, _translate("settingsDialog", "Français", "fr"))
|
||||||
self.languageComboBox.setItemText(4, _translate("settingsDialog", "German", "de"))
|
self.languageComboBox.setItemText(4, _translate("settingsDialog", "Deutsch", "de"))
|
||||||
self.languageComboBox.setItemText(5, _translate("settingsDialog", "Spanish", "es"))
|
self.languageComboBox.setItemText(5, _translate("settingsDialog", "Español", "es"))
|
||||||
self.languageComboBox.setItemText(6, _translate("settingsDialog", "Russian", "ru"))
|
self.languageComboBox.setItemText(6, _translate("settingsDialog", "Русский", "ru"))
|
||||||
self.languageComboBox.setItemText(7, _translate("settingsDialog", "Pirate English", "en_pirate"))
|
self.languageComboBox.setItemText(7, _translate("settingsDialog", "Pirate English", "en_pirate"))
|
||||||
self.languageComboBox.setItemText(8, _translate("settingsDialog", "Other (set in keys.dat)", "other"))
|
self.languageComboBox.setItemText(8, _translate("settingsDialog", "Other (set in keys.dat)", "other"))
|
||||||
self.checkBoxRemoveBeforeSendSetting.setText(_translate("settingsDialog", "Add safety badge that needs to be removed before sending messages", None))
|
self.checkBoxRemoveBeforeSendSetting.setText(_translate("settingsDialog", "Add safety badge that needs to be removed before sending messages", None))
|
||||||
|
|
|
@ -113,6 +113,12 @@
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="languageComboBox">
|
<widget class="QComboBox" name="languageComboBox">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string comment="system">System Settings</string>
|
<string comment="system">System Settings</string>
|
||||||
|
@ -130,22 +136,22 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string comment="fr">French</string>
|
<string comment="fr">Français</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string comment="de">German</string>
|
<string comment="de">Deutsch</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string comment="es">Spanish</string>
|
<string comment="es">Español</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string comment="ru">Russian</string>
|
<string comment="ru">Русский</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -9,8 +9,11 @@ setup(
|
||||||
version = version,
|
version = version,
|
||||||
app = mainscript,
|
app = mainscript,
|
||||||
setup_requires = ["py2app"],
|
setup_requires = ["py2app"],
|
||||||
options = dict(py2app=dict(
|
options = dict(
|
||||||
|
py2app = dict(
|
||||||
resources = ["images"],
|
resources = ["images"],
|
||||||
|
includes = ['sip', 'PyQt4._qt'],
|
||||||
iconfile = "images/bitmessage.icns"
|
iconfile = "images/bitmessage.icns"
|
||||||
))
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
#! /usr/bin/python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# cody by linker.lin@me.com
|
|
||||||
|
|
||||||
__author__ = 'linkerlin'
|
|
||||||
|
|
||||||
|
|
||||||
import threading
|
|
||||||
import Queue
|
|
||||||
import time
|
|
||||||
|
|
||||||
class bgWorker(threading.Thread):
|
|
||||||
def __init__(self):
|
|
||||||
threading.Thread.__init__(self)
|
|
||||||
self.q = Queue.Queue()
|
|
||||||
self.setDaemon(True)
|
|
||||||
|
|
||||||
def post(self,job):
|
|
||||||
self.q.put(job)
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
while 1:
|
|
||||||
job=None
|
|
||||||
try:
|
|
||||||
job = self.q.get(block=True)
|
|
||||||
if job:
|
|
||||||
job()
|
|
||||||
except Exception as ex:
|
|
||||||
print "Error,job exception:",ex.message,type(ex)
|
|
||||||
time.sleep(0.05)
|
|
||||||
else:
|
|
||||||
#print "job: ", job, " done"
|
|
||||||
pass
|
|
||||||
finally:
|
|
||||||
time.sleep(0.05)
|
|
||||||
|
|
||||||
bgworker = bgWorker()
|
|
||||||
bgworker.start()
|
|
|
@ -25,7 +25,7 @@ class outgoingSynSender(threading.Thread):
|
||||||
def run(self):
|
def run(self):
|
||||||
while shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):
|
while shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
while True:
|
while shared.safeConfigGetBoolean('bitmessagesettings', 'sendoutgoingconnections'):
|
||||||
while len(self.selfInitiatedConnections[self.streamNumber]) >= 8: # maximum number of outgoing connections = 8
|
while len(self.selfInitiatedConnections[self.streamNumber]) >= 8: # maximum number of outgoing connections = 8
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
if shared.shutdown:
|
if shared.shutdown:
|
||||||
|
|
|
@ -256,6 +256,7 @@ class receiveDataThread(threading.Thread):
|
||||||
def connectionFullyEstablished(self):
|
def connectionFullyEstablished(self):
|
||||||
self.connectionIsOrWasFullyEstablished = True
|
self.connectionIsOrWasFullyEstablished = True
|
||||||
if not self.initiatedConnection:
|
if not self.initiatedConnection:
|
||||||
|
shared.clientHasReceivedIncomingConnections = True
|
||||||
shared.UISignalQueue.put(('setStatusIcon', 'green'))
|
shared.UISignalQueue.put(('setStatusIcon', 'green'))
|
||||||
self.sock.settimeout(
|
self.sock.settimeout(
|
||||||
600) # We'll send out a pong every 5 minutes to make sure the connection stays alive if there has been no other traffic to send lately.
|
600) # We'll send out a pong every 5 minutes to make sure the connection stays alive if there has been no other traffic to send lately.
|
||||||
|
@ -392,8 +393,9 @@ class receiveDataThread(threading.Thread):
|
||||||
objectType, self.streamNumber, data, embeddedTime)
|
objectType, self.streamNumber, data, embeddedTime)
|
||||||
shared.inventoryLock.release()
|
shared.inventoryLock.release()
|
||||||
self.broadcastinv(self.inventoryHash)
|
self.broadcastinv(self.inventoryHash)
|
||||||
|
shared.numberOfBroadcastsProcessed += 1
|
||||||
shared.UISignalQueue.put((
|
shared.UISignalQueue.put((
|
||||||
'incrementNumberOfBroadcastsProcessed', 'no data'))
|
'updateNumberOfBroadcastsProcessed', 'no data'))
|
||||||
|
|
||||||
self.processbroadcast(
|
self.processbroadcast(
|
||||||
readPosition, data) # When this function returns, we will have either successfully processed this broadcast because we are interested in it, ignored it because we aren't interested in it, or found problem with the broadcast that warranted ignoring it.
|
readPosition, data) # When this function returns, we will have either successfully processed this broadcast because we are interested in it, ignored it because we aren't interested in it, or found problem with the broadcast that warranted ignoring it.
|
||||||
|
@ -760,8 +762,9 @@ class receiveDataThread(threading.Thread):
|
||||||
objectType, self.streamNumber, data, embeddedTime)
|
objectType, self.streamNumber, data, embeddedTime)
|
||||||
shared.inventoryLock.release()
|
shared.inventoryLock.release()
|
||||||
self.broadcastinv(self.inventoryHash)
|
self.broadcastinv(self.inventoryHash)
|
||||||
|
shared.numberOfMessagesProcessed += 1
|
||||||
shared.UISignalQueue.put((
|
shared.UISignalQueue.put((
|
||||||
'incrementNumberOfMessagesProcessed', 'no data'))
|
'updateNumberOfMessagesProcessed', 'no data'))
|
||||||
|
|
||||||
self.processmsg(
|
self.processmsg(
|
||||||
readPosition, data) # When this function returns, we will have either successfully processed the message bound for us, ignored it because it isn't bound for us, or found problem with the message that warranted ignoring it.
|
readPosition, data) # When this function returns, we will have either successfully processed the message bound for us, ignored it because it isn't bound for us, or found problem with the message that warranted ignoring it.
|
||||||
|
@ -1178,8 +1181,9 @@ class receiveDataThread(threading.Thread):
|
||||||
objectType, self.streamNumber, data, embeddedTime)
|
objectType, self.streamNumber, data, embeddedTime)
|
||||||
shared.inventoryLock.release()
|
shared.inventoryLock.release()
|
||||||
self.broadcastinv(inventoryHash)
|
self.broadcastinv(inventoryHash)
|
||||||
|
shared.numberOfPubkeysProcessed += 1
|
||||||
shared.UISignalQueue.put((
|
shared.UISignalQueue.put((
|
||||||
'incrementNumberOfPubkeysProcessed', 'no data'))
|
'updateNumberOfPubkeysProcessed', 'no data'))
|
||||||
|
|
||||||
self.processpubkey(data)
|
self.processpubkey(data)
|
||||||
|
|
||||||
|
@ -1216,7 +1220,7 @@ class receiveDataThread(threading.Thread):
|
||||||
if addressVersion == 0:
|
if addressVersion == 0:
|
||||||
print '(Within processpubkey) addressVersion of 0 doesn\'t make sense.'
|
print '(Within processpubkey) addressVersion of 0 doesn\'t make sense.'
|
||||||
return
|
return
|
||||||
if addressVersion >= 4 or addressVersion == 1:
|
if addressVersion > 3 or addressVersion == 1:
|
||||||
with shared.printLock:
|
with shared.printLock:
|
||||||
print 'This version of Bitmessage cannot handle version', addressVersion, 'addresses.'
|
print 'This version of Bitmessage cannot handle version', addressVersion, 'addresses.'
|
||||||
|
|
||||||
|
|
|
@ -535,6 +535,8 @@ class singleWorker(threading.Thread):
|
||||||
pubEncryptionKeyBase256 = pubkeyPayload[
|
pubEncryptionKeyBase256 = pubkeyPayload[
|
||||||
readPosition:readPosition + 64]
|
readPosition:readPosition + 64]
|
||||||
readPosition += 64
|
readPosition += 64
|
||||||
|
|
||||||
|
# Let us fetch the amount of work required by the recipient.
|
||||||
if toAddressVersionNumber == 2:
|
if toAddressVersionNumber == 2:
|
||||||
requiredAverageProofOfWorkNonceTrialsPerByte = shared.networkDefaultProofOfWorkNonceTrialsPerByte
|
requiredAverageProofOfWorkNonceTrialsPerByte = shared.networkDefaultProofOfWorkNonceTrialsPerByte
|
||||||
requiredPayloadLengthExtraBytes = shared.networkDefaultPayloadLengthExtraBytes
|
requiredPayloadLengthExtraBytes = shared.networkDefaultPayloadLengthExtraBytes
|
||||||
|
@ -569,6 +571,7 @@ class singleWorker(threading.Thread):
|
||||||
requiredPayloadLengthExtraBytes) / shared.networkDefaultPayloadLengthExtraBytes)).arg(unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'), localtime(int(time.time()))), 'utf-8')))))
|
requiredPayloadLengthExtraBytes) / shared.networkDefaultPayloadLengthExtraBytes)).arg(unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'), localtime(int(time.time()))), 'utf-8')))))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
embeddedTime = pack('>Q', (int(time.time()) + random.randrange(
|
embeddedTime = pack('>Q', (int(time.time()) + random.randrange(
|
||||||
-300, 300))) # the current time plus or minus five minutes. We will use this time both for our message and for the ackdata packed within our message.
|
-300, 300))) # the current time plus or minus five minutes. We will use this time both for our message and for the ackdata packed within our message.
|
||||||
if fromAddressVersionNumber == 2:
|
if fromAddressVersionNumber == 2:
|
||||||
|
|
|
@ -60,11 +60,10 @@ class sqlThread(threading.Thread):
|
||||||
self.cur.execute( '''INSERT INTO settings VALUES('lastvacuumtime',?)''', (
|
self.cur.execute( '''INSERT INTO settings VALUES('lastvacuumtime',?)''', (
|
||||||
int(time.time()),))
|
int(time.time()),))
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
print 'Created messages database file'
|
logger.info('Created messages database file')
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
if str(err) == 'table inbox already exists':
|
if str(err) == 'table inbox already exists':
|
||||||
with shared.printLock:
|
logger.debug('Database file already exists.')
|
||||||
print 'Database file already exists.'
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
sys.stderr.write(
|
sys.stderr.write(
|
||||||
|
@ -146,13 +145,13 @@ class sqlThread(threading.Thread):
|
||||||
self.cur.execute(item, parameters)
|
self.cur.execute(item, parameters)
|
||||||
if self.cur.fetchall() == []:
|
if self.cur.fetchall() == []:
|
||||||
# The settings table doesn't exist. We need to make it.
|
# The settings table doesn't exist. We need to make it.
|
||||||
print 'In messages.dat database, creating new \'settings\' table.'
|
logger.debug('In messages.dat database, creating new \'settings\' table.')
|
||||||
self.cur.execute(
|
self.cur.execute(
|
||||||
'''CREATE TABLE settings (key text, value blob, UNIQUE(key) ON CONFLICT REPLACE)''' )
|
'''CREATE TABLE settings (key text, value blob, UNIQUE(key) ON CONFLICT REPLACE)''' )
|
||||||
self.cur.execute( '''INSERT INTO settings VALUES('version','1')''')
|
self.cur.execute( '''INSERT INTO settings VALUES('version','1')''')
|
||||||
self.cur.execute( '''INSERT INTO settings VALUES('lastvacuumtime',?)''', (
|
self.cur.execute( '''INSERT INTO settings VALUES('lastvacuumtime',?)''', (
|
||||||
int(time.time()),))
|
int(time.time()),))
|
||||||
print 'In messages.dat database, removing an obsolete field from the pubkeys table.'
|
logger.debug('In messages.dat database, removing an obsolete field from the pubkeys table.')
|
||||||
self.cur.execute(
|
self.cur.execute(
|
||||||
'''CREATE TEMPORARY TABLE pubkeys_backup(hash blob, transmitdata blob, time int, usedpersonally text, UNIQUE(hash) ON CONFLICT REPLACE);''')
|
'''CREATE TEMPORARY TABLE pubkeys_backup(hash blob, transmitdata blob, time int, usedpersonally text, UNIQUE(hash) ON CONFLICT REPLACE);''')
|
||||||
self.cur.execute(
|
self.cur.execute(
|
||||||
|
@ -163,17 +162,17 @@ class sqlThread(threading.Thread):
|
||||||
self.cur.execute(
|
self.cur.execute(
|
||||||
'''INSERT INTO pubkeys SELECT hash, transmitdata, time, usedpersonally FROM pubkeys_backup;''')
|
'''INSERT INTO pubkeys SELECT hash, transmitdata, time, usedpersonally FROM pubkeys_backup;''')
|
||||||
self.cur.execute( '''DROP TABLE pubkeys_backup;''')
|
self.cur.execute( '''DROP TABLE pubkeys_backup;''')
|
||||||
print 'Deleting all pubkeys from inventory. They will be redownloaded and then saved with the correct times.'
|
logger.debug('Deleting all pubkeys from inventory. They will be redownloaded and then saved with the correct times.')
|
||||||
self.cur.execute(
|
self.cur.execute(
|
||||||
'''delete from inventory where objecttype = 'pubkey';''')
|
'''delete from inventory where objecttype = 'pubkey';''')
|
||||||
print 'replacing Bitmessage announcements mailing list with a new one.'
|
logger.debug('replacing Bitmessage announcements mailing list with a new one.')
|
||||||
self.cur.execute(
|
self.cur.execute(
|
||||||
'''delete from subscriptions where address='BM-BbkPSZbzPwpVcYZpU4yHwf9ZPEapN5Zx' ''')
|
'''delete from subscriptions where address='BM-BbkPSZbzPwpVcYZpU4yHwf9ZPEapN5Zx' ''')
|
||||||
self.cur.execute(
|
self.cur.execute(
|
||||||
'''INSERT INTO subscriptions VALUES('Bitmessage new releases/announcements','BM-GtovgYdgs7qXPkoYaRgrLFuFKz1SFpsw',1)''')
|
'''INSERT INTO subscriptions VALUES('Bitmessage new releases/announcements','BM-GtovgYdgs7qXPkoYaRgrLFuFKz1SFpsw',1)''')
|
||||||
print 'Commiting.'
|
logger.debug('Commiting.')
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
print 'Vacuuming message.dat. You might notice that the file size gets much smaller.'
|
logger.debug('Vacuuming message.dat. You might notice that the file size gets much smaller.')
|
||||||
self.cur.execute( ''' VACUUM ''')
|
self.cur.execute( ''' VACUUM ''')
|
||||||
|
|
||||||
# After code refactoring, the possible status values for sent messages
|
# After code refactoring, the possible status values for sent messages
|
||||||
|
@ -206,6 +205,16 @@ class sqlThread(threading.Thread):
|
||||||
parameters = (2,)
|
parameters = (2,)
|
||||||
self.cur.execute(item, parameters)
|
self.cur.execute(item, parameters)
|
||||||
|
|
||||||
|
if not shared.config.has_option('bitmessagesettings', 'userlocale'):
|
||||||
|
shared.config.set('bitmessagesettings', 'userlocale', 'system')
|
||||||
|
if not shared.config.has_option('bitmessagesettings', 'removebeforesending'):
|
||||||
|
shared.config.set('bitmessagesettings', 'removebeforesending', 'false')
|
||||||
|
if not shared.config.has_option('bitmessagesettings', 'sendoutgoingconnections'):
|
||||||
|
shared.config.set('bitmessagesettings', 'sendoutgoingconnections', 'True')
|
||||||
|
|
||||||
|
# Are you hoping to add a new option to the keys.dat file of existing
|
||||||
|
# Bitmessage users? Add it right above this line!
|
||||||
|
|
||||||
try:
|
try:
|
||||||
testpayload = '\x00\x00'
|
testpayload = '\x00\x00'
|
||||||
t = ('1234', testpayload, '12345678', 'no')
|
t = ('1234', testpayload, '12345678', 'no')
|
||||||
|
@ -219,11 +228,11 @@ class sqlThread(threading.Thread):
|
||||||
self.cur.execute('''DELETE FROM pubkeys WHERE hash='1234' ''')
|
self.cur.execute('''DELETE FROM pubkeys WHERE hash='1234' ''')
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
if transmitdata == '':
|
if transmitdata == '':
|
||||||
sys.stderr.write('Problem: The version of SQLite you have cannot store Null values. Please download and install the latest revision of your version of Python (for example, the latest Python 2.7 revision) and try again.\n')
|
logger.fatal('Problem: The version of SQLite you have cannot store Null values. Please download and install the latest revision of your version of Python (for example, the latest Python 2.7 revision) and try again.\n')
|
||||||
sys.stderr.write('PyBitmessage will now exit very abruptly. You may now see threading errors related to this abrupt exit but the problem you need to solve is related to SQLite.\n\n')
|
logger.fatal('PyBitmessage will now exit very abruptly. You may now see threading errors related to this abrupt exit but the problem you need to solve is related to SQLite.\n\n')
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print err
|
logger.error(err)
|
||||||
|
|
||||||
# Let us check to see the last time we vaccumed the messages.dat file.
|
# Let us check to see the last time we vaccumed the messages.dat file.
|
||||||
# If it has been more than a month let's do it now.
|
# If it has been more than a month let's do it now.
|
||||||
|
@ -234,7 +243,7 @@ class sqlThread(threading.Thread):
|
||||||
for row in queryreturn:
|
for row in queryreturn:
|
||||||
value, = row
|
value, = row
|
||||||
if int(value) < int(time.time()) - 2592000:
|
if int(value) < int(time.time()) - 2592000:
|
||||||
print 'It has been a long time since the messages.dat file has been vacuumed. Vacuuming now...'
|
logger.info('It has been a long time since the messages.dat file has been vacuumed. Vacuuming now...')
|
||||||
self.cur.execute( ''' VACUUM ''')
|
self.cur.execute( ''' VACUUM ''')
|
||||||
item = '''update settings set value=? WHERE key='lastvacuumtime';'''
|
item = '''update settings set value=? WHERE key='lastvacuumtime';'''
|
||||||
parameters = (int(time.time()),)
|
parameters = (int(time.time()),)
|
||||||
|
@ -246,13 +255,11 @@ class sqlThread(threading.Thread):
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
elif item == 'exit':
|
elif item == 'exit':
|
||||||
self.conn.close()
|
self.conn.close()
|
||||||
with shared.printLock:
|
logger.info('sqlThread exiting gracefully.')
|
||||||
print 'sqlThread exiting gracefully.'
|
|
||||||
|
|
||||||
return
|
return
|
||||||
elif item == 'movemessagstoprog':
|
elif item == 'movemessagstoprog':
|
||||||
with shared.printLock:
|
logger.debug('the sqlThread is moving the messages.dat file to the local program directory.')
|
||||||
print 'the sqlThread is moving the messages.dat file to the local program directory.'
|
|
||||||
|
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
self.conn.close()
|
self.conn.close()
|
||||||
|
@ -262,8 +269,7 @@ class sqlThread(threading.Thread):
|
||||||
self.conn.text_factory = str
|
self.conn.text_factory = str
|
||||||
self.cur = self.conn.cursor()
|
self.cur = self.conn.cursor()
|
||||||
elif item == 'movemessagstoappdata':
|
elif item == 'movemessagstoappdata':
|
||||||
with shared.printLock:
|
logger.debug('the sqlThread is moving the messages.dat file to the Appdata folder.')
|
||||||
print 'the sqlThread is moving the messages.dat file to the Appdata folder.'
|
|
||||||
|
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
self.conn.close()
|
self.conn.close()
|
||||||
|
@ -284,10 +290,8 @@ class sqlThread(threading.Thread):
|
||||||
try:
|
try:
|
||||||
self.cur.execute(item, parameters)
|
self.cur.execute(item, parameters)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
with shared.printLock:
|
logger.fatal('Major error occurred when trying to execute a SQL statement within the sqlThread. Please tell Atheros about this error message or post it in the forum! Error occurred while trying to execute statement: "%s" Here are the parameters; you might want to censor this data with asterisks (***) as it can contain private information: %s. Here is the actual error message thrown by the sqlThread: %s', str(item), str(repr(parameters)), str(err))
|
||||||
sys.stderr.write('\nMajor error occurred when trying to execute a SQL statement within the sqlThread. Please tell Atheros about this error message or post it in the forum! Error occurred while trying to execute statement: "' + str(
|
logger.fatal('This program shall now abruptly exit!')
|
||||||
item) + '" Here are the parameters; you might want to censor this data with asterisks (***) as it can contain private information: ' + str(repr(parameters)) + '\nHere is the actual error message thrown by the sqlThread: ' + str(err) + '\n')
|
|
||||||
sys.stderr.write('This program shall now abruptly exit!\n')
|
|
||||||
|
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
|
|
||||||
|
|
|
@ -9,23 +9,36 @@ from namecoin import ensureNamecoinOptions
|
||||||
storeConfigFilesInSameDirectoryAsProgramByDefault = False # The user may de-select Portable Mode in the settings if they want the config files to stay in the application data folder.
|
storeConfigFilesInSameDirectoryAsProgramByDefault = False # The user may de-select Portable Mode in the settings if they want the config files to stay in the application data folder.
|
||||||
|
|
||||||
def loadConfig():
|
def loadConfig():
|
||||||
# First try to load the config file (the keys.dat file) from the program
|
if shared.appdata:
|
||||||
# directory
|
shared.config.read(shared.appdata + 'keys.dat')
|
||||||
|
#shared.appdata must have been specified as a startup option.
|
||||||
|
try:
|
||||||
|
shared.config.get('bitmessagesettings', 'settingsversion')
|
||||||
|
print 'Loading config files from directory specified on startup: ' + shared.appdata
|
||||||
|
needToCreateKeysFile = False
|
||||||
|
except:
|
||||||
|
needToCreateKeysFile = True
|
||||||
|
|
||||||
|
else:
|
||||||
shared.config.read('keys.dat')
|
shared.config.read('keys.dat')
|
||||||
try:
|
try:
|
||||||
shared.config.get('bitmessagesettings', 'settingsversion')
|
shared.config.get('bitmessagesettings', 'settingsversion')
|
||||||
print 'Loading config files from same directory as program'
|
print 'Loading config files from same directory as program.'
|
||||||
|
needToCreateKeysFile = False
|
||||||
shared.appdata = ''
|
shared.appdata = ''
|
||||||
except:
|
except:
|
||||||
# Could not load the keys.dat file in the program directory. Perhaps it
|
# Could not load the keys.dat file in the program directory. Perhaps it
|
||||||
# is in the appdata directory.
|
# is in the appdata directory.
|
||||||
shared.appdata = shared.lookupAppdataFolder()
|
shared.appdata = shared.lookupAppdataFolder()
|
||||||
shared.config = ConfigParser.SafeConfigParser()
|
|
||||||
shared.config.read(shared.appdata + 'keys.dat')
|
shared.config.read(shared.appdata + 'keys.dat')
|
||||||
try:
|
try:
|
||||||
shared.config.get('bitmessagesettings', 'settingsversion')
|
shared.config.get('bitmessagesettings', 'settingsversion')
|
||||||
print 'Loading existing config files from', shared.appdata
|
print 'Loading existing config files from', shared.appdata
|
||||||
|
needToCreateKeysFile = False
|
||||||
except:
|
except:
|
||||||
|
needToCreateKeysFile = True
|
||||||
|
|
||||||
|
if needToCreateKeysFile:
|
||||||
# This appears to be the first time running the program; there is
|
# This appears to be the first time running the program; there is
|
||||||
# no config file (or it cannot be accessed). Create config file.
|
# no config file (or it cannot be accessed). Create config file.
|
||||||
shared.config.add_section('bitmessagesettings')
|
shared.config.add_section('bitmessagesettings')
|
||||||
|
@ -72,6 +85,13 @@ def loadConfig():
|
||||||
shared.config.set('bitmessagesettings', 'dontconnect', 'true')
|
shared.config.set('bitmessagesettings', 'dontconnect', 'true')
|
||||||
shared.config.set('bitmessagesettings', 'userlocale', 'system')
|
shared.config.set('bitmessagesettings', 'userlocale', 'system')
|
||||||
shared.config.set('bitmessagesettings', 'removebeforesend', 'false')
|
shared.config.set('bitmessagesettings', 'removebeforesend', 'false')
|
||||||
|
|
||||||
|
# Are you hoping to add a new option to the keys.dat file? You're in
|
||||||
|
# the right place for adding it to users who install the software for
|
||||||
|
# the first time. But you must also add it to the keys.dat file of
|
||||||
|
# existing users. To do that, search the class_sqlThread.py file for the
|
||||||
|
# text: "right above this line!"
|
||||||
|
|
||||||
ensureNamecoinOptions()
|
ensureNamecoinOptions()
|
||||||
|
|
||||||
if storeConfigFilesInSameDirectoryAsProgramByDefault:
|
if storeConfigFilesInSameDirectoryAsProgramByDefault:
|
||||||
|
|
|
@ -270,7 +270,7 @@ def ensureNamecoinOptions ():
|
||||||
nmc.close ()
|
nmc.close ()
|
||||||
|
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
print "Failure reading namecoin config file: %s" % str (exc)
|
print "Could not read the Namecoin config file probably because you don't have Namecoin installed. That's ok; we don't really need it. Detailed error message: %s" % str (exc)
|
||||||
|
|
||||||
# If still nothing found, set empty at least.
|
# If still nothing found, set empty at least.
|
||||||
if (not hasUser):
|
if (not hasUser):
|
||||||
|
|
|
@ -24,7 +24,7 @@ def _set_idle():
|
||||||
|
|
||||||
def _pool_worker(nonce, initialHash, target, pool_size):
|
def _pool_worker(nonce, initialHash, target, pool_size):
|
||||||
_set_idle()
|
_set_idle()
|
||||||
trialValue = 99999999999999999999
|
trialValue = float('inf')
|
||||||
while trialValue > target:
|
while trialValue > target:
|
||||||
nonce += pool_size
|
nonce += pool_size
|
||||||
trialValue, = unpack('>Q',hashlib.sha512(hashlib.sha512(pack('>Q',nonce) + initialHash).digest()).digest()[0:8])
|
trialValue, = unpack('>Q',hashlib.sha512(hashlib.sha512(pack('>Q',nonce) + initialHash).digest()).digest()[0:8])
|
||||||
|
@ -32,7 +32,7 @@ def _pool_worker(nonce, initialHash, target, pool_size):
|
||||||
|
|
||||||
def _doSafePoW(target, initialHash):
|
def _doSafePoW(target, initialHash):
|
||||||
nonce = 0
|
nonce = 0
|
||||||
trialValue = 99999999999999999999
|
trialValue = float('inf')
|
||||||
while trialValue > target:
|
while trialValue > target:
|
||||||
nonce += 1
|
nonce += 1
|
||||||
trialValue, = unpack('>Q',hashlib.sha512(hashlib.sha512(pack('>Q',nonce) + initialHash).digest()).digest()[0:8])
|
trialValue, = unpack('>Q',hashlib.sha512(hashlib.sha512(pack('>Q',nonce) + initialHash).digest()).digest()[0:8])
|
||||||
|
|
|
@ -20,6 +20,7 @@ import sys
|
||||||
import stat
|
import stat
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
from os import path, environ
|
||||||
|
|
||||||
# Project imports.
|
# Project imports.
|
||||||
from addresses import *
|
from addresses import *
|
||||||
|
@ -64,6 +65,10 @@ successfullyDecryptMessageTimings = [
|
||||||
apiAddressGeneratorReturnQueue = Queue.Queue(
|
apiAddressGeneratorReturnQueue = Queue.Queue(
|
||||||
) # The address generator thread uses this queue to get information back to the API thread.
|
) # The address generator thread uses this queue to get information back to the API thread.
|
||||||
ackdataForWhichImWatching = {}
|
ackdataForWhichImWatching = {}
|
||||||
|
clientHasReceivedIncomingConnections = False #used by API command clientStatus
|
||||||
|
numberOfMessagesProcessed = 0
|
||||||
|
numberOfBroadcastsProcessed = 0
|
||||||
|
numberOfPubkeysProcessed = 0
|
||||||
|
|
||||||
#If changed, these values will cause particularly unexpected behavior: You won't be able to either send or receive messages because the proof of work you do (or demand) won't match that done or demanded by others. Don't change them!
|
#If changed, these values will cause particularly unexpected behavior: You won't be able to either send or receive messages because the proof of work you do (or demand) won't match that done or demanded by others. Don't change them!
|
||||||
networkDefaultProofOfWorkNonceTrialsPerByte = 320 #The amount of work that should be performed (and demanded) per byte of the payload. Double this number to double the work.
|
networkDefaultProofOfWorkNonceTrialsPerByte = 320 #The amount of work that should be performed (and demanded) per byte of the payload. Double this number to double the work.
|
||||||
|
@ -121,7 +126,6 @@ def assembleVersionMessage(remoteHost, remotePort, myStreamNumber):
|
||||||
|
|
||||||
def lookupAppdataFolder():
|
def lookupAppdataFolder():
|
||||||
APPNAME = "PyBitmessage"
|
APPNAME = "PyBitmessage"
|
||||||
from os import path, environ
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
if "HOME" in environ:
|
if "HOME" in environ:
|
||||||
dataFolder = path.join(os.environ["HOME"], "Library/Application Support/", APPNAME) + '/'
|
dataFolder = path.join(os.environ["HOME"], "Library/Application Support/", APPNAME) + '/'
|
||||||
|
@ -235,7 +239,7 @@ def reloadMyAddressHashes():
|
||||||
if isEnabled:
|
if isEnabled:
|
||||||
hasEnabledKeys = True
|
hasEnabledKeys = True
|
||||||
status,addressVersionNumber,streamNumber,hash = decodeAddress(addressInKeysFile)
|
status,addressVersionNumber,streamNumber,hash = decodeAddress(addressInKeysFile)
|
||||||
if addressVersionNumber == 2 or addressVersionNumber == 3:
|
if addressVersionNumber == 2 or addressVersionNumber == 3 or addressVersionNumber == 4:
|
||||||
# Returns a simple 32 bytes of information encoded in 64 Hex characters,
|
# Returns a simple 32 bytes of information encoded in 64 Hex characters,
|
||||||
# or null if there was an error.
|
# or null if there was an error.
|
||||||
privEncryptionKey = decodeWalletImportFormat(
|
privEncryptionKey = decodeWalletImportFormat(
|
||||||
|
@ -246,7 +250,7 @@ def reloadMyAddressHashes():
|
||||||
myAddressesByHash[hash] = addressInKeysFile
|
myAddressesByHash[hash] = addressInKeysFile
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.error('Error in reloadMyAddressHashes: Can\'t handle address versions other than 2 or 3.\n')
|
logger.error('Error in reloadMyAddressHashes: Can\'t handle address versions other than 2, 3, or 4.\n')
|
||||||
|
|
||||||
if not keyfileSecure:
|
if not keyfileSecure:
|
||||||
fixSensitiveFilePermissions(appdata + 'keys.dat', hasEnabledKeys)
|
fixSensitiveFilePermissions(appdata + 'keys.dat', hasEnabledKeys)
|
||||||
|
|
Binary file not shown.
|
@ -1,6 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS><TS version="2.0" language="ru" sourcelanguage="en">
|
||||||
<TS version="2.0" language="ru">
|
|
||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -11,7 +10,6 @@
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="163"/>
|
<location filename="../bitmessageqt/__init__.py" line="163"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translatorcomment>.</translatorcomment>
|
|
||||||
<translation>Ответить</translation>
|
<translation>Ответить</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
@ -35,7 +33,7 @@
|
||||||
<translation>Сохранить сообщение как ...</translation>
|
<translation>Сохранить сообщение как ...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="573"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="581"/>
|
||||||
<source>New</source>
|
<source>New</source>
|
||||||
<translation>Новый адрес</translation>
|
<translation>Новый адрес</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -90,7 +88,7 @@
|
||||||
<translation>Форсировать отправку</translation>
|
<translation>Форсировать отправку</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="600"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="608"/>
|
||||||
<source>Add new entry</source>
|
<source>Add new entry</source>
|
||||||
<translation>Добавить новую запись</translation>
|
<translation>Добавить новую запись</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -122,7 +120,7 @@
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="650"/>
|
<location filename="../bitmessageqt/__init__.py" line="650"/>
|
||||||
<source>Acknowledgement of the message received %1</source>
|
<source>Acknowledgement of the message received %1</source>
|
||||||
<translation>Сообщение доставлено %1</translation>
|
<translation>Сообщение доставлено в %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="653"/>
|
<location filename="../bitmessageqt/__init__.py" line="653"/>
|
||||||
|
@ -157,10 +155,10 @@
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="398"/>
|
<location filename="../bitmessageqt/__init__.py" line="398"/>
|
||||||
<source>Since startup on %1</source>
|
<source>Since startup on %1</source>
|
||||||
<translation>С начала работы %1</translation>
|
<translation>С начала работы в %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1344"/>
|
<location filename="../bitmessageqt/__init__.py" line="1351"/>
|
||||||
<source>Not Connected</source>
|
<source>Not Connected</source>
|
||||||
<translation>Не соединено</translation>
|
<translation>Не соединено</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -170,9 +168,9 @@
|
||||||
<translation>Показать Bitmessage</translation>
|
<translation>Показать Bitmessage</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="556"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="564"/>
|
||||||
<source>Send</source>
|
<source>Send</source>
|
||||||
<translation>Отправка</translation>
|
<translation>Отправить</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="836"/>
|
<location filename="../bitmessageqt/__init__.py" line="836"/>
|
||||||
|
@ -180,23 +178,23 @@
|
||||||
<translation>Подписки</translation>
|
<translation>Подписки</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="597"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="605"/>
|
||||||
<source>Address Book</source>
|
<source>Address Book</source>
|
||||||
<translation>Адресная книга</translation>
|
<translation>Адресная книга</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="622"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="630"/>
|
||||||
<source>Quit</source>
|
<source>Quit</source>
|
||||||
<translation>Выйти</translation>
|
<translation>Выйти</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1130"/>
|
<location filename="../bitmessageqt/__init__.py" line="1140"/>
|
||||||
<source>You may manage your keys by editing the keys.dat file stored in the same directory as this program. It is important that you back up this file.</source>
|
<source>You may manage your keys by editing the keys.dat file stored in the same directory as this program. It is important that you back up this file.</source>
|
||||||
<translation>Вы можете управлять Вашими ключами, отредактировав файл keys.dat, находящийся в той же папке, что и эта программа.
|
<translation>Вы можете управлять Вашими ключами, отредактировав файл keys.dat, находящийся в той же папке, что и эта программа.
|
||||||
Создайте резервную копию этого файла перед тем как будете его редактировать.</translation>
|
Создайте резервную копию этого файла перед тем как будете его редактировать.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1134"/>
|
<location filename="../bitmessageqt/__init__.py" line="1144"/>
|
||||||
<source>You may manage your keys by editing the keys.dat file stored in
|
<source>You may manage your keys by editing the keys.dat file stored in
|
||||||
%1
|
%1
|
||||||
It is important that you back up this file.</source>
|
It is important that you back up this file.</source>
|
||||||
|
@ -205,19 +203,19 @@ It is important that you back up this file.</source>
|
||||||
Создайте резервную копию этого файла перед тем как будете его редактировать.</translation>
|
Создайте резервную копию этого файла перед тем как будете его редактировать.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1141"/>
|
<location filename="../bitmessageqt/__init__.py" line="1151"/>
|
||||||
<source>Open keys.dat?</source>
|
<source>Open keys.dat?</source>
|
||||||
<translation>Открыть файл keys.dat?</translation>
|
<translation>Открыть файл keys.dat?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1138"/>
|
<location filename="../bitmessageqt/__init__.py" line="1148"/>
|
||||||
<source>You may manage your keys by editing the keys.dat file stored in the same directory as this program. It is important that you back up this file. Would you like to open the file now? (Be sure to close Bitmessage before making any changes.)</source>
|
<source>You may manage your keys by editing the keys.dat file stored in the same directory as this program. It is important that you back up this file. Would you like to open the file now? (Be sure to close Bitmessage before making any changes.)</source>
|
||||||
<translation>Вы можете управлять Вашими ключами, отредактировав файл keys.dat, находящийся в той же папке, что и эта программа.
|
<translation>Вы можете управлять Вашими ключами, отредактировав файл keys.dat, находящийся в той же папке, что и эта программа.
|
||||||
Создайте резервную копию этого файла перед тем как будете его редактировать. Хотели бы Вы открыть этот файл сейчас?
|
Создайте резервную копию этого файла перед тем как будете его редактировать. Хотели бы Вы открыть этот файл сейчас?
|
||||||
(пожалуйста, закройте Bitmessage до того как Вы внесете в этот файл какие-либо изменения.)</translation>
|
(пожалуйста, закройте Bitmessage до того как Вы внесете в этот файл какие-либо изменения.)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1141"/>
|
<location filename="../bitmessageqt/__init__.py" line="1151"/>
|
||||||
<source>You may manage your keys by editing the keys.dat file stored in
|
<source>You may manage your keys by editing the keys.dat file stored in
|
||||||
%1
|
%1
|
||||||
It is important that you back up this file. Would you like to open the file now? (Be sure to close Bitmessage before making any changes.)</source>
|
It is important that you back up this file. Would you like to open the file now? (Be sure to close Bitmessage before making any changes.)</source>
|
||||||
|
@ -227,192 +225,192 @@ It is important that you back up this file. Would you like to open the file now?
|
||||||
(пожалуйста, закройте Bitmessage до того как Вы внесете в этот файл какие-либо изменения.)</translation>
|
(пожалуйста, закройте Bitmessage до того как Вы внесете в этот файл какие-либо изменения.)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1147"/>
|
<location filename="../bitmessageqt/__init__.py" line="1157"/>
|
||||||
<source>Delete trash?</source>
|
<source>Delete trash?</source>
|
||||||
<translation>Очистить корзину?</translation>
|
<translation>Очистить корзину?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1147"/>
|
<location filename="../bitmessageqt/__init__.py" line="1157"/>
|
||||||
<source>Are you sure you want to delete all trashed messages?</source>
|
<source>Are you sure you want to delete all trashed messages?</source>
|
||||||
<translation>Вы уверены, что хотите очистить корзину?</translation>
|
<translation>Вы уверены, что хотите очистить корзину?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1158"/>
|
<location filename="../bitmessageqt/__init__.py" line="1168"/>
|
||||||
<source>bad passphrase</source>
|
<source>bad passphrase</source>
|
||||||
<translation>Неподходящая секретная фраза</translation>
|
<translation>Неподходящая секретная фраза</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1158"/>
|
<location filename="../bitmessageqt/__init__.py" line="1168"/>
|
||||||
<source>You must type your passphrase. If you don't have one then this is not the form for you.</source>
|
<source>You must type your passphrase. If you don't have one then this is not the form for you.</source>
|
||||||
<translation>Вы должны ввести секретную фразу. Если Вы не хотите это делать, то Вы выбрали неправильную опцию.</translation>
|
<translation>Вы должны ввести секретную фразу. Если Вы не хотите это делать, то Вы выбрали неправильную опцию.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1265"/>
|
<location filename="../bitmessageqt/__init__.py" line="1274"/>
|
||||||
<source>Processed %1 person-to-person messages.</source>
|
<source>Processed %1 person-to-person messages.</source>
|
||||||
<translation>Обработано %1 сообщений.</translation>
|
<translation>Обработано %1 сообщений.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1270"/>
|
<location filename="../bitmessageqt/__init__.py" line="1278"/>
|
||||||
<source>Processed %1 broadcast messages.</source>
|
<source>Processed %1 broadcast messages.</source>
|
||||||
<translation>Обработано %1 рассылок.</translation>
|
<translation>Обработано %1 рассылок.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1275"/>
|
<location filename="../bitmessageqt/__init__.py" line="1282"/>
|
||||||
<source>Processed %1 public keys.</source>
|
<source>Processed %1 public keys.</source>
|
||||||
<translation>Обработано %1 открытых ключей.</translation>
|
<translation>Обработано %1 открытых ключей.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1319"/>
|
<location filename="../bitmessageqt/__init__.py" line="1326"/>
|
||||||
<source>Total Connections: %1</source>
|
<source>Total Connections: %1</source>
|
||||||
<translation>Всего соединений: %1</translation>
|
<translation>Всего соединений: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1338"/>
|
<location filename="../bitmessageqt/__init__.py" line="1345"/>
|
||||||
<source>Connection lost</source>
|
<source>Connection lost</source>
|
||||||
<translation>Соединение потеряно</translation>
|
<translation>Соединение потеряно</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1379"/>
|
<location filename="../bitmessageqt/__init__.py" line="1386"/>
|
||||||
<source>Connected</source>
|
<source>Connected</source>
|
||||||
<translation>Соединено</translation>
|
<translation>Соединено</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1425"/>
|
<location filename="../bitmessageqt/__init__.py" line="1432"/>
|
||||||
<source>Message trashed</source>
|
<source>Message trashed</source>
|
||||||
<translation>Сообщение удалено</translation>
|
<translation>Сообщение удалено</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1559"/>
|
<location filename="../bitmessageqt/__init__.py" line="1566"/>
|
||||||
<source>Error: Bitmessage addresses start with BM- Please check %1</source>
|
<source>Error: Bitmessage addresses start with BM- Please check %1</source>
|
||||||
<translation>Ошибка: Bitmessage адреса начинаются с BM- Пожалуйста, проверьте %1</translation>
|
<translation>Ошибка: Bitmessage адреса начинаются с BM- Пожалуйста, проверьте %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1562"/>
|
<location filename="../bitmessageqt/__init__.py" line="1569"/>
|
||||||
<source>Error: The address %1 is not typed or copied correctly. Please check it.</source>
|
<source>Error: The address %1 is not typed or copied correctly. Please check it.</source>
|
||||||
<translation>Ошибка: адрес %1 внесен или скопирован неправильно. Пожалуйста, перепроверьте.</translation>
|
<translation>Ошибка: адрес %1 внесен или скопирован неправильно. Пожалуйста, перепроверьте.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1565"/>
|
<location filename="../bitmessageqt/__init__.py" line="1572"/>
|
||||||
<source>Error: The address %1 contains invalid characters. Please check it.</source>
|
<source>Error: The address %1 contains invalid characters. Please check it.</source>
|
||||||
<translation>Ошибка: адрес %1 содержит запрещенные символы. Пожалуйста, перепроверьте.</translation>
|
<translation>Ошибка: адрес %1 содержит запрещенные символы. Пожалуйста, перепроверьте.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1568"/>
|
<location filename="../bitmessageqt/__init__.py" line="1575"/>
|
||||||
<source>Error: The address version in %1 is too high. Either you need to upgrade your Bitmessage software or your acquaintance is being clever.</source>
|
<source>Error: The address version in %1 is too high. Either you need to upgrade your Bitmessage software or your acquaintance is being clever.</source>
|
||||||
<translation>Ошибка: версия адреса в %1 слишком новая. Либо Вам нужно обновить Bitmessage, либо Ваш собеседник дал неправильный адрес.</translation>
|
<translation>Ошибка: версия адреса в %1 слишком новая. Либо Вам нужно обновить Bitmessage, либо Ваш собеседник дал неправильный адрес.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1571"/>
|
<location filename="../bitmessageqt/__init__.py" line="1578"/>
|
||||||
<source>Error: Some data encoded in the address %1 is too short. There might be something wrong with the software of your acquaintance.</source>
|
<source>Error: Some data encoded in the address %1 is too short. There might be something wrong with the software of your acquaintance.</source>
|
||||||
<translation>Ошибка: некоторые данные, закодированные в адресе %1, слишком короткие. Возможно, что-то не так с программой Вашего собеседника.</translation>
|
<translation>Ошибка: некоторые данные, закодированные в адресе %1, слишком короткие. Возможно, что-то не так с программой Вашего собеседника.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1574"/>
|
<location filename="../bitmessageqt/__init__.py" line="1581"/>
|
||||||
<source>Error: Some data encoded in the address %1 is too long. There might be something wrong with the software of your acquaintance.</source>
|
<source>Error: Some data encoded in the address %1 is too long. There might be something wrong with the software of your acquaintance.</source>
|
||||||
<translation>Ошибка: некоторые данные, закодированные в адресе %1, слишком длинные. Возможно, что-то не так с программой Вашего собеседника.</translation>
|
<translation>Ошибка: некоторые данные, закодированные в адресе %1, слишком длинные. Возможно, что-то не так с программой Вашего собеседника.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1577"/>
|
<location filename="../bitmessageqt/__init__.py" line="1584"/>
|
||||||
<source>Error: Something is wrong with the address %1.</source>
|
<source>Error: Something is wrong with the address %1.</source>
|
||||||
<translation>Ошибка: что-то не так с адресом %1.</translation>
|
<translation>Ошибка: что-то не так с адресом %1.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1644"/>
|
<location filename="../bitmessageqt/__init__.py" line="1651"/>
|
||||||
<source>Error: You must specify a From address. If you don't have one, go to the 'Your Identities' tab.</source>
|
<source>Error: You must specify a From address. If you don't have one, go to the 'Your Identities' tab.</source>
|
||||||
<translation>Вы должны указать адрес в поле "От кого". Вы можете найти Ваш адрес во вкладе "Ваши Адреса".</translation>
|
<translation>Вы должны указать адрес в поле "От кого". Вы можете найти Ваш адрес во вкладе "Ваши Адреса".</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1588"/>
|
<location filename="../bitmessageqt/__init__.py" line="1595"/>
|
||||||
<source>Sending to your address</source>
|
<source>Sending to your address</source>
|
||||||
<translation>Отправка на Ваш собственный адрес</translation>
|
<translation>Отправка на Ваш собственный адрес</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1588"/>
|
<location filename="../bitmessageqt/__init__.py" line="1595"/>
|
||||||
<source>Error: One of the addresses to which you are sending a message, %1, is yours. Unfortunately the Bitmessage client cannot process its own messages. Please try running a second client on a different computer or within a VM.</source>
|
<source>Error: One of the addresses to which you are sending a message, %1, is yours. Unfortunately the Bitmessage client cannot process its own messages. Please try running a second client on a different computer or within a VM.</source>
|
||||||
<translation>Ошибка: Один из адресов, на который Вы отправляете сообщение, %1, принадлежит Вам. К сожалению, Bitmessage не может отправлять сообщения самому себе. Попробуйте запустить второго клиента на другом компьютере или на виртуальной машине.</translation>
|
<translation>Ошибка: Один из адресов, на который Вы отправляете сообщение, %1, принадлежит Вам. К сожалению, Bitmessage не может отправлять сообщения самому себе. Попробуйте запустить второго клиента на другом компьютере или на виртуальной машине.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1594"/>
|
<location filename="../bitmessageqt/__init__.py" line="1601"/>
|
||||||
<source>Address version number</source>
|
<source>Address version number</source>
|
||||||
<translation>Версия адреса</translation>
|
<translation>Версия адреса</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1594"/>
|
<location filename="../bitmessageqt/__init__.py" line="1601"/>
|
||||||
<source>Concerning the address %1, Bitmessage cannot understand address version numbers of %2. Perhaps upgrade Bitmessage to the latest version.</source>
|
<source>Concerning the address %1, Bitmessage cannot understand address version numbers of %2. Perhaps upgrade Bitmessage to the latest version.</source>
|
||||||
<translation>По поводу адреса %1: Bitmessage не поддерживаем адреса версии %2. Возможно, Вам нужно обновить клиент Bitmessage.</translation>
|
<translation>По поводу адреса %1: Bitmessage не поддерживаем адреса версии %2. Возможно, Вам нужно обновить клиент Bitmessage.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1598"/>
|
<location filename="../bitmessageqt/__init__.py" line="1605"/>
|
||||||
<source>Stream number</source>
|
<source>Stream number</source>
|
||||||
<translation>Номер потока</translation>
|
<translation>Номер потока</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1598"/>
|
<location filename="../bitmessageqt/__init__.py" line="1605"/>
|
||||||
<source>Concerning the address %1, Bitmessage cannot handle stream numbers of %2. Perhaps upgrade Bitmessage to the latest version.</source>
|
<source>Concerning the address %1, Bitmessage cannot handle stream numbers of %2. Perhaps upgrade Bitmessage to the latest version.</source>
|
||||||
<translation>По поводу адреса %1: Bitmessage не поддерживаем стрим номер %2. Возможно, Вам нужно обновить клиент Bitmessage.</translation>
|
<translation>По поводу адреса %1: Bitmessage не поддерживаем стрим номер %2. Возможно, Вам нужно обновить клиент Bitmessage.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1603"/>
|
<location filename="../bitmessageqt/__init__.py" line="1610"/>
|
||||||
<source>Warning: You are currently not connected. Bitmessage will do the work necessary to send the message but it won't send until you connect.</source>
|
<source>Warning: You are currently not connected. Bitmessage will do the work necessary to send the message but it won't send until you connect.</source>
|
||||||
<translation>Внимание: Вы не подключены к сети. Bitmessage проделает необходимые вычисления, чтобы отправить сообщение, но не отправит его до тех пор, пока Вы не подсоединитесь к сети.</translation>
|
<translation>Внимание: Вы не подключены к сети. Bitmessage проделает необходимые вычисления, чтобы отправить сообщение, но не отправит его до тех пор, пока Вы не подсоединитесь к сети.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1640"/>
|
<location filename="../bitmessageqt/__init__.py" line="1647"/>
|
||||||
<source>Your 'To' field is empty.</source>
|
<source>Your 'To' field is empty.</source>
|
||||||
<translation>Вы не заполнили поле 'Кому'.</translation>
|
<translation>Вы не заполнили поле 'Кому'.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1695"/>
|
<location filename="../bitmessageqt/__init__.py" line="1702"/>
|
||||||
<source>Work is queued.</source>
|
<source>Work is queued.</source>
|
||||||
<translation>Вычисления поставлены в очередь.</translation>
|
<translation>Вычисления поставлены в очередь.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1717"/>
|
<location filename="../bitmessageqt/__init__.py" line="1724"/>
|
||||||
<source>Right click one or more entries in your address book and select 'Send message to this address'.</source>
|
<source>Right click one or more entries in your address book and select 'Send message to this address'.</source>
|
||||||
<translation>Нажмите правую кнопку мышки на каком-либо адресе и выберите "Отправить сообщение на этот адрес".</translation>
|
<translation>Нажмите правую кнопку мышки на каком-либо адресе и выберите "Отправить сообщение на этот адрес".</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1805"/>
|
<location filename="../bitmessageqt/__init__.py" line="1812"/>
|
||||||
<source>Work is queued. %1</source>
|
<source>Work is queued. %1</source>
|
||||||
<translation>Вычисления поставлены в очередь. %1</translation>
|
<translation>Вычисления поставлены в очередь. %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1874"/>
|
<location filename="../bitmessageqt/__init__.py" line="1881"/>
|
||||||
<source>New Message</source>
|
<source>New Message</source>
|
||||||
<translation>Новое сообщение</translation>
|
<translation>Новое сообщение</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1874"/>
|
<location filename="../bitmessageqt/__init__.py" line="1881"/>
|
||||||
<source>From </source>
|
<source>From </source>
|
||||||
<translation>От </translation>
|
<translation>От </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3282"/>
|
<location filename="../bitmessageqt/__init__.py" line="3301"/>
|
||||||
<source>Address is valid.</source>
|
<source>Address is valid.</source>
|
||||||
<translation>Адрес введен правильно.</translation>
|
<translation>Адрес введен правильно.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2440"/>
|
<location filename="../bitmessageqt/__init__.py" line="2453"/>
|
||||||
<source>Error: You cannot add the same address to your address book twice. Try renaming the existing one if you want.</source>
|
<source>Error: You cannot add the same address to your address book twice. Try renaming the existing one if you want.</source>
|
||||||
<translation>Ошибка: Вы не можете добавлять один и тот же адрес в Адресную Книгу несколько раз. Просто переименуйте существующий адрес.</translation>
|
<translation>Ошибка: Вы не можете добавлять один и тот же адрес в Адресную Книгу несколько раз. Просто переименуйте существующий адрес.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2230"/>
|
<location filename="../bitmessageqt/__init__.py" line="2243"/>
|
||||||
<source>The address you entered was invalid. Ignoring it.</source>
|
<source>The address you entered was invalid. Ignoring it.</source>
|
||||||
<translation>Вы ввели неправильный адрес. Это адрес проигнорирован.</translation>
|
<translation>Вы ввели неправильный адрес. Это адрес проигнорирован.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2610"/>
|
<location filename="../bitmessageqt/__init__.py" line="2623"/>
|
||||||
<source>Error: You cannot add the same address to your subsciptions twice. Perhaps rename the existing one if you want.</source>
|
<source>Error: You cannot add the same address to your subsciptions twice. Perhaps rename the existing one if you want.</source>
|
||||||
<translation>Ошибка: Вы не можете добавлять один и тот же адрес в подписку несколько раз. Просто переименуйте существующую подписку.</translation>
|
<translation>Ошибка: Вы не можете добавлять один и тот же адрес в подписку несколько раз. Просто переименуйте существующую подписку.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2046"/>
|
<location filename="../bitmessageqt/__init__.py" line="2056"/>
|
||||||
<source>Restart</source>
|
<source>Restart</source>
|
||||||
<translation>Перезапустить</translation>
|
<translation>Перезапустить</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2040"/>
|
<location filename="../bitmessageqt/__init__.py" line="2048"/>
|
||||||
<source>You must restart Bitmessage for the port number change to take effect.</source>
|
<source>You must restart Bitmessage for the port number change to take effect.</source>
|
||||||
<translation>Вы должны перезапустить Bitmessage, чтобы смена номера порта имела эффект.</translation>
|
<translation>Вы должны перезапустить Bitmessage, чтобы смена номера порта имела эффект.</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -422,167 +420,167 @@ It is important that you back up this file. Would you like to open the file now?
|
||||||
<translation type="obsolete">Bitmessage будет использовать Ваш прокси в дальнейшем, тем не менее, мы рекомендуем перезапустить Bitmessage в ручную, чтобы закрыть уже существующие соединения.</translation>
|
<translation type="obsolete">Bitmessage будет использовать Ваш прокси в дальнейшем, тем не менее, мы рекомендуем перезапустить Bitmessage в ручную, чтобы закрыть уже существующие соединения.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2227"/>
|
<location filename="../bitmessageqt/__init__.py" line="2240"/>
|
||||||
<source>Error: You cannot add the same address to your list twice. Perhaps rename the existing one if you want.</source>
|
<source>Error: You cannot add the same address to your list twice. Perhaps rename the existing one if you want.</source>
|
||||||
<translation>Ошибка: Вы не можете добавлять один и тот же адрес в список несколько раз. Просто переименуйте существующий адрес.</translation>
|
<translation>Ошибка: Вы не можете добавлять один и тот же адрес в список несколько раз. Просто переименуйте существующий адрес.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2280"/>
|
<location filename="../bitmessageqt/__init__.py" line="2293"/>
|
||||||
<source>Passphrase mismatch</source>
|
<source>Passphrase mismatch</source>
|
||||||
<translation>Секретная фраза не подходит</translation>
|
<translation>Секретная фраза не подходит</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2280"/>
|
<location filename="../bitmessageqt/__init__.py" line="2293"/>
|
||||||
<source>The passphrase you entered twice doesn't match. Try again.</source>
|
<source>The passphrase you entered twice doesn't match. Try again.</source>
|
||||||
<translation>Вы ввели две разные секретные фразы. Пожалуйста, повторите заново.</translation>
|
<translation>Вы ввели две разные секретные фразы. Пожалуйста, повторите заново.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2283"/>
|
<location filename="../bitmessageqt/__init__.py" line="2296"/>
|
||||||
<source>Choose a passphrase</source>
|
<source>Choose a passphrase</source>
|
||||||
<translation>Придумайте секретную фразу</translation>
|
<translation>Придумайте секретную фразу</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2283"/>
|
<location filename="../bitmessageqt/__init__.py" line="2296"/>
|
||||||
<source>You really do need a passphrase.</source>
|
<source>You really do need a passphrase.</source>
|
||||||
<translation>Вы действительно должны ввести секретную фразу.</translation>
|
<translation>Вы действительно должны ввести секретную фразу.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2306"/>
|
<location filename="../bitmessageqt/__init__.py" line="2319"/>
|
||||||
<source>All done. Closing user interface...</source>
|
<source>All done. Closing user interface...</source>
|
||||||
<translation>Программа завершена. Закрываем пользовательский интерфейс...</translation>
|
<translation>Программа завершена. Закрываем пользовательский интерфейс...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2380"/>
|
<location filename="../bitmessageqt/__init__.py" line="2393"/>
|
||||||
<source>Address is gone</source>
|
<source>Address is gone</source>
|
||||||
<translation>Адрес утерян</translation>
|
<translation>Адрес утерян</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2380"/>
|
<location filename="../bitmessageqt/__init__.py" line="2393"/>
|
||||||
<source>Bitmessage cannot find your address %1. Perhaps you removed it?</source>
|
<source>Bitmessage cannot find your address %1. Perhaps you removed it?</source>
|
||||||
<translation>Bitmessage не может найти Ваш адрес %1. Возможно Вы удалили его?</translation>
|
<translation>Bitmessage не может найти Ваш адрес %1. Возможно Вы удалили его?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2384"/>
|
<location filename="../bitmessageqt/__init__.py" line="2397"/>
|
||||||
<source>Address disabled</source>
|
<source>Address disabled</source>
|
||||||
<translation>Адрес выключен</translation>
|
<translation>Адрес выключен</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2384"/>
|
<location filename="../bitmessageqt/__init__.py" line="2397"/>
|
||||||
<source>Error: The address from which you are trying to send is disabled. You'll have to enable it on the 'Your Identities' tab before using it.</source>
|
<source>Error: The address from which you are trying to send is disabled. You'll have to enable it on the 'Your Identities' tab before using it.</source>
|
||||||
<translation>Ошибка: адрес, с которого Вы пытаетесь отправить, выключен. Вам нужно будет включить этот адрес во вкладке "Ваши адреса".</translation>
|
<translation>Ошибка: адрес, с которого Вы пытаетесь отправить, выключен. Вам нужно будет включить этот адрес во вкладке "Ваши адреса".</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2437"/>
|
<location filename="../bitmessageqt/__init__.py" line="2450"/>
|
||||||
<source>Entry added to the Address Book. Edit the label to your liking.</source>
|
<source>Entry added to the Address Book. Edit the label to your liking.</source>
|
||||||
<translation>Запись добавлена в Адресную Книгу. Вы можете ее отредактировать.</translation>
|
<translation>Запись добавлена в Адресную Книгу. Вы можете ее отредактировать.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2502"/>
|
<location filename="../bitmessageqt/__init__.py" line="2515"/>
|
||||||
<source>Moved items to trash. There is no user interface to view your trash, but it is still on disk if you are desperate to get it back.</source>
|
<source>Moved items to trash. There is no user interface to view your trash, but it is still on disk if you are desperate to get it back.</source>
|
||||||
<translation>Удалено в корзину. Чтобы попасть в корзину, Вам нужно будет найти файл корзины на диске.</translation>
|
<translation>Удалено в корзину. Чтобы попасть в корзину, Вам нужно будет найти файл корзины на диске.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2476"/>
|
<location filename="../bitmessageqt/__init__.py" line="2489"/>
|
||||||
<source>Save As...</source>
|
<source>Save As...</source>
|
||||||
<translation>Сохранить как ...</translation>
|
<translation>Сохранить как ...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2485"/>
|
<location filename="../bitmessageqt/__init__.py" line="2498"/>
|
||||||
<source>Write error.</source>
|
<source>Write error.</source>
|
||||||
<translation>Ошибка записи.</translation>
|
<translation>Ошибка записи.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2596"/>
|
<location filename="../bitmessageqt/__init__.py" line="2609"/>
|
||||||
<source>No addresses selected.</source>
|
<source>No addresses selected.</source>
|
||||||
<translation>Вы не выбрали адрес.</translation>
|
<translation>Вы не выбрали адрес.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3063"/>
|
<location filename="../bitmessageqt/__init__.py" line="3082"/>
|
||||||
<source>Options have been disabled because they either aren't applicable or because they haven't yet been implemented for your operating system.</source>
|
<source>Options have been disabled because they either aren't applicable or because they haven't yet been implemented for your operating system.</source>
|
||||||
<translation>Опции были отключены, потому что ли они либо не подходят, либо еще не выполнены под Вашу операционную систему.</translation>
|
<translation>Опции были отключены, потому что ли они либо не подходят, либо еще не выполнены под Вашу операционную систему.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3264"/>
|
<location filename="../bitmessageqt/__init__.py" line="3283"/>
|
||||||
<source>The address should start with ''BM-''</source>
|
<source>The address should start with ''BM-''</source>
|
||||||
<translation>Адрес должен начинаться с "BM-"</translation>
|
<translation>Адрес должен начинаться с "BM-"</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3267"/>
|
<location filename="../bitmessageqt/__init__.py" line="3286"/>
|
||||||
<source>The address is not typed or copied correctly (the checksum failed).</source>
|
<source>The address is not typed or copied correctly (the checksum failed).</source>
|
||||||
<translation>Адрес введен или скопирован неверно (контрольная сумма не сходится).</translation>
|
<translation>Адрес введен или скопирован неверно (контрольная сумма не сходится).</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3270"/>
|
<location filename="../bitmessageqt/__init__.py" line="3289"/>
|
||||||
<source>The version number of this address is higher than this software can support. Please upgrade Bitmessage.</source>
|
<source>The version number of this address is higher than this software can support. Please upgrade Bitmessage.</source>
|
||||||
<translation>Версия этого адреса более поздняя, чем Ваша программа. Пожалуйста, обновите программу Bitmessage.</translation>
|
<translation>Версия этого адреса более поздняя, чем Ваша программа. Пожалуйста, обновите программу Bitmessage.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3273"/>
|
<location filename="../bitmessageqt/__init__.py" line="3292"/>
|
||||||
<source>The address contains invalid characters.</source>
|
<source>The address contains invalid characters.</source>
|
||||||
<translation>Адрес содержит запрещенные символы.</translation>
|
<translation>Адрес содержит запрещенные символы.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3276"/>
|
<location filename="../bitmessageqt/__init__.py" line="3295"/>
|
||||||
<source>Some data encoded in the address is too short.</source>
|
<source>Some data encoded in the address is too short.</source>
|
||||||
<translation>Данные, закодированные в адресе, слишком короткие.</translation>
|
<translation>Данные, закодированные в адресе, слишком короткие.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3279"/>
|
<location filename="../bitmessageqt/__init__.py" line="3298"/>
|
||||||
<source>Some data encoded in the address is too long.</source>
|
<source>Some data encoded in the address is too long.</source>
|
||||||
<translation>Данные, закодированные в адресе, слишком длинные.</translation>
|
<translation>Данные, закодированные в адресе, слишком длинные.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3324"/>
|
<location filename="../bitmessageqt/__init__.py" line="3343"/>
|
||||||
<source>You are using TCP port %1. (This can be changed in the settings).</source>
|
<source>You are using TCP port %1. (This can be changed in the settings).</source>
|
||||||
<translation>Вы используете TCP порт %1 (Его можно поменять в настройках).</translation>
|
<translation>Вы используете TCP порт %1 (Его можно поменять в настройках).</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="524"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="532"/>
|
||||||
<source>Bitmessage</source>
|
<source>Bitmessage</source>
|
||||||
<translation>Bitmessage</translation>
|
<translation>Bitmessage</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="565"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="573"/>
|
||||||
<source>To</source>
|
<source>To</source>
|
||||||
<translation>Кому</translation>
|
<translation>Кому</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="567"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="575"/>
|
||||||
<source>From</source>
|
<source>From</source>
|
||||||
<translation>От кого</translation>
|
<translation>От кого</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="569"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="577"/>
|
||||||
<source>Subject</source>
|
<source>Subject</source>
|
||||||
<translation>Тема</translation>
|
<translation>Тема</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="539"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="547"/>
|
||||||
<source>Received</source>
|
<source>Received</source>
|
||||||
<translation>Получено</translation>
|
<translation>Получено</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="540"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="548"/>
|
||||||
<source>Inbox</source>
|
<source>Inbox</source>
|
||||||
<translation>Входящие</translation>
|
<translation>Входящие</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="541"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="549"/>
|
||||||
<source>Load from Address book</source>
|
<source>Load from Address book</source>
|
||||||
<translation>Взять из адресной книги</translation>
|
<translation>Взять из адресной книги</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="543"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="551"/>
|
||||||
<source>Message:</source>
|
<source>Message:</source>
|
||||||
<translation>Сообщение:</translation>
|
<translation>Сообщение:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="544"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="552"/>
|
||||||
<source>Subject:</source>
|
<source>Subject:</source>
|
||||||
<translation>Тема:</translation>
|
<translation>Тема:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="545"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="553"/>
|
||||||
<source>Send to one or more specific people</source>
|
<source>Send to one or more specific people</source>
|
||||||
<translation>Отправить одному или нескольким указанным получателям</translation>
|
<translation>Отправить одному или нескольким указанным получателям</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -593,184 +591,184 @@ It is important that you back up this file. Would you like to open the file now?
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:9pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></source>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></source>
|
||||||
<translation><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<translation type="obsolete"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:9pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></translation>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="551"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="559"/>
|
||||||
<source>To:</source>
|
<source>To:</source>
|
||||||
<translation>Кому:</translation>
|
<translation>Кому:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="552"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="560"/>
|
||||||
<source>From:</source>
|
<source>From:</source>
|
||||||
<translation>От:</translation>
|
<translation>От:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="553"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="561"/>
|
||||||
<source>Broadcast to everyone who is subscribed to your address</source>
|
<source>Broadcast to everyone who is subscribed to your address</source>
|
||||||
<translation>Рассылка всем, кто подписался на Ваш адрес</translation>
|
<translation>Рассылка всем, кто подписался на Ваш адрес</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="555"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="563"/>
|
||||||
<source>Be aware that broadcasts are only encrypted with your address. Anyone who knows your address can read them.</source>
|
<source>Be aware that broadcasts are only encrypted with your address. Anyone who knows your address can read them.</source>
|
||||||
<translation>Пожалуйста, учитывайте, что рассылки шифруются лишь Вашим адресом. Любой человек, который знает Ваш адрес, сможет прочитать Вашу рассылку.</translation>
|
<translation>Пожалуйста, учитывайте, что рассылки шифруются лишь Вашим адресом. Любой человек, который знает Ваш адрес, сможет прочитать Вашу рассылку.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="571"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="579"/>
|
||||||
<source>Status</source>
|
<source>Status</source>
|
||||||
<translation>Статус</translation>
|
<translation>Статус</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="572"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="580"/>
|
||||||
<source>Sent</source>
|
<source>Sent</source>
|
||||||
<translation>Отправленные</translation>
|
<translation>Отправленные</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="576"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="584"/>
|
||||||
<source>Label (not shown to anyone)</source>
|
<source>Label (not shown to anyone)</source>
|
||||||
<translation>Название (не показывается никому)</translation>
|
<translation>Имя (не показывается никому)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="605"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="613"/>
|
||||||
<source>Address</source>
|
<source>Address</source>
|
||||||
<translation>Адрес</translation>
|
<translation>Адрес</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="580"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="588"/>
|
||||||
<source>Stream</source>
|
<source>Stream</source>
|
||||||
<translation>Поток</translation>
|
<translation>Поток</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="581"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="589"/>
|
||||||
<source>Your Identities</source>
|
<source>Your Identities</source>
|
||||||
<translation>Ваши Адреса</translation>
|
<translation>Ваши Адреса</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="582"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="590"/>
|
||||||
<source>Here you can subscribe to 'broadcast messages' that are sent by other users. Messages will appear in your Inbox. Addresses here override those on the Blacklist tab.</source>
|
<source>Here you can subscribe to 'broadcast messages' that are sent by other users. Messages will appear in your Inbox. Addresses here override those on the Blacklist tab.</source>
|
||||||
<translation>Здесь Вы можете подписаться на рассылки от других пользователей. Все рассылки будут появляться у Вас во Входящих. Вы будете следить за всеми адресами, указанными здесь, даже если они в черном списке.</translation>
|
<translation>Здесь Вы можете подписаться на рассылки от других пользователей. Все рассылки будут появляться у Вас во Входящих. Вы будете следить за всеми адресами, указанными здесь, даже если они в черном списке.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="583"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="591"/>
|
||||||
<source>Add new Subscription</source>
|
<source>Add new Subscription</source>
|
||||||
<translation>Добавить новую подписку</translation>
|
<translation>Добавить новую подписку</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="586"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="594"/>
|
||||||
<source>Label</source>
|
<source>Label</source>
|
||||||
<translation>Название</translation>
|
<translation>Имя</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="589"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="597"/>
|
||||||
<source>Subscriptions</source>
|
<source>Subscriptions</source>
|
||||||
<translation>Подписки</translation>
|
<translation>Подписки</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="590"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="598"/>
|
||||||
<source>The Address book is useful for adding names or labels to other people's Bitmessage addresses so that you can recognize them more easily in your inbox. You can add entries here using the 'Add' button, or from your inbox by right-clicking on a message.</source>
|
<source>The Address book is useful for adding names or labels to other people's Bitmessage addresses so that you can recognize them more easily in your inbox. You can add entries here using the 'Add' button, or from your inbox by right-clicking on a message.</source>
|
||||||
<translation>Адресная книга удобна для присвоения осмысленных имен Bitmessage адресам Ваших друзей. Вы можете добавлять новые записи с помощью кнопки "Добавить новую запись", или же правым кликом мышки на сообщении.</translation>
|
<translation>Адресная книга удобна для присвоения осмысленных имен Bitmessage адресам Ваших друзей. Вы можете добавлять новые записи с помощью кнопки "Добавить новую запись", или же правым кликом мышки на сообщении.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="603"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="611"/>
|
||||||
<source>Name or Label</source>
|
<source>Name or Label</source>
|
||||||
<translation>Название</translation>
|
<translation>Имя</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="598"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="606"/>
|
||||||
<source>Use a Blacklist (Allow all incoming messages except those on the Blacklist)</source>
|
<source>Use a Blacklist (Allow all incoming messages except those on the Blacklist)</source>
|
||||||
<translation>Использовать черный список (Разрешить все входящие сообщения, кроме указанных в черном списке)</translation>
|
<translation>Использовать черный список (Разрешить все входящие сообщения, кроме указанных в черном списке)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="599"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="607"/>
|
||||||
<source>Use a Whitelist (Block all incoming messages except those on the Whitelist)</source>
|
<source>Use a Whitelist (Block all incoming messages except those on the Whitelist)</source>
|
||||||
<translation>Использовать белый список (блокировать все входящие сообщения, кроме указанных в белом списке)</translation>
|
<translation>Использовать белый список (блокировать все входящие сообщения, кроме указанных в белом списке)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="606"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="614"/>
|
||||||
<source>Blacklist</source>
|
<source>Blacklist</source>
|
||||||
<translation>Черный список</translation>
|
<translation>Черный список</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="608"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="616"/>
|
||||||
<source>Stream #</source>
|
<source>Stream #</source>
|
||||||
<translation>№ потока</translation>
|
<translation>№ потока</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="610"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="618"/>
|
||||||
<source>Connections</source>
|
<source>Connections</source>
|
||||||
<translation>Соединений</translation>
|
<translation>Соединений</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="611"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="619"/>
|
||||||
<source>Total connections: 0</source>
|
<source>Total connections: 0</source>
|
||||||
<translation>Всего соединений: 0</translation>
|
<translation>Всего соединений: 0</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="612"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="620"/>
|
||||||
<source>Since startup at asdf:</source>
|
<source>Since startup at asdf:</source>
|
||||||
<translation>С начала работы программы в asdf:</translation>
|
<translation>С начала работы программы в asdf:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="613"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="621"/>
|
||||||
<source>Processed 0 person-to-person message.</source>
|
<source>Processed 0 person-to-person message.</source>
|
||||||
<translation>Обработано 0 сообщений.</translation>
|
<translation>Обработано 0 сообщений.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="614"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="622"/>
|
||||||
<source>Processed 0 public key.</source>
|
<source>Processed 0 public key.</source>
|
||||||
<translation>Обработано 0 открытых ключей.</translation>
|
<translation>Обработано 0 открытых ключей.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="615"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="623"/>
|
||||||
<source>Processed 0 broadcast.</source>
|
<source>Processed 0 broadcast.</source>
|
||||||
<translation>Обработано 0 рассылок.</translation>
|
<translation>Обработано 0 рассылок.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="616"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="624"/>
|
||||||
<source>Network Status</source>
|
<source>Network Status</source>
|
||||||
<translation>Статус сети</translation>
|
<translation>Статус сети</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="617"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="625"/>
|
||||||
<source>File</source>
|
<source>File</source>
|
||||||
<translation>Файл</translation>
|
<translation>Файл</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="627"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="635"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>Настройки</translation>
|
<translation>Настройки</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="624"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="632"/>
|
||||||
<source>Help</source>
|
<source>Help</source>
|
||||||
<translation>Помощь</translation>
|
<translation>Помощь</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="620"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="628"/>
|
||||||
<source>Import keys</source>
|
<source>Import keys</source>
|
||||||
<translation>Импортировать ключи</translation>
|
<translation>Импортировать ключи</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="621"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="629"/>
|
||||||
<source>Manage keys</source>
|
<source>Manage keys</source>
|
||||||
<translation>Управлять ключами</translation>
|
<translation>Управлять ключами</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="626"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="634"/>
|
||||||
<source>About</source>
|
<source>About</source>
|
||||||
<translation>О программе</translation>
|
<translation>О программе</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="628"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="636"/>
|
||||||
<source>Regenerate deterministic addresses</source>
|
<source>Regenerate deterministic addresses</source>
|
||||||
<translation>Сгенерировать заново все адреса</translation>
|
<translation>Сгенерировать заново все адреса</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="629"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="637"/>
|
||||||
<source>Delete all trashed messages</source>
|
<source>Delete all trashed messages</source>
|
||||||
<translation>Стереть все сообщения из корзины</translation>
|
<translation>Стереть все сообщения из корзины</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -780,130 +778,142 @@ p, li { white-space: pre-wrap; }
|
||||||
<translation>Сообщение отправлено в %1</translation>
|
<translation>Сообщение отправлено в %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1197"/>
|
<location filename="../bitmessageqt/__init__.py" line="1207"/>
|
||||||
<source>Chan name needed</source>
|
<source>Chan name needed</source>
|
||||||
<translation>Требуется имя chan-а</translation>
|
<translation>Требуется имя chan-а</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1197"/>
|
<location filename="../bitmessageqt/__init__.py" line="1207"/>
|
||||||
<source>You didn't enter a chan name.</source>
|
<source>You didn't enter a chan name.</source>
|
||||||
<translation>Вы не ввели имя chan-a.</translation>
|
<translation>Вы не ввели имя chan-a.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1217"/>
|
<location filename="../bitmessageqt/__init__.py" line="1227"/>
|
||||||
<source>Address already present</source>
|
<source>Address already present</source>
|
||||||
<translation>Адрес уже существует</translation>
|
<translation>Адрес уже существует</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1217"/>
|
<location filename="../bitmessageqt/__init__.py" line="1227"/>
|
||||||
<source>Could not add chan because it appears to already be one of your identities.</source>
|
<source>Could not add chan because it appears to already be one of your identities.</source>
|
||||||
<translation>Не могу добавить chan, потому что это один из Ваших уже существующих адресов.</translation>
|
<translation>Не могу добавить chan, потому что это один из Ваших уже существующих адресов.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1222"/>
|
<location filename="../bitmessageqt/__init__.py" line="1232"/>
|
||||||
<source>Success</source>
|
<source>Success</source>
|
||||||
<translation>Отлично</translation>
|
<translation>Отлично</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1192"/>
|
<location filename="../bitmessageqt/__init__.py" line="1202"/>
|
||||||
<source>Successfully created chan. To let others join your chan, give them the chan name and this Bitmessage address: %1. This address also appears in 'Your Identities'.</source>
|
<source>Successfully created chan. To let others join your chan, give them the chan name and this Bitmessage address: %1. This address also appears in 'Your Identities'.</source>
|
||||||
<translation>Chan был успешно создан. Чтобы добавить других в сhan, сообщите им имя chan-а и этот Bitmessage адрес: %1. Этот адрес также отображается во вкладке "Ваши Адреса".</translation>
|
<translation>Chan был успешно создан. Чтобы добавить других в сhan, сообщите им имя chan-а и этот Bitmessage адрес: %1. Этот адрес также отображается во вкладке "Ваши Адреса".</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1201"/>
|
<location filename="../bitmessageqt/__init__.py" line="1211"/>
|
||||||
<source>Address too new</source>
|
<source>Address too new</source>
|
||||||
<translation>Адрес слишком новый</translation>
|
<translation>Адрес слишком новый</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1201"/>
|
<location filename="../bitmessageqt/__init__.py" line="1211"/>
|
||||||
<source>Although that Bitmessage address might be valid, its version number is too new for us to handle. Perhaps you need to upgrade Bitmessage.</source>
|
<source>Although that Bitmessage address might be valid, its version number is too new for us to handle. Perhaps you need to upgrade Bitmessage.</source>
|
||||||
<translation>Этот Bitmessage адрес похож на правильный, но его версия этого адреса слишком новая. Возможно, Вам необходимо обновить программу Bitmessage.</translation>
|
<translation>Этот Bitmessage адрес похож на правильный, но его версия этого адреса слишком новая. Возможно, Вам необходимо обновить программу Bitmessage.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1205"/>
|
<location filename="../bitmessageqt/__init__.py" line="1215"/>
|
||||||
<source>Address invalid</source>
|
<source>Address invalid</source>
|
||||||
<translation>Неправильный адрес</translation>
|
<translation>Неправильный адрес</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1205"/>
|
<location filename="../bitmessageqt/__init__.py" line="1215"/>
|
||||||
<source>That Bitmessage address is not valid.</source>
|
<source>That Bitmessage address is not valid.</source>
|
||||||
<translation>Этот Bitmessage адрес введен неправильно.</translation>
|
<translation>Этот Bitmessage адрес введен неправильно.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1213"/>
|
<location filename="../bitmessageqt/__init__.py" line="1223"/>
|
||||||
<source>Address does not match chan name</source>
|
<source>Address does not match chan name</source>
|
||||||
<translation>Адрес не сходится с именем chan-а</translation>
|
<translation>Адрес не сходится с именем chan-а</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1213"/>
|
<location filename="../bitmessageqt/__init__.py" line="1223"/>
|
||||||
<source>Although the Bitmessage address you entered was valid, it doesn't match the chan name.</source>
|
<source>Although the Bitmessage address you entered was valid, it doesn't match the chan name.</source>
|
||||||
<translation>Вы ввели верный адрес Bitmessage, но он не сходится с именем chan-а.</translation>
|
<translation>Вы ввели верный адрес Bitmessage, но он не сходится с именем chan-а.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1222"/>
|
<location filename="../bitmessageqt/__init__.py" line="1232"/>
|
||||||
<source>Successfully joined chan. </source>
|
<source>Successfully joined chan. </source>
|
||||||
<translation>Успешно присоединились к chan-у. </translation>
|
<translation>Успешно присоединились к chan-у. </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="2046"/>
|
<location filename="../bitmessageqt/__init__.py" line="2056"/>
|
||||||
<source>Bitmessage will use your proxy from now on but you may want to manually restart Bitmessage now to close existing connections (if any).</source>
|
<source>Bitmessage will use your proxy from now on but you may want to manually restart Bitmessage now to close existing connections (if any).</source>
|
||||||
<translation>Bitmessage будет использовать Ваш прокси, начиная прямо сейчас. Тем не менее Вам имеет смысл перезапустить Bitmessage, чтобы закрыть уже существующие соединения.</translation>
|
<translation>Bitmessage будет использовать Ваш прокси, начиная прямо сейчас. Тем не менее Вам имеет смысл перезапустить Bitmessage, чтобы закрыть уже существующие соединения.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3245"/>
|
<location filename="../bitmessageqt/__init__.py" line="3264"/>
|
||||||
<source>This is a chan address. You cannot use it as a pseudo-mailing list.</source>
|
<source>This is a chan address. You cannot use it as a pseudo-mailing list.</source>
|
||||||
<translation>Это адрес chan-а. Вы не можете его использовать как адрес рассылки.</translation>
|
<translation>Это адрес chan-а. Вы не можете его использовать как адрес рассылки.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="557"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="565"/>
|
||||||
<source>Search</source>
|
<source>Search</source>
|
||||||
<translation>Поиск</translation>
|
<translation>Поиск</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="558"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="566"/>
|
||||||
<source>All</source>
|
<source>All</source>
|
||||||
<translation>Всем</translation>
|
<translation>По всем полям</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="562"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="570"/>
|
||||||
<source>Message</source>
|
<source>Message</source>
|
||||||
<translation>Текст сообщения</translation>
|
<translation>Текст сообщения</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="630"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="638"/>
|
||||||
<source>Join / Create chan</source>
|
<source>Join / Create chan</source>
|
||||||
<translation>Подсоединиться или создать chan</translation>
|
<translation>Подсоединиться или создать chan</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="173"/>
|
<location filename="../bitmessageqt/__init__.py" line="173"/>
|
||||||
<source>Mark Unread</source>
|
<source>Mark Unread</source>
|
||||||
<translatorcomment>...</translatorcomment>
|
<translation>Отметить как непрочитанное</translation>
|
||||||
<translation type="unfinished">Mark Unread</translation>
|
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="1728"/>
|
<location filename="../bitmessageqt/__init__.py" line="1735"/>
|
||||||
<source>Fetched address from namecoin identity.</source>
|
<source>Fetched address from namecoin identity.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Получить адрес через Namecoin.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/__init__.py" line="3204"/>
|
<location filename="../bitmessageqt/__init__.py" line="3223"/>
|
||||||
<source>Testing...</source>
|
<source>Testing...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Проверяем...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="542"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="550"/>
|
||||||
<source>Fetch Namecoin ID</source>
|
<source>Fetch Namecoin ID</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Получить Namecoin ID</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="623"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="631"/>
|
||||||
<source>Ctrl+Q</source>
|
<source>Ctrl+Q</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Ctrl+Q</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/bitmessageui.py" line="625"/>
|
<location filename="../bitmessageqt/bitmessageui.py" line="633"/>
|
||||||
<source>F1</source>
|
<source>F1</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>F1</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/bitmessageui.py" line="554"/>
|
||||||
|
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2';"><br /></p></body></html></source>
|
||||||
|
<translation><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2';"><br /></p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@ -982,7 +992,7 @@ The 'Random Number' option is selected by default but deterministic ad
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/newaddressdialog.py" line="188"/>
|
<location filename="../bitmessageqt/newaddressdialog.py" line="188"/>
|
||||||
<source>Label (not shown to anyone except you)</source>
|
<source>Label (not shown to anyone except you)</source>
|
||||||
<translation>Название (не показывается никому кроме Вас)</translation>
|
<translation>Имя (не показывается никому кроме Вас)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/newaddressdialog.py" line="189"/>
|
<location filename="../bitmessageqt/newaddressdialog.py" line="189"/>
|
||||||
|
@ -1058,7 +1068,7 @@ The 'Random Number' option is selected by default but deterministic ad
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/newsubscriptiondialog.py" line="58"/>
|
<location filename="../bitmessageqt/newsubscriptiondialog.py" line="58"/>
|
||||||
<source>Label</source>
|
<source>Label</source>
|
||||||
<translation>Название</translation>
|
<translation>Имя</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/newsubscriptiondialog.py" line="59"/>
|
<location filename="../bitmessageqt/newsubscriptiondialog.py" line="59"/>
|
||||||
|
@ -1111,7 +1121,7 @@ The 'Random Number' option is selected by default but deterministic ad
|
||||||
<source>version ?</source>
|
<source>version ?</source>
|
||||||
<translation>версия ?</translation>
|
<translation>версия ?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message utf8="true">
|
<message encoding="UTF-8">
|
||||||
<location filename="../bitmessageqt/about.py" line="60"/>
|
<location filename="../bitmessageqt/about.py" line="60"/>
|
||||||
<source>Copyright © 2013 Jonathan Warren</source>
|
<source>Copyright © 2013 Jonathan Warren</source>
|
||||||
<translation>Копирайт © 2013 Джонатан Уоррен</translation>
|
<translation>Копирайт © 2013 Джонатан Уоррен</translation>
|
||||||
|
@ -1132,22 +1142,22 @@ The 'Random Number' option is selected by default but deterministic ad
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/connect.py" line="56"/>
|
<location filename="../bitmessageqt/connect.py" line="56"/>
|
||||||
<source>Bitmessage</source>
|
<source>Bitmessage</source>
|
||||||
<translation type="unfinished">Bitmessage</translation>
|
<translation>Bitmessage</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/connect.py" line="57"/>
|
<location filename="../bitmessageqt/connect.py" line="57"/>
|
||||||
<source>Bitmessage won't connect to anyone until you let it. </source>
|
<source>Bitmessage won't connect to anyone until you let it. </source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Bitmessage не будет соединяться ни с кем, пока Вы не разрешите.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/connect.py" line="58"/>
|
<location filename="../bitmessageqt/connect.py" line="58"/>
|
||||||
<source>Connect now</source>
|
<source>Connect now</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Соединиться прямо сейчас</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/connect.py" line="59"/>
|
<location filename="../bitmessageqt/connect.py" line="59"/>
|
||||||
<source>Let me configure special network settings first</source>
|
<source>Let me configure special network settings first</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Я хочу сперва настроить сетевые настройки</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@ -1241,7 +1251,7 @@ The 'Random Number' option is selected by default but deterministic ad
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/newchandialog.py" line="101"/>
|
<location filename="../bitmessageqt/newchandialog.py" line="101"/>
|
||||||
<source><html><head/><body><p>Enter a name for your chan. If you choose a sufficiently complex chan name (like a strong and unique passphrase) and none of your friends share it publicly then the chan will be secure and private. If you and someone else both create a chan with the same chan name then it is currently very likely that they will be the same chan.</p></body></html></source>
|
<source><html><head/><body><p>Enter a name for your chan. If you choose a sufficiently complex chan name (like a strong and unique passphrase) and none of your friends share it publicly then the chan will be secure and private. If you and someone else both create a chan with the same chan name then it is currently very likely that they will be the same chan.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation><html><head/><body><p>Введите имя Вашего chan-a. Если Вы выберете достаточно сложное имя для chan-а (например, сложную и необычную секретную фразу) и никто из Ваших друзей не опубликует эту фразу, то Вам chan будет надежно зашифрован. Если Вы и кто-то другой независимо создадите chan с полностью идентичным именем, то скорее всего Вы получите в итоге один и тот же chan.</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@ -1305,214 +1315,268 @@ The 'Random Number' option is selected by default but deterministic ad
|
||||||
<context>
|
<context>
|
||||||
<name>settingsDialog</name>
|
<name>settingsDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="335"/>
|
<location filename="../bitmessageqt/settings.py" line="339"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>Настройки</translation>
|
<translation>Настройки</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="340"/>
|
<location filename="../bitmessageqt/settings.py" line="341"/>
|
||||||
<source>Start Bitmessage on user login</source>
|
<source>Start Bitmessage on user login</source>
|
||||||
<translation>Запускать Bitmessage при входе в систему</translation>
|
<translation>Запускать Bitmessage при входе в систему</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="336"/>
|
<location filename="../bitmessageqt/settings.py" line="344"/>
|
||||||
<source>Start Bitmessage in the tray (don't show main window)</source>
|
<source>Start Bitmessage in the tray (don't show main window)</source>
|
||||||
<translation>Запускать Bitmessage в свернутом виде (не показывать главное окно)</translation>
|
<translation>Запускать Bitmessage в свернутом виде (не показывать главное окно)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="338"/>
|
<location filename="../bitmessageqt/settings.py" line="340"/>
|
||||||
<source>Minimize to tray</source>
|
<source>Minimize to tray</source>
|
||||||
<translation>Сворачивать в трей</translation>
|
<translation>Сворачивать в трей</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="337"/>
|
<location filename="../bitmessageqt/settings.py" line="342"/>
|
||||||
<source>Show notification when message received</source>
|
<source>Show notification when message received</source>
|
||||||
<translation>Показывать уведомления при получении новых сообщений</translation>
|
<translation>Показывать уведомления при получении новых сообщений</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="341"/>
|
<location filename="../bitmessageqt/settings.py" line="343"/>
|
||||||
<source>Run in Portable Mode</source>
|
<source>Run in Portable Mode</source>
|
||||||
<translation>Запустить в переносном режиме</translation>
|
<translation>Запустить в переносном режиме</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="339"/>
|
<location filename="../bitmessageqt/settings.py" line="345"/>
|
||||||
<source>In Portable Mode, messages and config files are stored in the same directory as the program rather than the normal application-data folder. This makes it convenient to run Bitmessage from a USB thumb drive.</source>
|
<source>In Portable Mode, messages and config files are stored in the same directory as the program rather than the normal application-data folder. This makes it convenient to run Bitmessage from a USB thumb drive.</source>
|
||||||
<translation>В переносном режиме, все сообщения и конфигурационные файлы сохраняются в той же самой папке что и сама программа. Это делает более удобным использование Bitmessage с USB-флэшки.</translation>
|
<translation>В переносном режиме, все сообщения и конфигурационные файлы сохраняются в той же самой папке что и сама программа. Это делает более удобным использование Bitmessage с USB-флэшки.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="344"/>
|
<location filename="../bitmessageqt/settings.py" line="357"/>
|
||||||
<source>User Interface</source>
|
<source>User Interface</source>
|
||||||
<translation>Пользовательские</translation>
|
<translation>Пользовательские</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="345"/>
|
<location filename="../bitmessageqt/settings.py" line="358"/>
|
||||||
<source>Listening port</source>
|
<source>Listening port</source>
|
||||||
<translation>Порт прослушивания</translation>
|
<translation>Порт прослушивания</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="346"/>
|
<location filename="../bitmessageqt/settings.py" line="359"/>
|
||||||
<source>Listen for connections on port:</source>
|
<source>Listen for connections on port:</source>
|
||||||
<translation>Прослушивать соединения на порту:</translation>
|
<translation>Прослушивать соединения на порту:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="347"/>
|
<location filename="../bitmessageqt/settings.py" line="360"/>
|
||||||
<source>Proxy server / Tor</source>
|
<source>Proxy server / Tor</source>
|
||||||
<translation>Прокси сервер / Tor</translation>
|
<translation>Прокси сервер / Tor</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="348"/>
|
<location filename="../bitmessageqt/settings.py" line="361"/>
|
||||||
<source>Type:</source>
|
<source>Type:</source>
|
||||||
<translation>Тип:</translation>
|
<translation>Тип:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="349"/>
|
<location filename="../bitmessageqt/settings.py" line="362"/>
|
||||||
<source>none</source>
|
<source>none</source>
|
||||||
<translation>отсутствует</translation>
|
<translation>отсутствует</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="350"/>
|
<location filename="../bitmessageqt/settings.py" line="363"/>
|
||||||
<source>SOCKS4a</source>
|
<source>SOCKS4a</source>
|
||||||
<translation>SOCKS4a</translation>
|
<translation>SOCKS4a</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="351"/>
|
<location filename="../bitmessageqt/settings.py" line="364"/>
|
||||||
<source>SOCKS5</source>
|
<source>SOCKS5</source>
|
||||||
<translation>SOCKS5</translation>
|
<translation>SOCKS5</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="352"/>
|
<location filename="../bitmessageqt/settings.py" line="365"/>
|
||||||
<source>Server hostname:</source>
|
<source>Server hostname:</source>
|
||||||
<translation>Адрес сервера:</translation>
|
<translation>Адрес сервера:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="371"/>
|
<location filename="../bitmessageqt/settings.py" line="384"/>
|
||||||
<source>Port:</source>
|
<source>Port:</source>
|
||||||
<translation>Порт:</translation>
|
<translation>Порт:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="354"/>
|
<location filename="../bitmessageqt/settings.py" line="367"/>
|
||||||
<source>Authentication</source>
|
<source>Authentication</source>
|
||||||
<translation>Авторизация</translation>
|
<translation>Авторизация</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="372"/>
|
<location filename="../bitmessageqt/settings.py" line="385"/>
|
||||||
<source>Username:</source>
|
<source>Username:</source>
|
||||||
<translation>Имя пользователя:</translation>
|
<translation>Имя пользователя:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="356"/>
|
<location filename="../bitmessageqt/settings.py" line="369"/>
|
||||||
<source>Pass:</source>
|
<source>Pass:</source>
|
||||||
<translation>Прль:</translation>
|
<translation>Прль:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="358"/>
|
<location filename="../bitmessageqt/settings.py" line="371"/>
|
||||||
<source>Network Settings</source>
|
<source>Network Settings</source>
|
||||||
<translation>Сетевые настройки</translation>
|
<translation>Сетевые настройки</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="359"/>
|
<location filename="../bitmessageqt/settings.py" line="372"/>
|
||||||
<source>When someone sends you a message, their computer must first complete some work. The difficulty of this work, by default, is 1. You may raise this default for new addresses you create by changing the values here. Any new addresses you create will require senders to meet the higher difficulty. There is one exception: if you add a friend or acquaintance to your address book, Bitmessage will automatically notify them when you next send a message that they need only complete the minimum amount of work: difficulty 1. </source>
|
<source>When someone sends you a message, their computer must first complete some work. The difficulty of this work, by default, is 1. You may raise this default for new addresses you create by changing the values here. Any new addresses you create will require senders to meet the higher difficulty. There is one exception: if you add a friend or acquaintance to your address book, Bitmessage will automatically notify them when you next send a message that they need only complete the minimum amount of work: difficulty 1. </source>
|
||||||
<translation>Когда кто-либо отправляет Вам сообщение, его компьютер должен сперва решить определенную вычислительную задачу. Сложность этой задачи по умолчанию равна 1. Вы можете повысить эту сложность для новых адресов, которые Вы создадите, здесь. Таким образом, любые новые адреса, которые Вы создадите, могут требовать от отправителей сложность большую чем 1. Однако, есть одно исключение: если Вы специально добавите Вашего собеседника в адресную книгу, то Bitmessage автоматически уведомит его о том, что для него минимальная сложность будет составлять всегда всего лишь 1.</translation>
|
<translation>Когда кто-либо отправляет Вам сообщение, его компьютер должен сперва решить определенную вычислительную задачу. Сложность этой задачи по умолчанию равна 1. Вы можете повысить эту сложность для новых адресов, которые Вы создадите, здесь. Таким образом, любые новые адреса, которые Вы создадите, могут требовать от отправителей сложность большую чем 1. Однако, есть одно исключение: если Вы специально добавите Вашего собеседника в адресную книгу, то Bitmessage автоматически уведомит его о том, что для него минимальная сложность будет составлять всегда всего лишь 1.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="360"/>
|
<location filename="../bitmessageqt/settings.py" line="373"/>
|
||||||
<source>Total difficulty:</source>
|
<source>Total difficulty:</source>
|
||||||
<translation>Общая сложность:</translation>
|
<translation>Общая сложность:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="361"/>
|
<location filename="../bitmessageqt/settings.py" line="374"/>
|
||||||
<source>Small message difficulty:</source>
|
<source>Small message difficulty:</source>
|
||||||
<translation>Сложность для маленьких сообщений:</translation>
|
<translation>Сложность для маленьких сообщений:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="362"/>
|
<location filename="../bitmessageqt/settings.py" line="375"/>
|
||||||
<source>The 'Small message difficulty' mostly only affects the difficulty of sending small messages. Doubling this value makes it almost twice as difficult to send a small message but doesn't really affect large messages.</source>
|
<source>The 'Small message difficulty' mostly only affects the difficulty of sending small messages. Doubling this value makes it almost twice as difficult to send a small message but doesn't really affect large messages.</source>
|
||||||
<translation>"Сложность для маленьких сообщений" влияет исключительно на небольшие сообщения. Увеличив это число в два раза, вы сделаете отправку маленьких сообщений в два раза сложнее, в то время как сложность отправки больших сообщений не изменится.</translation>
|
<translation>"Сложность для маленьких сообщений" влияет исключительно на небольшие сообщения. Увеличив это число в два раза, вы сделаете отправку маленьких сообщений в два раза сложнее, в то время как сложность отправки больших сообщений не изменится.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="363"/>
|
<location filename="../bitmessageqt/settings.py" line="376"/>
|
||||||
<source>The 'Total difficulty' affects the absolute amount of work the sender must complete. Doubling this value doubles the amount of work.</source>
|
<source>The 'Total difficulty' affects the absolute amount of work the sender must complete. Doubling this value doubles the amount of work.</source>
|
||||||
<translation>"Общая сложность" влияет на абсолютное количество вычислений, которые отправитель должен провести, чтобы отправить сообщение. Увеличив это число в два раза, вы увеличите в два раза объем требуемых вычислений.</translation>
|
<translation>"Общая сложность" влияет на абсолютное количество вычислений, которые отправитель должен провести, чтобы отправить сообщение. Увеличив это число в два раза, вы увеличите в два раза объем требуемых вычислений.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="364"/>
|
<location filename="../bitmessageqt/settings.py" line="377"/>
|
||||||
<source>Demanded difficulty</source>
|
<source>Demanded difficulty</source>
|
||||||
<translation>Требуемая сложность</translation>
|
<translation>Требуемая сложность</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="365"/>
|
<location filename="../bitmessageqt/settings.py" line="378"/>
|
||||||
<source>Here you may set the maximum amount of work you are willing to do to send a message to another person. Setting these values to 0 means that any value is acceptable.</source>
|
<source>Here you may set the maximum amount of work you are willing to do to send a message to another person. Setting these values to 0 means that any value is acceptable.</source>
|
||||||
<translation>Здесь Вы можете установить максимальную вычислительную работу, которую Вы согласны проделать, чтобы отправить сообщение другому пользователю. Ноль означает, чтобы любое значение допустимо.</translation>
|
<translation>Здесь Вы можете установить максимальную вычислительную работу, которую Вы согласны проделать, чтобы отправить сообщение другому пользователю. Ноль означает, чтобы любое значение допустимо.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="366"/>
|
<location filename="../bitmessageqt/settings.py" line="379"/>
|
||||||
<source>Maximum acceptable total difficulty:</source>
|
<source>Maximum acceptable total difficulty:</source>
|
||||||
<translation>Макс допустимая общая сложность:</translation>
|
<translation>Макс допустимая общая сложность:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="367"/>
|
<location filename="../bitmessageqt/settings.py" line="380"/>
|
||||||
<source>Maximum acceptable small message difficulty:</source>
|
<source>Maximum acceptable small message difficulty:</source>
|
||||||
<translation>Макс допустимая сложность для маленький сообщений:</translation>
|
<translation>Макс допустимая сложность для маленький сообщений:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="368"/>
|
<location filename="../bitmessageqt/settings.py" line="381"/>
|
||||||
<source>Max acceptable difficulty</source>
|
<source>Max acceptable difficulty</source>
|
||||||
<translation>Макс допустимая сложность</translation>
|
<translation>Макс допустимая сложность</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="357"/>
|
<location filename="../bitmessageqt/settings.py" line="370"/>
|
||||||
<source>Listen for incoming connections when using proxy</source>
|
<source>Listen for incoming connections when using proxy</source>
|
||||||
<translation>Прослушивать входящие соединения если используется прокси</translation>
|
<translation>Прослушивать входящие соединения если используется прокси</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="342"/>
|
<location filename="../bitmessageqt/settings.py" line="346"/>
|
||||||
<source>Willingly include unencrypted destination address when sending to a mobile device</source>
|
<source>Willingly include unencrypted destination address when sending to a mobile device</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Специально прикреплять незашифрованный адрес получателя, когда посылаем на мобильное устройство</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="343"/>
|
<location filename="../bitmessageqt/settings.py" line="382"/>
|
||||||
<source>Override automatic language localization (use countycode or language code, e.g. 'en_US' or 'en'):</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../bitmessageqt/settings.py" line="369"/>
|
|
||||||
<source><html><head/><body><p>Bitmessage can utilize a different Bitcoin-based program called Namecoin to make addresses human-friendly. For example, instead of having to tell your friend your long Bitmessage address, you can simply tell him to send a message to <span style=" font-style:italic;">test. </span></p><p>(Getting your own Bitmessage address into Namecoin is still rather difficult).</p><p>Bitmessage can use either namecoind directly or a running nmcontrol instance.</p></body></html></source>
|
<source><html><head/><body><p>Bitmessage can utilize a different Bitcoin-based program called Namecoin to make addresses human-friendly. For example, instead of having to tell your friend your long Bitmessage address, you can simply tell him to send a message to <span style=" font-style:italic;">test. </span></p><p>(Getting your own Bitmessage address into Namecoin is still rather difficult).</p><p>Bitmessage can use either namecoind directly or a running nmcontrol instance.</p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation><html><head/><body><p>Bitmessage умеет пользоваться программой Namecoin для того, чтобы сделать адреса более дружественными для пользователей. Например, вместо того, чтобы диктовать Вашему другу длинный и нудный адрес Bitmessage, Вы можете попросить его отправить сообщение на адрес вида <span style=" font-style:italic;">test. </span></p><p>(Перенести Ваш Bitmessage адрес в Namecoin по-прежнему пока довольно сложно).</p><p>Bitmessage может использовать либо прямо namecoind, либо уже запущенную программу nmcontrol.</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="370"/>
|
<location filename="../bitmessageqt/settings.py" line="383"/>
|
||||||
<source>Host:</source>
|
<source>Host:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Адрес:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="373"/>
|
<location filename="../bitmessageqt/settings.py" line="386"/>
|
||||||
<source>Password:</source>
|
<source>Password:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Пароль:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="374"/>
|
<location filename="../bitmessageqt/settings.py" line="387"/>
|
||||||
<source>Test</source>
|
<source>Test</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Проверить</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="375"/>
|
<location filename="../bitmessageqt/settings.py" line="388"/>
|
||||||
<source>Connect to:</source>
|
<source>Connect to:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Подсоединиться к:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="376"/>
|
<location filename="../bitmessageqt/settings.py" line="389"/>
|
||||||
<source>Namecoind</source>
|
<source>Namecoind</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Namecoind</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="377"/>
|
<location filename="../bitmessageqt/settings.py" line="390"/>
|
||||||
<source>NMControl</source>
|
<source>NMControl</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>NMControl</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../bitmessageqt/settings.py" line="378"/>
|
<location filename="../bitmessageqt/settings.py" line="391"/>
|
||||||
<source>Namecoin integration</source>
|
<source>Namecoin integration</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Интеграция с Namecoin</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="347"/>
|
||||||
|
<source>Interface Language</source>
|
||||||
|
<translation>Язык интерфейса</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="348"/>
|
||||||
|
<source>System Settings</source>
|
||||||
|
<comment>system</comment>
|
||||||
|
<translation>Язык по умолчанию</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="349"/>
|
||||||
|
<source>English</source>
|
||||||
|
<comment>en</comment>
|
||||||
|
<translation>English</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="350"/>
|
||||||
|
<source>Esperanto</source>
|
||||||
|
<comment>eo</comment>
|
||||||
|
<translation>Esperanto</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="351"/>
|
||||||
|
<source>Français</source>
|
||||||
|
<comment>fr</comment>
|
||||||
|
<translation>Francais</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="352"/>
|
||||||
|
<source>Deutsch</source>
|
||||||
|
<comment>de</comment>
|
||||||
|
<translation>Deutsch</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="353"/>
|
||||||
|
<source>Español</source>
|
||||||
|
<comment>es</comment>
|
||||||
|
<translation>Espanol</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="354"/>
|
||||||
|
<source>Русский</source>
|
||||||
|
<comment>ru</comment>
|
||||||
|
<translation>Русский</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="355"/>
|
||||||
|
<source>Pirate English</source>
|
||||||
|
<comment>en_pirate</comment>
|
||||||
|
<translation>Pirate English</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../bitmessageqt/settings.py" line="356"/>
|
||||||
|
<source>Other (set in keys.dat)</source>
|
||||||
|
<comment>other</comment>
|
||||||
|
<translation>Другие (настроено в keys.dat)</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
|
Reference in New Issue
Block a user