From 2fedf2dfffbd717ac59e14fdc0685ad3e256213a Mon Sep 17 00:00:00 2001 From: kdmukai Date: Wed, 15 Jan 2025 14:49:03 -0600 Subject: [PATCH] Start using named variables in l10n English source strings --- l10n/messages.pot | 9 +++++---- src/seedsigner/gui/screens/tools_screens.py | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/l10n/messages.pot b/l10n/messages.pot index af0e990e..84ffd5bc 100644 --- a/l10n/messages.pot +++ b/l10n/messages.pot @@ -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 \n" "Language-Team: LANGUAGE \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) diff --git a/src/seedsigner/gui/screens/tools_screens.py b/src/seedsigner/gui/screens/tools_screens.py index 5b40f442..c99c2b7a 100644 --- a/src/seedsigner/gui/screens/tools_screens.py +++ b/src/seedsigner/gui/screens/tools_screens.py @@ -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,