Remove source string location from Sphinx PO files

They're the generated files we use to build the docs with Sphinx,
so we can save some diff and disk space on future updates by not
including this info.

It's only relevant to keep for Weblate files to let translators
find their way to the original text.
This commit is contained in:
Rémi Verschelde
2021-12-16 16:34:32 +01:00
parent dda221a686
commit 8a95b482b3

View File

@@ -151,7 +151,7 @@ if [ "$update_sphinx_po" = true ]; then
dirpath=$(dirname "$template" | sed -e 's@'$SPHINX_TEMPLATES_DIR'@'"$langdir"'@')
mkdir -p "$dirpath"
output="$dirpath/$page.po"
msgmerge --lang="$lang" -C "$po_docs" "$template" "$template" -o "$output" &
msgmerge --lang="$lang" --no-location -C "$po_docs" "$template" "$template" -o "$output" &
done
po_classes=$CLASSES_DIR"/$lang.po"
@@ -165,7 +165,7 @@ if [ "$update_sphinx_po" = true ]; then
dirpath=$(dirname "$template" | sed -e 's@'$SPHINX_TEMPLATES_DIR'@'"$langdir"'@')
mkdir -p "$dirpath"
output="$dirpath/$page.po"
msgmerge --lang="$lang" -C "$po_classes" "$template" "$template" -o "$output" &
msgmerge --lang="$lang" --no-location -C "$po_classes" "$template" "$template" -o "$output" &
done
done
fi