From 6de11e25bff903411c32cd2761ce17bbfe2983e4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 10:25:34 +0000 Subject: [PATCH] feat(i18n): localize 404, 500, billing_success, about, verify_email_sent templates Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- frontend/templates/404.html | 10 +-- frontend/templates/500.html | 16 ++--- frontend/templates/about.html | 88 +++++++++++------------ frontend/templates/billing_success.html | 12 ++-- frontend/templates/verify_email_sent.html | 24 +++---- frontend/translations/en.json | 65 ++++++++++++++++- 6 files changed, 136 insertions(+), 79 deletions(-) diff --git a/frontend/templates/404.html b/frontend/templates/404.html index ca2f27ac..2bfc673a 100644 --- a/frontend/templates/404.html +++ b/frontend/templates/404.html @@ -1,16 +1,16 @@ {% extends "base.html" %} -{% block title %}404 - Not Found{% endblock %} +{% block title %}{{ _("error.404_title") }}{% endblock %} {% block content %}
-

404

-

Oops, we couldn’t find that page!

+

{{ _("error.404_code") }}

+

{{ _("error.404_heading") }}

- It seems DocuElevate has misplaced the document you were looking for. Don’t worry – we’ve got your back. + {{ _("error.404_message") }}

- ← Return Home + ← {{ _("error.404_home") }}
diff --git a/frontend/templates/500.html b/frontend/templates/500.html index 523c5b08..a62c640a 100644 --- a/frontend/templates/500.html +++ b/frontend/templates/500.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}Server Error - DocuElevate{% endblock %} +{% block title %}{{ _("error.500_title") }}{% endblock %} {% block content %}
@@ -7,27 +7,27 @@
Illustration of a server error
-

500

+

{{ _("error.500_code") }}

- Oops! Something Went Wrong. + {{ _("error.500_heading") }}

- Our servers encountered a mishap and need a moment. Maybe the hamsters spilled their coffee? + {{ _("error.500_message1") }}

- We're already on it—sorting files, rebooting servers, and recalibrating flux capacitors. + {{ _("error.500_message2") }}

{% if exc %}
- Show Debug Info + {{ _("error.500_debug_info") }}
{{ exc }}
@@ -35,7 +35,7 @@
diff --git a/frontend/templates/about.html b/frontend/templates/about.html index dff869bf..82af9083 100644 --- a/frontend/templates/about.html +++ b/frontend/templates/about.html @@ -1,69 +1,63 @@ {% extends "base.html" %} -{% block title %}About DocuElevate{% endblock %} +{% block title %}{{ _("about.page_title") }}{% endblock %} {% block content %}
-

About DocuElevate

+

{{ _("about.heading") }}

- Welcome to DocuElevate – your modern, intelligent solution for document processing! - We've built DocuElevate to completely transform the way you handle your documents – from upload - to extraction, from processing to storage. + {{ _("about.intro_pre") }}{{ _("app.name") }}{{ _("about.intro_post") }}

-

Our Story

+

{{ _("about.story_heading") }}

- DocuElevate was created with one goal in mind: to simplify and streamline document management - for everyone, whether you're a small startup or a large enterprise. + {{ _("about.story_p1") }}

- We harness the power of pluggable AI providers (OpenAI, Anthropic Claude, Google Gemini, Ollama, - OpenRouter, Portkey, and more) for metadata extraction and text refinement, integrate seamlessly - with Dropbox, Nextcloud, and Paperless NGX for storage and indexing, leverage Azure Document - Intelligence for OCR, and even use Gotenberg for file-to-PDF conversions. + {{ _("about.story_p2") }}

-

Key Features

+

{{ _("about.features_heading") }}

-

Document Processing

+

{{ _("about.features_processing_heading") }}

    -
  • Simple and secure file uploads with drag & drop support
  • -
  • OCR powered by Azure Document Intelligence
  • -
  • Automated metadata extraction using a pluggable AI provider
  • -
  • PDF conversion for various file formats via Gotenberg
  • -
  • Intelligent document classification and date extraction
  • +
  • {{ _("about.features_processing_upload") }}
  • +
  • {{ _("about.features_processing_ocr") }}
  • +
  • {{ _("about.features_processing_metadata") }}
  • +
  • {{ _("about.features_processing_pdf") }}
  • +
  • {{ _("about.features_processing_classification") }}
-

Integration & Storage

+

{{ _("about.features_integration_heading") }}

    -
  • Multi-destination support (store documents in multiple locations)
  • -
  • Cloud storage: Dropbox, Google Drive, OneDrive, Amazon S3
  • -
  • Self-hosted options: Nextcloud, Paperless NGX, WebDAV
  • -
  • Transfer protocols: FTP, SFTP, Email forwarding
  • +
  • {{ _("about.features_integration_multi_dest") }}
  • +
  • {{ _("about.features_integration_cloud") }}
  • +
  • {{ _("about.features_integration_selfhosted") }}
  • +
  • {{ _("about.features_integration_protocols") }}
-

Automation

+

{{ _("about.features_automation_heading") }}

    -
  • IMAP inbox polling from multiple sources
  • -
  • Gmail and generic email account integration
  • -
  • Automated document ingestion from various inputs
  • -
  • Background processing with Redis and Celery
  • +
  • {{ _("about.features_automation_imap") }}
  • +
  • {{ _("about.features_automation_gmail") }}
  • +
  • {{ _("about.features_automation_ingestion") }}
  • +
  • {{ _("about.features_automation_background") }}
-

Administration

+

{{ _("about.features_admin_heading") }}

    -
  • Powerful REST API for programmatic access
  • -
  • OAuth2 authentication support with Authentik
  • -
  • Highly configurable via environment variables
  • -
  • Docker-ready for easy deployment and scaling
  • +
  • {{ _("about.features_admin_api") }}
  • +
  • {{ _("about.features_admin_oauth2") }}
  • +
  • {{ _("about.features_admin_config") }}
  • +
  • {{ _("about.features_admin_docker") }}
@@ -71,43 +65,43 @@
-

Meet the Creator

+

{{ _("about.creator_heading") }}

- DocuElevate is passionately developed by - Christian Krakau-Louis. + {{ _("about.creator_pre") }} + {{ _("about.creator_name") }}.

-

Privacy & Legal

+

{{ _("about.legal_heading") }}

- We care about your privacy and data security. Please review our: + {{ _("about.legal_description") }}

-

Get Involved

+

{{ _("about.involved_heading") }}

- Want to dive into the code, contribute ideas, or learn more about DocuElevate? + {{ _("about.involved_description") }}

diff --git a/frontend/templates/billing_success.html b/frontend/templates/billing_success.html index 4d3e0862..98134acc 100644 --- a/frontend/templates/billing_success.html +++ b/frontend/templates/billing_success.html @@ -3,7 +3,7 @@ - DocuElevate - Subscription Activated + {{ _("billing.success_page_title") }}
- DocuElevate Logo + {{ _('auth.logo_alt') }}
@@ -21,9 +21,9 @@
-

You're all set!

+

{{ _("billing.success_heading") }}

- Your subscription has been activated. Thank you for choosing DocuElevate! + {{ _("billing.success_message") }}

@@ -31,13 +31,13 @@ class="block w-full py-3 px-4 rounded-lg border-2 border-indigo-600 text-indigo-600 font-semibold hover:bg-indigo-50 transition focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" style="min-height:44px;display:flex;align-items:center;justify-content:center;" > - Manage subscription + {{ _("billing.manage_subscription") }} - Go to dashboard + {{ _("billing.go_to_dashboard") }}
diff --git a/frontend/templates/verify_email_sent.html b/frontend/templates/verify_email_sent.html index 857824d6..ffb3a960 100644 --- a/frontend/templates/verify_email_sent.html +++ b/frontend/templates/verify_email_sent.html @@ -3,7 +3,7 @@ - DocuElevate - Verify Your Email + {{ _("auth.verify_email_page_title") }}
- DocuElevate Logo + {{ _('auth.logo_alt') }}
@@ -22,19 +22,19 @@
-

Check your inbox

+

{{ _("auth.verify_email_heading") }}

- We've sent you a verification email. Please click the link in the email to activate your account. + {{ _("auth.verify_email_message") }}

- The link expires in 24 hours. If you don't see the email, check your spam folder. + {{ _("auth.verify_email_expiry") }}

-

Didn't receive it?

+

{{ _("auth.verify_email_resend_prompt") }}

- +
@@ -90,9 +90,9 @@ class="w-full flex justify-center py-2 px-4 border border-indigo-600 rounded-md text-sm font-medium text-indigo-600 hover:bg-indigo-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50" style="min-height:44px;" > - Resend verification email + {{ _("auth.verify_email_resend_button") }} - Sending… + {{ _("common.loading") }} @@ -100,7 +100,7 @@ diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 6539fc53..25e58812 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -835,5 +835,68 @@ "pipelines.ocr_language_label": "OCR Language", "pipelines.ocr_auto": "Auto (use system default)", "pipelines.ocr_language_hint": "Overrides the global language setting for Tesseract/EasyOCR. Azure and Mistral auto-detect the language.", - "common.select_placeholder": "— select —" + "common.select_placeholder": "— select —", + "error.404_title": "404 - Not Found", + "error.500_title": "Server Error - DocuElevate", + "error.500_img_alt": "Illustration of a server error", + "error.500_message1": "Our servers encountered a mishap and need a moment. Maybe the hamsters spilled their coffee?", + "error.500_message2": "We're already on it—sorting files, rebooting servers, and recalibrating flux capacitors.", + "error.500_debug_info": "Show Debug Info", + "billing.success_page_title": "DocuElevate - Subscription Activated", + "billing.success_heading": "You're all set!", + "billing.success_message": "Your subscription has been activated. Thank you for choosing DocuElevate!", + "billing.manage_subscription": "Manage subscription", + "billing.go_to_dashboard": "Go to dashboard", + "about.page_title": "About DocuElevate", + "about.heading": "About DocuElevate", + "about.intro_pre": "Welcome to ", + "about.intro_post": " – your modern, intelligent solution for document processing! We’ve built DocuElevate to completely transform the way you handle your documents – from upload to extraction, from processing to storage.", + "about.story_heading": "Our Story", + "about.story_p1": "DocuElevate was created with one goal in mind: to simplify and streamline document management for everyone, whether you’re a small startup or a large enterprise.", + "about.story_p2": "We harness the power of pluggable AI providers (OpenAI, Anthropic Claude, Google Gemini, Ollama, OpenRouter, Portkey, and more) for metadata extraction and text refinement, integrate seamlessly with Dropbox, Nextcloud, and Paperless NGX for storage and indexing, leverage Azure Document Intelligence for OCR, and even use Gotenberg for file-to-PDF conversions.", + "about.features_heading": "Key Features", + "about.features_processing_heading": "Document Processing", + "about.features_processing_upload": "Simple and secure file uploads with drag & drop support", + "about.features_processing_ocr": "OCR powered by Azure Document Intelligence", + "about.features_processing_metadata": "Automated metadata extraction using a pluggable AI provider", + "about.features_processing_pdf": "PDF conversion for various file formats via Gotenberg", + "about.features_processing_classification": "Intelligent document classification and date extraction", + "about.features_integration_heading": "Integration & Storage", + "about.features_integration_multi_dest": "Multi-destination support (store documents in multiple locations)", + "about.features_integration_cloud": "Cloud storage: Dropbox, Google Drive, OneDrive, Amazon S3", + "about.features_integration_selfhosted": "Self-hosted options: Nextcloud, Paperless NGX, WebDAV", + "about.features_integration_protocols": "Transfer protocols: FTP, SFTP, Email forwarding", + "about.features_automation_heading": "Automation", + "about.features_automation_imap": "IMAP inbox polling from multiple sources", + "about.features_automation_gmail": "Gmail and generic email account integration", + "about.features_automation_ingestion": "Automated document ingestion from various inputs", + "about.features_automation_background": "Background processing with Redis and Celery", + "about.features_admin_heading": "Administration", + "about.features_admin_api": "Powerful REST API for programmatic access", + "about.features_admin_oauth2": "OAuth2 authentication support with Authentik", + "about.features_admin_config": "Highly configurable via environment variables", + "about.features_admin_docker": "Docker-ready for easy deployment and scaling", + "about.creator_heading": "Meet the Creator", + "about.creator_pre": "DocuElevate is passionately developed by", + "about.creator_name": "Christian Krakau-Louis", + "about.legal_heading": "Privacy & Legal", + "about.legal_description": "We care about your privacy and data security. Please review our:", + "about.legal_privacy": "Privacy Notice", + "about.legal_license": "License Information", + "about.involved_heading": "Get Involved", + "about.involved_description": "Want to dive into the code, contribute ideas, or learn more about DocuElevate?", + "about.github_logo_alt": "GitHub Logo", + "about.involved_github": "View DocuElevate on GitHub", + "about.involved_website": "Visit DocuElevate Website", + "about.involved_docs": "Read the Documentation", + "auth.verify_email_page_title": "DocuElevate - Verify Your Email", + "auth.verify_email_heading": "Check your inbox", + "auth.verify_email_message": "We’ve sent you a verification email. Please click the link in the email to activate your account.", + "auth.verify_email_expiry": "The link expires in 24 hours. If you don’t see the email, check your spam folder.", + "auth.verify_email_resend_prompt": "Didn’t receive it?", + "auth.verify_email_resend_label": "Email address", + "auth.verify_email_resend_placeholder": "Enter your email address", + "auth.verify_email_resend_aria_label": "Email address for resend", + "auth.verify_email_resend_button": "Resend verification email", + "auth.verify_email_back_sign_in": "Back to sign in" }