add localisation #205

Merged
Astalaseven merged 14 commits from master into master 2013-06-12 19:31:58 +02:00
3 changed files with 63 additions and 14 deletions
Showing only changes of commit fd4a396be1 - Show all commits

View File

@ -366,27 +366,27 @@ class MyForm(QtGui.QMainWindow):
newItem.setFlags( QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled )
self.ui.tableWidgetSent.setItem(0,2,newItem)
if status == 'awaitingpubkey':
statusText = 'Waiting on their encryption key. Will request it again soon.'
statusText = QtGui.QApplication.translate("MainWindow", "Waiting on their encryption key. Will request it again soon.")
elif status == 'doingpowforpubkey':
statusText = 'Encryption key request queued.'
statusText = QtGui.QApplication.translate("MainWindow", "Encryption key request queued.")
elif status == 'msgqueued':
statusText = 'Queued.'
statusText = QtGui.QApplication.translate("MainWindow", "Queued.")
elif status == 'msgsent':
statusText = 'Message sent. Waiting on acknowledgement. Sent at ' + unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(lastactiontime)),'utf-8')
statusText = QtGui.QApplication.translate("MainWindow", "Message sent. Waiting on acknowledgement. Sent at %1").arg(unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(lastactiontime))))
elif status == 'doingmsgpow':
statusText = 'Need to do work to send message. Work is queued.'
statusText = QtGui.QApplication.translate("MainWindow", "Need to do work to send message. Work is queued.")
elif status == 'ackreceived':
statusText = 'Acknowledgement of the message received ' + unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(int(lastactiontime))),'utf-8')
statusText = QtGui.QApplication.translate("MainWindow", "Acknowledgement of the message received %1").arg(unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(int(lastactiontime)))))
elif status == 'broadcastqueued':
statusText = 'Broadcast queued.'
statusText = QtGui.QApplication.translate("MainWindow", "Broadcast queued.")
elif status == 'broadcastsent':
statusText = 'Broadcast on ' + unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(int(lastactiontime))),'utf-8')
statusText = QtGui.QApplication.translate("MainWindow", "Broadcast on %1").arg(unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(int(lastactiontime)))))
elif status == 'toodifficult':
statusText = 'Problem: The work demanded by the recipient is more difficult than you are willing to do. ' + unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(int(lastactiontime))),'utf-8')
statusText = QtGui.QApplication.translate("MainWindow", "Problem: The work demanded by the recipient is more difficult than you are willing to do. %1").arg(unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(int(lastactiontime)))))
elif status == 'forcepow':
statusText = 'Forced difficulty override. Send should start soon.'
statusText = QtGui.QApplication.translate("MainWindow", "Forced difficulty override. Send should start soon.")
else:
statusText = 'Unknown status: ' + status + ' ' + unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(int(lastactiontime))),'utf-8')
statusText = QtGui.QApplication.translate("Unknown status: %1 %2").arg(status).arg(unicode(strftime(shared.config.get('bitmessagesettings', 'timeformat'),localtime(int(lastactiontime)))))
newItem = myTableWidgetItem(statusText)
newItem.setToolTip(statusText)
newItem.setData(Qt.UserRole,QByteArray(ackdata))

Binary file not shown.

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="fr_BE" sourcelanguage="en">
<!DOCTYPE TS><TS version="2.0" language="fr_BE" sourcelanguage="en">
<context>
<name>MainWindow</name>
<message>
@ -311,6 +310,56 @@ p, li { white-space: pre-wrap; }
<source>Since startup on %1</source>
<translation>Depuis lancement le %1</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="369"/>
<source>Waiting on their encryption key. Will request it again soon.</source>
<translation>En attente de la clé de chiffrement. Une nouvelle requête sera bientôt lancée.</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="371"/>
<source>Encryption key request queued.</source>
<translation>Demande de clé de chiffrement en attente.</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="373"/>
<source>Queued.</source>
<translation>En attente</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="377"/>
<source>Need to do work to send message. Work is queued.</source>
<translation>Travail nécessaire pour envoyer le message. Travail en attente.</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="379"/>
<source>Acknowledgement of the message received %1</source>
<translation>Accusé de réception reçu le %1</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="381"/>
<source>Broadcast queued.</source>
<translation>Message de diffusion en attente.</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="383"/>
<source>Broadcast on %1</source>
<translation>Message de diffusion à %1</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="385"/>
<source>Problem: The work demanded by the recipient is more difficult than you are willing to do. %1</source>
<translation>Problème : Le travail demandé par le destinataire est plus difficile que ce que vous avez paramétré. %1</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="387"/>
<source>Forced difficulty override. Send should start soon.</source>
<translation>Neutralisation forcée de la difficulté. L&apos;envoi devrait bientôt commencer.</translation>
</message>
<message>
<location filename="../bitmessageqt/__init__.py" line="375"/>
<source>Message sent. Waiting on acknowledgement. Sent at %1</source>
<translation>Message envoyé. En attente de l&apos;accusé de réception. Envoyé le %1</translation>
</message>
</context>
<context>
<name>NewAddressDialog</name>
@ -475,7 +524,7 @@ L&apos;option \&apos;Nombre Aléatoire\&apos; est sélectionnée par défaut mai
<source>About</source>
<translation>À propos</translation>
</message>
<message utf8="true">
<message encoding="UTF-8">
<location filename="../about.py" line="60"/>
<source>Copyright © 2013 Jonathan Warren</source>
<translation>Copyright © 2013 Jonathan Warren</translation>