mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
Revert "nls: Temporarily disable building of translated manuals."
This reverts commit 94d30d4d3b
.
This commit is contained in:
parent
aff572c9ac
commit
9e1f46119c
2 changed files with 28 additions and 4 deletions
23
doc/local.mk
23
doc/local.mk
|
@ -25,8 +25,8 @@
|
||||||
# along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
# along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# If adding a language, update the following variables, and info_TEXINFOS.
|
# If adding a language, update the following variables, and info_TEXINFOS.
|
||||||
MANUAL_LANGUAGES =
|
MANUAL_LANGUAGES = de es fr it pt_BR ru zh_CN
|
||||||
COOKBOOK_LANGUAGES =
|
COOKBOOK_LANGUAGES = de es fr it ko pt_BR ru sk sv zh_CN
|
||||||
|
|
||||||
# Arg1: A list of languages codes.
|
# Arg1: A list of languages codes.
|
||||||
# Arg2: The file name stem.
|
# 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,
|
# Automake does not understand GNU Make non-standard extensions,
|
||||||
# unfortunately, so we cannot use the above patsubst-based function here.
|
# unfortunately, so we cannot use the above patsubst-based function here.
|
||||||
info_TEXINFOS = %D%/guix.texi \
|
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 = \
|
%C%_guix_TEXINFOS = \
|
||||||
$(OS_CONFIG_EXAMPLES_TEXI) \
|
$(OS_CONFIG_EXAMPLES_TEXI) \
|
||||||
|
|
|
@ -318,7 +318,14 @@ DOMAIN, a gettext domain."
|
||||||
(define (translate-tmp-texi po source output)
|
(define (translate-tmp-texi po source output)
|
||||||
"Translate Texinfo file SOURCE using messages from PO, and write
|
"Translate Texinfo file SOURCE using messages from PO, and write
|
||||||
the result to OUTPUT."
|
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)
|
(define (canonicalize-whitespace str)
|
||||||
;; Change whitespace (newlines, etc.) in STR to #\space.
|
;; Change whitespace (newlines, etc.) in STR to #\space.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue