docs(i18n): document CMS template translations and multi-language content pages
Add sections covering CMS locale file structure, translated template inventory, TranslatableText pattern for sections, and the new title_translations/content_translations model API with migration cms_002. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -538,10 +538,107 @@ def _loyalty_homepage_sections() -> dict:
|
||||
}
|
||||
|
||||
|
||||
def _hostwizard_homepage_sections() -> dict:
|
||||
"""hostwizard.lu — web hosting & website building landing page."""
|
||||
return {
|
||||
"hero": {
|
||||
"enabled": True,
|
||||
"title": t(
|
||||
"Votre site web professionnel au Luxembourg",
|
||||
"Your Professional Website in Luxembourg",
|
||||
"Ihre professionelle Website in Luxemburg",
|
||||
"Är professionell Websäit zu Lëtzebuerg",
|
||||
),
|
||||
"subtitle": t(
|
||||
"Sites web, domaines, e-mail et hébergement — tout en un pour les entreprises luxembourgeoises.",
|
||||
"Websites, domains, email, and hosting — all-in-one for Luxembourg businesses.",
|
||||
"Websites, Domains, E-Mail und Hosting — alles in einem für luxemburgische Unternehmen.",
|
||||
"Websäiten, Domänen, E-Mail an Hosting — alles an engem fir lëtzebuerger Betriber.",
|
||||
),
|
||||
"cta_text": t("Demander un devis", "Get a Quote", "Angebot anfordern", "Offert ufroen"),
|
||||
"cta_url": "/contact",
|
||||
},
|
||||
"features": {
|
||||
"enabled": True,
|
||||
"title": t("Nos services", "Our Services", "Unsere Dienstleistungen", "Eis Servicer"),
|
||||
"items": [
|
||||
{
|
||||
"title": t("Création de sites web", "Website Creation", "Website-Erstellung", "Websäit Erstellen"),
|
||||
"description": t(
|
||||
"Sites web professionnels avec CMS intégré pour gérer votre contenu facilement.",
|
||||
"Professional websites with integrated CMS to manage your content easily.",
|
||||
"Professionelle Websites mit integriertem CMS zur einfachen Verwaltung Ihrer Inhalte.",
|
||||
"Professionell Websäiten mat integréiertem CMS fir Ären Inhalt einfach ze geréieren.",
|
||||
),
|
||||
"icon": "globe",
|
||||
},
|
||||
{
|
||||
"title": t("Noms de domaine", "Domain Names", "Domainnamen", "Domänennimm"),
|
||||
"description": t(
|
||||
"Enregistrement et gestion de domaines .lu et internationaux.",
|
||||
"Registration and management of .lu and international domains.",
|
||||
"Registrierung und Verwaltung von .lu und internationalen Domains.",
|
||||
"Registréierung a Gestioun vun .lu an internationalen Domänen.",
|
||||
),
|
||||
"icon": "at-symbol",
|
||||
},
|
||||
{
|
||||
"title": t("E-mail professionnel", "Professional Email", "Professionelle E-Mail", "Professionell E-Mail"),
|
||||
"description": t(
|
||||
"Boîtes mail personnalisées avec votre nom de domaine.",
|
||||
"Custom mailboxes with your domain name.",
|
||||
"Individuelle Postfächer mit Ihrem Domainnamen.",
|
||||
"Personaliséiert Postfächer mat Ärem Domännumm.",
|
||||
),
|
||||
"icon": "mail",
|
||||
},
|
||||
{
|
||||
"title": t("Hébergement & SSL", "Hosting & SSL", "Hosting & SSL", "Hosting & SSL"),
|
||||
"description": t(
|
||||
"Hébergement sécurisé avec certificat SSL inclus.",
|
||||
"Secure hosting with included SSL certificate.",
|
||||
"Sicheres Hosting mit inkludiertem SSL-Zertifikat.",
|
||||
"Séchert Hosting mat abegraff SSL-Zertifikat.",
|
||||
),
|
||||
"icon": "shield-check",
|
||||
},
|
||||
],
|
||||
},
|
||||
"pricing": {
|
||||
"enabled": True,
|
||||
"title": t("Tarifs", "Pricing", "Preise", "Präisser"),
|
||||
"subtitle": t(
|
||||
"Des formules adaptées à chaque entreprise.",
|
||||
"Plans tailored to every business.",
|
||||
"Pläne für jedes Unternehmen.",
|
||||
"Pläng fir all Betrib.",
|
||||
),
|
||||
},
|
||||
"cta": {
|
||||
"enabled": True,
|
||||
"title": t(
|
||||
"Prêt à mettre votre entreprise en ligne ?",
|
||||
"Ready to bring your business online?",
|
||||
"Bereit, Ihr Unternehmen online zu bringen?",
|
||||
"Prett fir Äre Betrib online ze bréngen?",
|
||||
),
|
||||
"subtitle": t(
|
||||
"Contactez-nous pour un site web gratuit de démonstration.",
|
||||
"Contact us for a free demo website.",
|
||||
"Kontaktieren Sie uns für eine kostenlose Demo-Website.",
|
||||
"Kontaktéiert eis fir eng gratis Demo-Websäit.",
|
||||
),
|
||||
"cta_text": t("Nous contacter", "Contact Us", "Kontaktieren", "Kontaktéiert eis"),
|
||||
"cta_url": "/contact",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
HOMEPAGE_SECTIONS = {
|
||||
"main": _wizard_homepage_sections,
|
||||
"oms": _oms_homepage_sections,
|
||||
"loyalty": _loyalty_homepage_sections,
|
||||
"hosting": _hostwizard_homepage_sections,
|
||||
}
|
||||
|
||||
|
||||
@@ -775,6 +872,126 @@ def _get_platform_pages(platform_code: str) -> list[dict]:
|
||||
},
|
||||
]
|
||||
|
||||
if platform_code == "hosting":
|
||||
return [
|
||||
{
|
||||
"slug": "about",
|
||||
"title": "About HostWizard",
|
||||
"title_translations": tt("About HostWizard", "À propos de HostWizard", "Über HostWizard", "Iwwer HostWizard"),
|
||||
"content": """<div class="prose-content">
|
||||
<h2>About HostWizard</h2>
|
||||
<p>HostWizard (hostwizard.lu) provides professional web hosting, domain registration, and website creation for Luxembourg businesses.</p>
|
||||
<h3>Our Services</h3>
|
||||
<ul>
|
||||
<li><strong>Website Creation:</strong> Professional websites with an integrated CMS for easy content management</li>
|
||||
<li><strong>Domain Registration:</strong> .lu and international domain registration and management</li>
|
||||
<li><strong>Professional Email:</strong> Custom mailboxes with your domain name</li>
|
||||
<li><strong>Secure Hosting:</strong> Fast, reliable hosting with SSL certificates included</li>
|
||||
<li><strong>Maintenance:</strong> Ongoing website maintenance and support</li>
|
||||
</ul>
|
||||
<h3>Built for Luxembourg</h3>
|
||||
<p>Multilingual support (FR/DE/EN/LB) and tailored for the Luxembourg business landscape.</p>
|
||||
</div>""",
|
||||
"meta_description": "HostWizard — professional web hosting, domains, and website creation for Luxembourg businesses.",
|
||||
"show_in_footer": True,
|
||||
"show_in_header": True,
|
||||
"display_order": 1,
|
||||
},
|
||||
{
|
||||
"slug": "services",
|
||||
"title": "Our Services",
|
||||
"title_translations": tt("Our Services", "Nos services", "Unsere Dienstleistungen", "Eis Servicer"),
|
||||
"content": """<div class="prose-content">
|
||||
<h2>HostWizard Services</h2>
|
||||
<h3>Website Creation</h3>
|
||||
<p>We build professional websites for your business with our integrated CMS. You can edit your content anytime, or let us handle it for you.</p>
|
||||
<h3>Domain Names</h3>
|
||||
<p>Register and manage .lu domains and international domain names. We handle DNS configuration and renewals.</p>
|
||||
<h3>Professional Email</h3>
|
||||
<p>Get professional email addresses with your domain name (e.g., info@yourbusiness.lu). Multiple mailboxes available.</p>
|
||||
<h3>Hosting & SSL</h3>
|
||||
<p>Fast, secure hosting with free SSL certificates. Your website is always online and protected.</p>
|
||||
<h3>Website Maintenance</h3>
|
||||
<p>Ongoing updates, security patches, and content changes. We keep your website running smoothly.</p>
|
||||
</div>""",
|
||||
"meta_description": "HostWizard services — website creation, domains, email, hosting, and maintenance for Luxembourg businesses.",
|
||||
"show_in_footer": True,
|
||||
"show_in_header": True,
|
||||
"display_order": 2,
|
||||
},
|
||||
{
|
||||
"slug": "pricing",
|
||||
"title": "Pricing",
|
||||
"title_translations": tt("Pricing", "Tarifs", "Preise", "Präisser"),
|
||||
"content": """<div class="prose-content">
|
||||
<h2>HostWizard Pricing</h2>
|
||||
<p>Transparent pricing for all our services. No hidden fees.</p>
|
||||
<h3>Website Packages</h3>
|
||||
<p>Contact us for a personalized quote based on your needs. We start with a free POC (proof of concept) website so you can see the result before committing.</p>
|
||||
<h3>Domain Registration</h3>
|
||||
<p>.lu domains starting from €29/year. International domains available.</p>
|
||||
<h3>Email Hosting</h3>
|
||||
<p>Professional email from €5/mailbox/month.</p>
|
||||
<h3>Website Maintenance</h3>
|
||||
<p>Monthly maintenance plans starting from €49/month.</p>
|
||||
<p><strong>Contact us for a custom quote:</strong> info@hostwizard.lu</p>
|
||||
</div>""",
|
||||
"meta_description": "HostWizard pricing — transparent pricing for websites, domains, email, and hosting.",
|
||||
"show_in_footer": True,
|
||||
"show_in_header": True,
|
||||
"display_order": 3,
|
||||
},
|
||||
{
|
||||
"slug": "contact",
|
||||
"title": "Contact HostWizard",
|
||||
"title_translations": tt("Contact HostWizard", "Contacter HostWizard", "HostWizard kontaktieren", "HostWizard kontaktéieren"),
|
||||
"content": """<div class="prose-content">
|
||||
<h2>Contact HostWizard</h2>
|
||||
<p>Ready to bring your business online? Get in touch with our team.</p>
|
||||
<h3>General Inquiries</h3>
|
||||
<ul>
|
||||
<li><strong>Email:</strong> info@hostwizard.lu</li>
|
||||
</ul>
|
||||
<h3>Sales</h3>
|
||||
<p>Interested in a website for your business?</p>
|
||||
<ul>
|
||||
<li><strong>Email:</strong> sales@hostwizard.lu</li>
|
||||
</ul>
|
||||
<h3>Support</h3>
|
||||
<p>Already a customer? Our support team is here to help.</p>
|
||||
<ul>
|
||||
<li><strong>Email:</strong> support@hostwizard.lu</li>
|
||||
</ul>
|
||||
</div>""",
|
||||
"meta_description": "Contact HostWizard for web hosting, domains, and website creation in Luxembourg.",
|
||||
"show_in_footer": True,
|
||||
"show_in_header": True,
|
||||
"display_order": 4,
|
||||
},
|
||||
{
|
||||
"slug": "faq",
|
||||
"title": "FAQ",
|
||||
"title_translations": tt("FAQ", "FAQ", "FAQ", "FAQ"),
|
||||
"content": """<div class="prose-content">
|
||||
<h2>Frequently Asked Questions</h2>
|
||||
<h4>What is HostWizard?</h4>
|
||||
<p>HostWizard provides web hosting, domain registration, email hosting, and website creation services for Luxembourg businesses.</p>
|
||||
<h4>How does the POC website work?</h4>
|
||||
<p>We create a free proof-of-concept website for your business. If you like it, we can make it your live website on your own domain.</p>
|
||||
<h4>What domains can I register?</h4>
|
||||
<p>We support .lu domains and most international domain extensions (.com, .eu, .net, etc.).</p>
|
||||
<h4>Do you offer multilingual websites?</h4>
|
||||
<p>Yes! Our CMS supports French, German, English, and Luxembourgish out of the box.</p>
|
||||
<h4>What is included in website maintenance?</h4>
|
||||
<p>Security updates, content changes, performance monitoring, and technical support.</p>
|
||||
</div>""",
|
||||
"meta_description": "Frequently asked questions about HostWizard web hosting and website creation services.",
|
||||
"show_in_footer": True,
|
||||
"show_in_header": False,
|
||||
"display_order": 5,
|
||||
},
|
||||
]
|
||||
|
||||
return []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user