From 4abcbb056e8894e92c71508c9ae7c63051cf4d37 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Tue, 9 May 2023 07:56:38 -0500 Subject: [PATCH] Fix broken docbook translations its by default does not support xml tags inside translatable units. Use custom its rules from https://www.w3.org/TR/xml-i18n-bp/#relating-docbook-plus-its to enable the tags which are in use by docbook. Signed-off-by: Serge Hallyn --- man/generate_translations.mak | 2 +- man/its.rules | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 man/its.rules diff --git a/man/generate_translations.mak b/man/generate_translations.mak index e89d403c..b6a5d2f7 100644 --- a/man/generate_translations.mak +++ b/man/generate_translations.mak @@ -17,7 +17,7 @@ login.defs.d: else \ sed -e 's/^\(/\1 [%config;]>/' $< > $@; \ fi - itstool -d -l $(LANG) -m messages.mo -o . $@ + itstool -i ../its.rules -d -l $(LANG) -m messages.mo -o . $@ sed -i 's:\(^:\1 lang="$(LANG)">:' $@ include ../generate_mans.mak diff --git a/man/its.rules b/man/its.rules new file mode 100644 index 00000000..d6f72997 --- /dev/null +++ b/man/its.rules @@ -0,0 +1,16 @@ + + +