diff --git a/_templates/choose-your-wallet.html b/_templates/choose-your-wallet.html index 516d6888..3068e632 100755 --- a/_templates/choose-your-wallet.html +++ b/_templates/choose-your-wallet.html @@ -7,6 +7,7 @@ layout: base id: choose-your-wallet +max_wallet_text_length: 418 ## Unicode characters wallets: - bitcoincore: @@ -1231,7 +1232,9 @@ wallets:
{% translate {{check[1]}} %}

{% translate {{check[1]}}txt %}

{% endif %}{% endfor %} -

{% translate {{platform.text}} %}

+ {% capture platform_text %}{% translate {{platform.text}} %}{% endcapture %} + {% assign platform_text_length = platform_text | size %} +

{% if platform_text_length > page.max_wallet_text_length %}{% die Wallet text too long %}{% else %}{{platform_text}}{% endif %}

screenshot
{{ wallet[1].title }}{{ wallet[1].titleshort }} @@ -1261,7 +1264,9 @@ wallets:
{% translate {{check[1]}} %}

{% translate {{check[1]}}txt %}

{% endif %}{% endfor %} -

{% translate {{platform[1].text}} %}

+ {% capture platform_text %}{% translate {{platform[1].text}} %}{% endcapture %} + {% assign platform_text_length = platform_text | size %} +

{% if platform_text_length > page.max_wallet_text_length %}{% die Wallet text too long %}{% else %}{{platform_text}}{% endif %}

screenshot
{{ wallet[1].title }}{{ wallet[1].titleshort }} diff --git a/quality-assurance/schemas/wallets.yaml b/quality-assurance/schemas/wallets.yaml index 51ca8bdf..b490c5fd 100644 --- a/quality-assurance/schemas/wallets.yaml +++ b/quality-assurance/schemas/wallets.yaml @@ -20,6 +20,13 @@ properties: description: The page identifier to use for translations type: string + max_wallet_text_length: + description: > + The global maximum length for a wallet text description in any + langugage (counted in Unicode characters). Ensures text doesn't + overfill its box. + type: integer + ## The wallets array wallets: description: The array containing all wallets @@ -102,7 +109,7 @@ properties: - desktop properties: desktop: - description: Wallets than run on desktop operating systems + description: Wallets that run on desktop operating systems type: object required: &desktop-required - text