11 changed files with 57 additions and 49 deletions
@ -1,62 +1,70 @@
|
||||
# note: qt and kivy use different i18n methods |
||||
# FIXME all these messages *cannot* be localized currently! |
||||
from electrum.i18n import _ |
||||
|
||||
# note: kivy uses its own i18n methods in order to allow changing the language at runtime. |
||||
# These strings use electrum.i18n directly, to be GUI-agnostic, so the language for these |
||||
# cannot be changed at runtime. |
||||
|
||||
def to_rtf(msg): |
||||
return '\n'.join(['<p>' + x + '</p>' for x in msg.split('\n\n')]) |
||||
|
||||
MSG_RECOVERABLE_CHANNELS = """ |
||||
Add extra data to your channel funding transactions, so that a static backup can be recovered from your seed. |
||||
|
||||
MSG_RECOVERABLE_CHANNELS = _( |
||||
"""Add extra data to your channel funding transactions, so that a static backup can be recovered from your seed. |
||||
|
||||
Note that static backups only allow you to request a force-close with the remote node. This assumes that the remote node is still online, did not lose its data, and accepts to force close the channel. |
||||
|
||||
If this is enabled, other nodes cannot open a channel to you. Channel recovery data is encrypted, so that only your wallet can decrypt it. However, blockchain analysis will be able to tell that the transaction was probably created by Electrum. |
||||
""" |
||||
If this is enabled, other nodes cannot open a channel to you. Channel recovery data is encrypted, so that only your wallet can decrypt it. However, blockchain analysis will be able to tell that the transaction was probably created by Electrum.""" |
||||
) |
||||
|
||||
MSG_CONFIG_INSTANT_SWAPS = """ |
||||
If this option is checked, your client will complete reverse swaps before the funding transaction is confirmed. |
||||
MSG_CONFIG_INSTANT_SWAPS = _( |
||||
"""If this option is checked, your client will complete reverse swaps before the funding transaction is confirmed. |
||||
|
||||
Note you are at risk of losing the funds in the swap, if the funding transaction never confirms. |
||||
""" |
||||
Note you are at risk of losing the funds in the swap, if the funding transaction never confirms.""" |
||||
) |
||||
|
||||
MSG_COOPERATIVE_CLOSE = """ |
||||
Your node will negotiate the transaction fee with the remote node. This method of closing the channel usually results in the lowest fees.""" |
||||
MSG_COOPERATIVE_CLOSE = _( |
||||
"""Your node will negotiate the transaction fee with the remote node. This method of closing the channel usually results in the lowest fees.""" |
||||
) |
||||
|
||||
MSG_REQUEST_FORCE_CLOSE = """ |
||||
If you request a force-close, your node will pretend that it has lost its data and ask the remote node to broadcast their latest state. Doing so from time to time helps make sure that nodes are honest, because your node can punish them if they broadcast a revoked state.""" |
||||
MSG_REQUEST_FORCE_CLOSE = _( |
||||
"""If you request a force-close, your node will pretend that it has lost its data and ask the remote node to broadcast their latest state. Doing so from time to time helps make sure that nodes are honest, because your node can punish them if they broadcast a revoked state.""" |
||||
) |
||||
|
||||
MSG_CREATED_NON_RECOVERABLE_CHANNEL = """ |
||||
The channel you created is not recoverable from seed. |
||||
MSG_CREATED_NON_RECOVERABLE_CHANNEL = _( |
||||
"""The channel you created is not recoverable from seed. |
||||
To prevent fund losses, please save this backup on another device. |
||||
It may be imported in another Electrum wallet with the same seed. |
||||
""" |
||||
It may be imported in another Electrum wallet with the same seed.""" |
||||
) |
||||
|
||||
MSG_LIGHTNING_EXPERIMENTAL_WARNING = """ |
||||
Lightning support in Electrum is experimental. Do not put large amounts in lightning channels. |
||||
""" |
||||
MSG_LIGHTNING_EXPERIMENTAL_WARNING = _( |
||||
"""Lightning support in Electrum is experimental. Do not put large amounts in lightning channels.""" |
||||
) |
||||
|
||||
MSG_LIGHTNING_SCB_WARNING = """ |
||||
Electrum uses static channel backups. If you lose your wallet file, you will need to request your channel to be force-closed by the remote peer in order to recover your funds. This assumes that the remote peer is reachable, and has not lost its own data. |
||||
""" |
||||
MSG_LIGHTNING_SCB_WARNING = _( |
||||
"""Electrum uses static channel backups. If you lose your wallet file, you will need to request your channel to be force-closed by the remote peer in order to recover your funds. This assumes that the remote peer is reachable, and has not lost its own data.""" |
||||
) |
||||
|
||||
MSG_LIGHTNING_WARNING = MSG_LIGHTNING_EXPERIMENTAL_WARNING + MSG_LIGHTNING_SCB_WARNING |
||||
|
||||
MSG_HELP_TRAMPOLINE = """ |
||||
Lightning payments require finding a path through the Lightning Network. You may use trampoline routing, or local routing (gossip). |
||||
MSG_HELP_TRAMPOLINE = _( |
||||
"""Lightning payments require finding a path through the Lightning Network. You may use trampoline routing, or local routing (gossip). |
||||
|
||||
Downloading the network gossip uses quite some bandwidth and storage, and is not recommended on mobile devices. If you use trampoline, you can only open channels with trampoline nodes. |
||||
""" |
||||
Downloading the network gossip uses quite some bandwidth and storage, and is not recommended on mobile devices. If you use trampoline, you can only open channels with trampoline nodes.""" |
||||
) |
||||
|
||||
MGS_CONFLICTING_BACKUP_INSTANCE = """ |
||||
Another instance of this wallet (same seed) has an open channel with the same remote node. If you create this channel, you will not be able to use both wallets at the same time. |
||||
MGS_CONFLICTING_BACKUP_INSTANCE = _( |
||||
"""Another instance of this wallet (same seed) has an open channel with the same remote node. If you create this channel, you will not be able to use both wallets at the same time. |
||||
|
||||
Are you sure? |
||||
""" |
||||
Are you sure?""" |
||||
) |
||||
|
||||
|
||||
MSG_CAPITAL_GAINS = """ |
||||
This summary covers only on-chain transactions (no lightning!). Capital gains are computed by attaching an acquisition price to each UTXO in the wallet, and uses the order of blockchain events (not FIFO). |
||||
""" |
||||
MSG_CAPITAL_GAINS = _( |
||||
"""This summary covers only on-chain transactions (no lightning!). Capital gains are computed by attaching an acquisition price to each UTXO in the wallet, and uses the order of blockchain events (not FIFO).""" |
||||
) |
||||
|
||||
MSG_NON_TRAMPOLINE_CHANNEL_FROZEN_WITHOUT_GOSSIP = """Trampoline routing is enabled, but this channel is with a non-trampoline node. |
||||
MSG_NON_TRAMPOLINE_CHANNEL_FROZEN_WITHOUT_GOSSIP = _( |
||||
"""Trampoline routing is enabled, but this channel is with a non-trampoline node. |
||||
This channel may still be used for receiving, but it is frozen for sending. |
||||
If you want to keep using this channel, you need to disable trampoline routing in your preferences.""" |
||||
) |
||||
|
||||
Loading…
Reference in new issue