Browse Source

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.
main
Danilo G. Baio 6 months ago
parent
commit
475f3464c4
  1. 2
      tools/translate.sh
  2. 2
      tools/update_translate_template.sh

2
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" \

2
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" \

Loading…
Cancel
Save