From ebe20c0e0dd1b40c1868d09c59b1a622ac6e3447 Mon Sep 17 00:00:00 2001 From: Luca Toniolo <10792599+grandixximo@users.noreply.github.com> Date: Fri, 19 Jun 2026 19:25:50 +0800 Subject: [PATCH] docs(i18n): set html lang on translated man pages The manpage HTML rule never passed asciidoctor's lang attribute, so every language's man pages rendered and fell into the English bucket for browsers and search indexers (pagefind grouped all translated man pages under English). Pass lang= per language so translated man pages declare their own language, matching the translated doc pages. --- docs/src/Submakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/Submakefile b/docs/src/Submakefile index 48f9ccbfce2..793fd0faeb5 100644 --- a/docs/src/Submakefile +++ b/docs/src/Submakefile @@ -785,6 +785,7 @@ $(DOC_OUT_HTML)/$(1)/man/%.html: $(2)/% $(DOC_SRCDIR)/docinfo.html $(DOC_SRCDIR) -a compat-mode \ -a mansource=LinuxCNC \ -a manmanual='LinuxCNC Documentation' \ + -a "lang=$(1)" \ -a "lcnc-cssrel=../../../" \ -a "lcnc-lang-label=$(LANG_LABEL_$(1))" \ -a "lcnc-subpath=$$(patsubst $(DOC_OUT_HTML)/$(1)/%,%,$$@)" \