From 43905b343b9375ca52bed20e41c6ce9671042414 Mon Sep 17 00:00:00 2001 From: Deeman Date: Sat, 21 Feb 2026 00:08:25 +0100 Subject: [PATCH] =?UTF-8?q?refactor(i18n):=20Batch=204=20=E2=80=94=20elimi?= =?UTF-8?q?nate=20{%=20if=20lang=20%}=20blocks=20in=20suppliers=20template?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 65 new keys added to en/de locale files (1030 → 1095). All {% if lang %} blocks replaced with {{ t.key }} / {{ t.key | tformat(...) }} in the 8 supplier signup, waitlist, and confirmation templates. JS-embedded strings use | tojson. features_de pattern in step_1/waitlist deferred to Phase 4. Co-Authored-By: Claude Opus 4.6 --- padelnomics/src/padelnomics/locales/de.json | 65 +++++++++++++++++++ padelnomics/src/padelnomics/locales/en.json | 65 +++++++++++++++++++ .../suppliers/partials/signup_step_1.html | 16 ++--- .../suppliers/partials/signup_step_2.html | 10 +-- .../suppliers/partials/signup_step_3.html | 12 ++-- .../suppliers/partials/signup_step_4.html | 52 +++++++-------- .../suppliers/templates/suppliers/signup.html | 6 +- .../templates/suppliers/signup_success.html | 10 +-- .../templates/suppliers/waitlist.html | 8 +-- .../suppliers/waitlist_confirmed.html | 20 +++--- 10 files changed, 197 insertions(+), 67 deletions(-) diff --git a/padelnomics/src/padelnomics/locales/de.json b/padelnomics/src/padelnomics/locales/de.json index ace243e..2f79251 100644 --- a/padelnomics/src/padelnomics/locales/de.json +++ b/padelnomics/src/padelnomics/locales/de.json @@ -521,15 +521,80 @@ "sup_signup_step2": "Boost-Add-ons", "sup_signup_step3": "Credit-Pakete", "sup_signup_step4": "Kontodaten", + "sup_signup_page_title": "Anbieter-Registrierung", + "sup_signup_of_steps": "von 4", "sup_success_h2": "Alles bereit!", "sup_success_text": "Dein Anbieter-Konto wird aktiviert. Du erhältst in Kürze qualifizierte Leads, die Deinen Leistungen entsprechen.", "sup_success_next_h3": "Was als nächstes passiert:", "sup_success_btn": "Zum Lead-Feed", + "sup_success_page_title": "Willkommen!", + "sup_success_li1": "Dein Eintrag wird in wenigen Minuten aktualisiert", + "sup_success_li2": "Lead-Credits wurden deinem Konto hinzugefügt", + "sup_success_li3": "Prüfe deine E-Mail auf einen Anmelde-Link", + "sup_success_li4": "Durchsuche und entsperre Leads in deinem Feed", "sup_waitlist_h1": "Auf die Warteliste für die Anbieter-Plattform", "sup_waitlist_email_label": "E-Mail", "sup_waitlist_submit": "Zur Warteliste", "sup_waitlist_signin_text": "Bereits ein Konto?", "sup_waitlist_signin_link": "Anmelden", + "sup_waitlist_page_title": "Anbieter-Warteliste", + "sup_waitlist_intro": "Wir bauen die ultimative Plattform, um verifizierte Padel-Anbieter mit Unternehmern zu verbinden. Sei Erster in der Schlange für den {plan_name}-Tier-Zugang.", + "sup_waitlist_plan_h3": "{name} Plan-Highlights", + "sup_waitlist_hint": "Frühzeitiger Zugang, exklusiver Launch-Preis und bevorzugtes Onboarding.", + "sup_waitlist_conf_page_title": "Du stehst auf der Anbieter-Warteliste", + "sup_waitlist_conf_h1": "Du stehst auf der Anbieter-Warteliste!", + "sup_waitlist_conf_msg": "Wir haben eine Bestätigung gesendet an:", + "sup_waitlist_conf_first_pre": "Du gehörst zu den ersten Anbietern mit Zugang zum ", + "sup_waitlist_conf_first_post": "-Tier bei unserem Launch.", + "sup_waitlist_conf_early_h3": "Was du als Frühmitglied erhältst:", + "sup_waitlist_conf_li1": "Erster Zugang zu qualifizierten Leads von Padel-Unternehmern", + "sup_waitlist_conf_li2": "Exklusiver Launch-Preis (für 12 Monate festgeschrieben)", + "sup_waitlist_conf_li3": "Vorrangiges Onboarding und Support bei der Eintragsoptimierung", + "sup_waitlist_conf_li4": "Hervorgehobene Platzierung im Verzeichnis beim Launch", + "sup_waitlist_conf_btn": "Anbieterverzeichnis durchsuchen", + "sup_btn_back": "Zurück", + "sup_step1_title": "Plan auswählen", + "sup_step1_sub": "Wähle den Plan, der zu deinen Wachstumszielen passt.", + "sup_step1_monthly": "Monatlich", + "sup_step1_yearly": "Jährlich", + "sup_step1_save_badge": "Bis zu 26 % sparen", + "sup_step1_popular": "Beliebtester", + "sup_step1_billed_yearly": "jährl. €{price}", + "sup_step1_billed_monthly": "monatliche Abrechnung", + "sup_step1_next": "Weiter: Add-ons", + "sup_step2_title": "Boost-Add-ons", + "sup_step2_sub_pre": "Erhöhe deine Sichtbarkeit mit optionalen Boosts.", + "sup_step2_sub_included": "Einige sind in deinem Plan enthalten.", + "sup_step2_included": "Im Plan enthalten", + "sup_step2_next": "Weiter: Credit-Pakete", + "sup_step3_title": "Credit-Pakete", + "sup_step3_sub": "Optional deine Lead-Credits aufstocken. Dein Plan enthält monatliche Credits — Pakete geben dir zusätzliche.", + "sup_step3_free": "Kostenlos", + "sup_step3_free_desc": "Nur Plan-Credits", + "sup_step3_next": "Weiter: Deine Daten", + "sup_step4_title": "Kontodaten", + "sup_step4_sub": "Erzähl uns von deinem Unternehmen und wie wir dich erreichen können.", + "sup_step4_contact_name": "Ansprechpartner", + "sup_step4_email": "E-Mail", + "sup_step4_phone": "Telefon", + "sup_step4_short_desc": "Kurzbeschreibung", + "sup_step4_short_desc_ph": "max. 160 Zeichen", + "sup_step4_service_cats": "Leistungskategorien", + "sup_step4_service_cats_ph": "z.B. schlüsselfertig, Beläge, Beleuchtung", + "sup_step4_service_area": "Servicegebiet (Länder)", + "sup_step4_years": "Jahre im Geschäft", + "sup_step4_projects": "Anzahl Projekte", + "sup_step4_claiming": "Eintrag beanspruchen:", + "sup_step4_order_h3": "Bestellübersicht", + "sup_step4_boost_row": "Boost-Add-ons", + "sup_step4_total_yearly": "Jahresgesamt", + "sup_step4_total_monthly": "Monatsgesamt", + "sup_step4_equiv": "/Mon. äquiv.", + "sup_step4_credit_row": "Credit-Paket (einmalig)", + "sup_step4_checkout": "Zur Kasse", + "sup_step4_loading": "Wird geladen…", + "sup_step4_error": "Etwas ist schiefgelaufen. Bitte versuch es erneut.", + "sup_step4_network_error": "Netzwerkfehler. Bitte überprüfe Deine Verbindung und versuch es erneut.", "mkt_heading": "Padel-Märkte", "mkt_subheading": "Kostenanalysen und Finanzprojektionen für Padel-Center weltweit.", "mkt_search_placeholder": "Märkte suchen…", diff --git a/padelnomics/src/padelnomics/locales/en.json b/padelnomics/src/padelnomics/locales/en.json index 9fb492c..a2312bc 100644 --- a/padelnomics/src/padelnomics/locales/en.json +++ b/padelnomics/src/padelnomics/locales/en.json @@ -521,15 +521,80 @@ "sup_signup_step2": "Boost Add-Ons", "sup_signup_step3": "Credit Packs", "sup_signup_step4": "Account Details", + "sup_signup_page_title": "Supplier Signup", + "sup_signup_of_steps": "of 4", "sup_success_h2": "You’re All Set!", "sup_success_text": "Your supplier account is being activated. You’ll start receiving qualified leads matching your services.", "sup_success_next_h3": "What happens next:", "sup_success_btn": "Go to Lead Feed", + "sup_success_page_title": "Welcome!", + "sup_success_li1": "Your listing will be upgraded within minutes", + "sup_success_li2": "Lead credits have been added to your account", + "sup_success_li3": "Check your email for a sign-in link", + "sup_success_li4": "Browse and unlock leads in your feed", "sup_waitlist_h1": "Join the Supplier Platform Waitlist", "sup_waitlist_email_label": "Email", "sup_waitlist_submit": "Join Waitlist", "sup_waitlist_signin_text": "Already have an account?", "sup_waitlist_signin_link": "Sign in", + "sup_waitlist_page_title": "Supplier Waitlist", + "sup_waitlist_intro": "We're building the ultimate platform to connect verified padel suppliers with entrepreneurs. Be first in line for {plan_name} tier access.", + "sup_waitlist_plan_h3": "{name} Plan Highlights", + "sup_waitlist_hint": "Get early access, exclusive launch pricing, and priority onboarding.", + "sup_waitlist_conf_page_title": "You're on the Supplier Waitlist", + "sup_waitlist_conf_h1": "You're on the Supplier Waitlist!", + "sup_waitlist_conf_msg": "We've sent a confirmation to:", + "sup_waitlist_conf_first_pre": "You'll be among the first suppliers with access to the ", + "sup_waitlist_conf_first_post": " tier when we launch.", + "sup_waitlist_conf_early_h3": "What you'll get as an early member:", + "sup_waitlist_conf_li1": "First access to qualified leads from padel entrepreneurs", + "sup_waitlist_conf_li2": "Exclusive launch pricing (locked in for 12 months)", + "sup_waitlist_conf_li3": "Priority onboarding and listing optimization support", + "sup_waitlist_conf_li4": "Featured placement in the directory at launch", + "sup_waitlist_conf_btn": "Browse Supplier Directory", + "sup_btn_back": "Back", + "sup_step1_title": "Choose Your Plan", + "sup_step1_sub": "Select the plan that fits your growth goals.", + "sup_step1_monthly": "Monthly", + "sup_step1_yearly": "Yearly", + "sup_step1_save_badge": "Save up to 26%", + "sup_step1_popular": "Most Popular", + "sup_step1_billed_yearly": "billed at €{price}/yr", + "sup_step1_billed_monthly": "billed monthly", + "sup_step1_next": "Next: Add-Ons", + "sup_step2_title": "Boost Add-Ons", + "sup_step2_sub_pre": "Increase your visibility with optional boosts.", + "sup_step2_sub_included": "Some are included in your plan.", + "sup_step2_included": "Included in plan", + "sup_step2_next": "Next: Credit Packs", + "sup_step3_title": "Credit Packs", + "sup_step3_sub": "Optionally top up your lead credits. Your plan includes monthly credits — packs give you extra.", + "sup_step3_free": "Free", + "sup_step3_free_desc": "Plan credits only", + "sup_step3_next": "Next: Your Details", + "sup_step4_title": "Account Details", + "sup_step4_sub": "Tell us about your company and how to reach you.", + "sup_step4_contact_name": "Contact Name", + "sup_step4_email": "Email", + "sup_step4_phone": "Phone", + "sup_step4_short_desc": "Short Description", + "sup_step4_short_desc_ph": "160 chars max", + "sup_step4_service_cats": "Service Categories", + "sup_step4_service_cats_ph": "e.g. turnkey, surfaces, lighting", + "sup_step4_service_area": "Service Area (countries)", + "sup_step4_years": "Years in Business", + "sup_step4_projects": "Project Count", + "sup_step4_claiming": "Claiming listing:", + "sup_step4_order_h3": "Order Summary", + "sup_step4_boost_row": "Boost add-ons", + "sup_step4_total_yearly": "Yearly total", + "sup_step4_total_monthly": "Monthly total", + "sup_step4_equiv": "/mo equiv.", + "sup_step4_credit_row": "Credit pack (one-time)", + "sup_step4_checkout": "Proceed to Checkout", + "sup_step4_loading": "Loading…", + "sup_step4_error": "Something went wrong. Please try again.", + "sup_step4_network_error": "Network error. Please check your connection and try again.", "mkt_heading": "Padel Markets", "mkt_subheading": "Cost analysis and financial projections for padel centers worldwide.", "mkt_search_placeholder": "Search markets…", diff --git a/padelnomics/src/padelnomics/suppliers/templates/suppliers/partials/signup_step_1.html b/padelnomics/src/padelnomics/suppliers/templates/suppliers/partials/signup_step_1.html index 625a660..2510a22 100644 --- a/padelnomics/src/padelnomics/suppliers/templates/suppliers/partials/signup_step_1.html +++ b/padelnomics/src/padelnomics/suppliers/templates/suppliers/partials/signup_step_1.html @@ -1,6 +1,6 @@
-

{% if lang == 'de' %}Plan auswählen{% else %}Choose Your Plan{% endif %}

-

{% if lang == 'de' %}Wähle den Plan, der zu deinen Wachstumszielen passt.{% else %}Select the plan that fits your growth goals.{% endif %}

+

{{ t.sup_step1_title }}

+

{{ t.sup_step1_sub }}

-

{% if lang == 'de' %}Bestellübersicht{% else %}Order Summary{% endif %}

+

{{ t.sup_step4_order_h3 }}

{{ order.plan_name }} Plan @@ -71,17 +71,17 @@
{% if order.boost_monthly > 0 %}
- {% if lang == 'de' %}Boost-Add-ons{% else %}Boost add-ons{% endif %} + {{ t.sup_step4_boost_row }} +€{{ order.boost_monthly }}/mo
{% endif %}
- {% if order.billing_period == 'yearly' %}{% if lang == 'de' %}Jahresgesamt{% else %}Yearly total{% endif %}{% else %}{% if lang == 'de' %}Monatsgesamt{% else %}Monthly total{% endif %}{% endif %} - €{{ order.monthly_total }}{% if order.billing_period == 'yearly' %}{% if lang == 'de' %}/Mon. äquiv.{% else %}/mo equiv.{% endif %}{% else %}/mo{% endif %} + {% if order.billing_period == 'yearly' %}{{ t.sup_step4_total_yearly }}{% else %}{{ t.sup_step4_total_monthly }}{% endif %} + €{{ order.monthly_total }}{% if order.billing_period == 'yearly' %}{{ t.sup_step4_equiv }}{% else %}/mo{% endif %}
{% if order.one_time_total > 0 %}
- {% if lang == 'de' %}Credit-Paket (einmalig){% else %}Credit pack (one-time){% endif %} + {{ t.sup_step4_credit_row }} €{{ order.one_time_total }}
{% endif %} @@ -91,8 +91,8 @@ - + hx-include="[name='_accumulated']">{{ t.sup_btn_back }} +