Skip to content

Commit 9edde11

Browse files
mailchuckPeterSurda
authored andcommitted
Translation update
Some function calls were not being identified as text that should be translated.
1 parent 9193c20 commit 9edde11

File tree

9 files changed

+45
-45
lines changed

9 files changed

+45
-45
lines changed

src/class_addressGenerator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def run(self):
8484
payloadLengthExtraBytes = shared.networkDefaultPayloadLengthExtraBytes
8585
if command == 'createRandomAddress':
8686
shared.UISignalQueue.put((
87-
'updateStatusBar', tr.translateText("MainWindow", "Generating one new address")))
87+
'updateStatusBar', tr._translate("MainWindow", "Generating one new address")))
8888
# This next section is a little bit strange. We're going to generate keys over and over until we
8989
# find one that starts with either \x00 or \x00\x00. Then when we pack them into a Bitmessage address,
9090
# we won't store the \x00 or \x00\x00 bytes thus making the
@@ -146,7 +146,7 @@ def run(self):
146146
shared.apiAddressGeneratorReturnQueue.put(address)
147147

148148
shared.UISignalQueue.put((
149-
'updateStatusBar', tr.translateText("MainWindow", "Done generating address. Doing work necessary to broadcast it...")))
149+
'updateStatusBar', tr._translate("MainWindow", "Done generating address. Doing work necessary to broadcast it...")))
150150
shared.UISignalQueue.put(('writeNewAddressToTable', (
151151
label, address, streamNumber)))
152152
shared.reloadMyAddressHashes()
@@ -163,7 +163,7 @@ def run(self):
163163
'WARNING: You are creating deterministic address(es) using a blank passphrase. Bitmessage will do it but it is rather stupid.')
164164
if command == 'createDeterministicAddresses':
165165
shared.UISignalQueue.put((
166-
'updateStatusBar', tr.translateText("MainWindow","Generating %1 new addresses.").arg(str(numberOfAddressesToMake))))
166+
'updateStatusBar', tr._translate("MainWindow","Generating %1 new addresses.").arg(str(numberOfAddressesToMake))))
167167
signingKeyNonce = 0
168168
encryptionKeyNonce = 1
169169
listOfNewAddressesToSendOutThroughTheAPI = [
@@ -240,7 +240,7 @@ def run(self):
240240
if addressAlreadyExists:
241241
logger.info('%s already exists. Not adding it again.' % address)
242242
shared.UISignalQueue.put((
243-
'updateStatusBar', tr.translateText("MainWindow","%1 is already in 'Your Identities'. Not adding it again.").arg(address)))
243+
'updateStatusBar', tr._translate("MainWindow","%1 is already in 'Your Identities'. Not adding it again.").arg(address)))
244244
else:
245245
logger.debug('label: %s' % label)
246246
shared.config.set(address, 'label', label)
@@ -276,7 +276,7 @@ def run(self):
276276
shared.workerQueue.put((
277277
'sendOutOrStoreMyV4Pubkey', address))
278278
shared.UISignalQueue.put((
279-
'updateStatusBar', tr.translateText("MainWindow", "Done generating address")))
279+
'updateStatusBar', tr._translate("MainWindow", "Done generating address")))
280280

281281

282282
# Done generating addresses.

src/class_objectProcessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def processmsg(self, data):
325325
'ackreceived',
326326
int(time.time()),
327327
data[-32:])
328-
shared.UISignalQueue.put(('updateSentItemStatusByAckdata', (data[-32:], tr.translateText("MainWindow",'Acknowledgement of the message received %1').arg(l10n.formatTimestamp()))))
328+
shared.UISignalQueue.put(('updateSentItemStatusByAckdata', (data[-32:], tr._translate("MainWindow",'Acknowledgement of the message received %1').arg(l10n.formatTimestamp()))))
329329
return
330330
else:
331331
logger.info('This was NOT an acknowledgement bound for me.')

src/class_outgoingSynSender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def run(self):
208208

209209
except socks.Socks5AuthError as err:
210210
shared.UISignalQueue.put((
211-
'updateStatusBar', tr.translateText(
211+
'updateStatusBar', tr._translate(
212212
"MainWindow", "SOCKS5 Authentication problem: %1").arg(str(err))))
213213
except socks.Socks5Error as err:
214214
pass

src/class_singleCleaner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def run(self):
9090
except Exception as err:
9191
if "Errno 28" in str(err):
9292
logger.fatal('(while receiveDataThread shared.needToWriteKnownNodesToDisk) Alert: Your disk or data storage volume is full. ')
93-
shared.UISignalQueue.put(('alert', (tr.translateText("MainWindow", "Disk full"), tr.translateText("MainWindow", 'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'), True)))
93+
shared.UISignalQueue.put(('alert', (tr._translate("MainWindow", "Disk full"), tr._translate("MainWindow", 'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'), True)))
9494
if shared.daemon:
9595
os._exit(0)
9696
shared.knownNodesLock.release()

0 commit comments

Comments
 (0)