From c3a54b0a9c10b0be8889f748ad671bc92c3ece58 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 21 Mar 2026 22:23:08 +0100 Subject: [PATCH] Add language support to manpage templates Add language navigation bar, html lang attribute, and template placeholders ({{LANG_CODE}}, {{LANG_NAME}}, {{MANPAGES_PATH}}) to both the individual manpage and index templates. --- templates/manpage-index.html | 26 ++++++++++++++++++++++---- templates/manpage.html | 27 +++++++++++++++++++++++---- 2 files changed, 45 insertions(+), 8 deletions(-) diff --git a/templates/manpage-index.html b/templates/manpage-index.html index 28d0eab2e..0fc20c4e0 100644 --- a/templates/manpage-index.html +++ b/templates/manpage-index.html @@ -1,8 +1,8 @@ - + - uutils coreutils - Manual Pages + uutils coreutils - Manual Pages ({{LANG_NAME}}) @@ -24,9 +29,22 @@ -

Manual Pages

+
+ English | + Français | + Deutsch | + Español | + Italiano | + Português | + 日本語 | + 한국어 | + Русский | + 中文 | + Українська +
+

Manual Pages ({{LANG_NAME}})

Complete manual pages for all uutils coreutils commands. Click on any command to view its full documentation.

{{LINKS}} diff --git a/templates/manpage.html b/templates/manpage.html index abf5b06e4..edc4ee06b 100644 --- a/templates/manpage.html +++ b/templates/manpage.html @@ -1,8 +1,8 @@ - + - {{NAME}}(1) - uutils coreutils + {{NAME}}(1) - uutils coreutils ({{LANG_NAME}}) @@ -40,7 +46,7 @@
+
+ English | + Français | + Deutsch | + Español | + Italiano | + Português | + 日本語 | + 한국어 | + Русский | + 中文 | + Українська +
{{CONTENT}}