5 Commits

Author SHA1 Message Date
Sylvestre Ledru 3fbdfe9225 Add localized generation date at the bottom of doc pages 2026-03-26 17:49:05 +01:00
Sylvestre Ledru 24a8207e0a Auto-detect locales in build-docs-l10n.sh from coreutils source
Replace hardcoded FTL_TO_URL and LANG_NAMES maps with dynamic
detection. ftl_to_url() derives URL codes from FTL filenames
(e.g., fr-FR -> fr, zh-Hans -> zh-Hans). locale_display_name()
uses python3+babel for native language names with fallback to the
code itself. New locales are now picked up automatically without
editing the scripts.
2026-03-22 20:40:25 +01:00
Sylvestre Ledru 57433becaa Fix language selector regex to match zh-Hant, zh-Hans, nb-NO, etc.
The URL matching regex only accepted two-letter codes or two-letter
plus two uppercase (e.g., pt-BR), missing codes like zh-Hant with
longer suffixes. Use [a-zA-Z]+ after the hyphen to match all codes.
2026-03-22 20:00:48 +01:00
Sylvestre Ledru f0c206ab48 Improve theme patch: dynamic locale list, fix local file:// URLs
- Scan coreutils-l10n for available locales instead of hardcoding
- Fix language switcher to use relative path replacement so it works
  with both deployed and local file:// URLs
- Move links into the existing .additional div for better layout
2026-03-22 09:35:02 +01:00
Sylvestre Ledru 3d55b20997 Add mdbook theme patch with language selector and utility links
Injects a dropdown language selector and "Source code" / "Report an
issue" links into utility pages via head.hbs JavaScript.
2026-03-22 09:13:19 +01:00