Skip to content

Add Portuguese localized page and redirect support#374

Closed
Telucero wants to merge 2 commits intomainfrom
taylor/resolve-404-assets-base
Closed

Add Portuguese localized page and redirect support#374
Telucero wants to merge 2 commits intomainfrom
taylor/resolve-404-assets-base

Conversation

@Telucero
Copy link
Contributor

@Telucero Telucero commented Feb 3, 2026

Description

  • Added a Portuguese 404 content page that uses the shared 404 template, hides the left navigation and table of contents, and is excluded from search.
  • Added a minimal 404 redirect script that reads supported locales from the page (no hard-coded languages), detects locale prefixes in the URL, redirects to the locale-specific 404 page, supports subpath hosting, and avoids redirect loops.
  • Automated babbel files

Related to mkdocs PR-101

Checklist

  • I have added a label to this PR 🏷️
  • I have run my changes through Grammarly
  • If this page requires a disclaimer, I have added one
  • If pages have been moved around, I have created an additional PR in tanssi-mkdocs to update redirects

@Telucero Telucero requested a review from a team as a code owner February 3, 2026 01:19
Copilot AI review requested due to automatic review settings February 3, 2026 01:19
@Telucero Telucero changed the title add 404.md file Add Portuguese localized page and redirect support Feb 3, 2026
@Telucero Telucero added the A2 - Maintenance Minor Pull request contains minor updates to an existing page (i.e., modifying parameters, steps, etc.) label Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds localized (Portuguese) 404 handling and supporting infrastructure for the docs site, including navigation and i18n catalog updates.

Changes:

  • Added a Portuguese 404.md page using the shared 404.html template and excluded it from search.
  • Updated pt/.nav.yml to include the 404 page and adjust Portuguese navigation structure/labels.
  • Added a locale-aware 404 redirect script and regenerated Babel .po files for en and pt.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pt/404.md Adds a PT 404 page using the shared 404 template with nav/toc hidden and search excluded.
pt/.nav.yml Updates Portuguese navigation structure and adds the 404 page to nav.
javascript/404-redirect.js Adds a minimal client-side redirect script for locale-prefixed 404 routing.
i18n/pt/LC_MESSAGES/messages.po Regenerated Portuguese gettext catalog/header and message ordering.
i18n/en/LC_MESSAGES/messages.po Regenerated English gettext catalog/header and message ordering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@albertov19 albertov19 closed this Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A2 - Maintenance Minor Pull request contains minor updates to an existing page (i.e., modifying parameters, steps, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants