1# note: qt and kivy use different i18n methods
2# FIXME all these messages *cannot* be localized currently!
3
4def to_rtf(msg):
5    return '\n'.join(['<p>' + x + '</p>' for x in msg.split('\n\n')])
6
7MSG_RECOVERABLE_CHANNELS = """
8Add extra data to your channel funding transactions, so that a static backup can be recovered from your seed.
9
10Note 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.
11
12If 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.
13"""
14
15MSG_REQUEST_FORCE_CLOSE = """
16You may choose to initiate a cooperative close, or request the remote peer to force close the channel.
17
18If 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."""
19
20MSG_CREATED_NON_RECOVERABLE_CHANNEL = """
21The channel you created is not recoverable from seed.
22To prevent fund losses, please save this backup on another device.
23It may be imported in another Electrum wallet with the same seed.
24"""
25
26MSG_LIGHTNING_EXPERIMENTAL_WARNING = """
27Lightning support in Electrum is experimental. Do not put large amounts in lightning channels.
28"""
29
30MSG_LIGHTNING_SCB_WARNING = """
31Electrum 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.
32"""
33
34MSG_LIGHTNING_WARNING = MSG_LIGHTNING_EXPERIMENTAL_WARNING + MSG_LIGHTNING_SCB_WARNING
35
36MSG_HELP_TRAMPOLINE = """
37Lightning payments require finding a path through the Lightning Network. You may use trampoline routing, or local routing (gossip).
38
39Downloading 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.
40"""
41
42MGS_CONFLICTING_BACKUP_INSTANCE = """
43Another 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.
44
45Are you sure?
46"""
47
48
49MSG_CAPITAL_GAINS = """
50This 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).
51"""
52
53MSG_NON_TRAMPOLINE_CHANNEL_FROZEN_WITHOUT_GOSSIP = """Trampoline routing is enabled, but this channel is with a non-trampoline node.
54This channel may still be used for receiving, but it is frozen for sending.
55If you want to keep using this channel, you need to disable trampoline routing in your preferences."""
56