git: 475f3464c4 - main - tools/translate: Enable tablecells on po4a/Asciidoc

From: Danilo G. Baio <dbaio_at_FreeBSD.org>
Date: Tue, 01 Feb 2022 13:34:25 UTC
The branch main has been updated by dbaio:

URL: https://cgit.FreeBSD.org/doc/commit/?id=475f3464c436720d782cb2315ddba3c87deb1a3e

commit 475f3464c436720d782cb2315ddba3c87deb1a3e
Author:     Danilo G. Baio <dbaio@FreeBSD.org>
AuthorDate: 2022-02-01 13:27:22 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2022-02-01 13:27:22 +0000

    tools/translate: Enable tablecells on po4a/Asciidoc
    
    Without that, po4a combines all table content into a single string,
    making it difficult to translate, especially when the table has much
    information.
---
 tools/translate.sh                 | 2 ++
 tools/update_translate_template.sh | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tools/translate.sh b/tools/translate.sh
index 10be78aa05..772023fca4 100755
--- a/tools/translate.sh
+++ b/tools/translate.sh
@@ -98,6 +98,7 @@ for pofile in $(find "$COMPONENT/content/$LANGUAGE/$SEARCH_RESTRICT" -name "*.po
 	po4a-updatepo \
 		--format asciidoc \
 		--option compat=asciidoctor \
+		--option tablecells=1 \
 		--option yfm_keys=title,part,description \
 		--master "$adoc_orig" \
 		--master-charset "UTF-8" \
@@ -111,6 +112,7 @@ for pofile in $(find "$COMPONENT/content/$LANGUAGE/$SEARCH_RESTRICT" -name "*.po
 	po4a-translate \
 		--format asciidoc \
 		--option compat=asciidoctor \
+		--option tablecells=1 \
 		--option yfm_keys=title,part,description \
 		--master "$adoc_orig" \
 		--master-charset "UTF-8" \
diff --git a/tools/update_translate_template.sh b/tools/update_translate_template.sh
index d2327e1ad6..00509a031b 100755
--- a/tools/update_translate_template.sh
+++ b/tools/update_translate_template.sh
@@ -80,6 +80,7 @@ for component in $COMPONENTS; do
 			po4a-updatepo \
 				--format asciidoc \
 				--option compat=asciidoctor \
+				--option tablecells=1 \
 				--option yfm_keys=title,part,description \
 				--master "$document" \
 				--master-charset "UTF-8" \
@@ -93,6 +94,7 @@ for component in $COMPONENTS; do
 			po4a-gettextize \
 				--format asciidoc \
 				--option compat=asciidoctor \
+				--option tablecells=1 \
 				--option yfm_keys=title,part,description \
 				--master "$document" \
 				--master-charset "UTF-8" \