From b52420abe221d1670546ea73830328b5212379e2 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Dec 14 2023 02:02:17 +0000 Subject: src-to-pot: use po4a-updatepo to extract strings to POT --- diff --git a/src-to-pot.sh b/src-to-pot.sh index 2056e24..c0f9735 100755 --- a/src-to-pot.sh +++ b/src-to-pot.sh @@ -221,12 +221,11 @@ do # nav.adoc is a bullet point list, make sure to split it if [ "$(basename -s .adoc "$adoc_file")" = "nav" ] ; then - if ! po4a-gettextize \ + if ! po4a-updatepo \ --format "$format" \ --option "tablecells" \ --master "$adoc_file" \ --master-charset "UTF-8" \ - --localized-charset "UTF-8" \ --po "$pot_file" > /dev/null ; then echo "" echo "Error converting an adoc file: $adoc_file" @@ -235,11 +234,10 @@ do fi # generate new POT files else - if ! po4a-gettextize \ + if ! po4a-updatepo \ --format "$format" \ --master "$adoc_file" \ --master-charset "UTF-8" \ - --localized-charset "UTF-8" \ --po "$pot_file" > /dev/null ; then echo "" echo "Error converting an adoc file: $adoc_file" @@ -278,7 +276,7 @@ popd > /dev/null || exit # if this is the main module if [ "$module" = "ROOT" ]; then pushd "$tmp_english_src/$src_basedir" > /dev/null || exit - if ! po4a-gettextize \ + if ! po4a-updatepo \ --format yaml \ --master "antora.yml" \ --master-charset "UTF-8" \