From 9e1f46119c35040c893fba6e720f273fccc51439 Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Wed, 17 Sep 2025 12:10:18 +0200 Subject: [PATCH] Revert "nls: Temporarily disable building of translated manuals." This reverts commit 94d30d4d3b1e86fd3241dd552aa15c0e5541c8f1. --- doc/local.mk | 23 ++++++++++++++++++++--- guix/self.scm | 9 ++++++++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/doc/local.mk b/doc/local.mk index 96743b3de129bc06f8a081ff576a6b73a023337a..a38771d49b13fdff4fe0ff0d9e3ab69ca269c650 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -25,8 +25,8 @@ # along with GNU Guix. If not, see . # If adding a language, update the following variables, and info_TEXINFOS. -MANUAL_LANGUAGES = -COOKBOOK_LANGUAGES = +MANUAL_LANGUAGES = de es fr it pt_BR ru zh_CN +COOKBOOK_LANGUAGES = de es fr it ko pt_BR ru sk sv zh_CN # Arg1: A list of languages codes. # Arg2: The file name stem. @@ -35,7 +35,24 @@ lang_to_texinfo = $(foreach lang,$(1),%D%/$(2).$(lang).texi) # Automake does not understand GNU Make non-standard extensions, # unfortunately, so we cannot use the above patsubst-based function here. info_TEXINFOS = %D%/guix.texi \ - %D%/guix-cookbook.texi + %D%/guix.de.texi \ + %D%/guix.es.texi \ + %D%/guix.fr.texi \ + %D%/guix.it.texi \ + %D%/guix.pt_BR.texi \ + %D%/guix.ru.texi \ + %D%/guix.zh_CN.texi \ + %D%/guix-cookbook.texi \ + %D%/guix-cookbook.de.texi \ + %D%/guix-cookbook.es.texi \ + %D%/guix-cookbook.fr.texi \ + %D%/guix-cookbook.it.texi \ + %D%/guix-cookbook.ko.texi \ + %D%/guix-cookbook.pt_BR.texi \ + %D%/guix-cookbook.ru.texi \ + %D%/guix-cookbook.sk.texi \ + %D%/guix-cookbook.sv.texi \ + %D%/guix-cookbook.zh_CN.texi %C%_guix_TEXINFOS = \ $(OS_CONFIG_EXAMPLES_TEXI) \ diff --git a/guix/self.scm b/guix/self.scm index b3adc9f84dd0d560dbe6bbf666ac91f69d8f3f51..2a997653599725762d945a671ca7518754988cb0 100644 --- a/guix/self.scm +++ b/guix/self.scm @@ -318,7 +318,14 @@ DOMAIN, a gettext domain." (define (translate-tmp-texi po source output) "Translate Texinfo file SOURCE using messages from PO, and write the result to OUTPUT." - #t) + (invoke #+(file-append po4a-minimal "/bin/po4a") + "--no-update" + "--variable" (string-append "localized=" output) + "--variable" (string-append "master=" source) + "--variable" (string-append "po=" po) + "--variable" (string-append "pot=" (string-append (tmpnam) ".pot")) + "--destdir=." + #+(file-append documentation-po "/po4a.cfg"))) (define (canonicalize-whitespace str) ;; Change whitespace (newlines, etc.) in STR to #\space.