Start using named variables in l10n English source strings

This commit is contained in:
kdmukai
2025-01-15 14:49:03 -06:00
parent 46d9a53774
commit 2fedf2dfff
2 changed files with 8 additions and 7 deletions
+5 -4
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: seedsigner 0.8.5-rc1\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2025-01-14 10:35-0600\n"
"POT-Creation-Date: 2025-01-15 10:45-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -539,11 +539,12 @@ msgstr ""
msgid "Build Final Word"
msgstr ""
#. Number of BIP-39 seed words, and the entropy -- in bits, contained within.
#. Final word calc. `mnemonic_length` = 12 or 24. `num_bits` = 7 or 3 (bits of
#. entropy in final word).
#: src/seedsigner/gui/screens/tools_screens.py
msgid ""
"The {}th word is built from {} more entropy bits plus auto-calculated "
"checksum."
"The {mnemonic_length}th word is built from {num_bits} more entropy bits "
"plus auto-calculated checksum."
msgstr ""
#. current coin-flip number vs total flips (e.g. flip 3 of 4)
+3 -3
View File
@@ -183,8 +183,8 @@ class ToolsCalcFinalWordFinalizePromptScreen(ButtonListScreen):
super().__post_init__()
self.components.append(TextArea(
# TRANSLATOR_NOTE: Number of BIP-39 seed words, and the entropy -- in bits, contained within.
text=_("The {}th word is built from {} more entropy bits plus auto-calculated checksum.").format(self.mnemonic_length, self.num_entropy_bits),
# TRANSLATOR_NOTE: Final word calc. `mnemonic_length` = 12 or 24. `num_bits` = 7 or 3 (bits of entropy in final word).
text=_("The {mnemonic_length}th word is built from {num_bits} more entropy bits plus auto-calculated checksum.").format(mnemonic_length=self.mnemonic_length, num_bits=self.num_entropy_bits),
screen_y=self.top_nav.height + int(GUIConstants.COMPONENT_PADDING/2),
))
@@ -454,7 +454,7 @@ class ToolsAddressExplorerAddressTypeScreen(ButtonListScreen):
self.components.append(IconTextLine(
# TRANSLATOR_NOTE: a label for a BIP-380-ish Output Descriptor
label_text=_("Wallet descriptor"),
value_text=self.wallet_descriptor_display_name,
value_text=self.wallet_descriptor_display_name, # TODO: English text from embit (e.g. "1 / 2 multisig"); make l10 friendly
is_text_centered=True,
screen_x=GUIConstants.EDGE_PADDING,
screen_y=self.top_nav.height + GUIConstants.COMPONENT_PADDING,