mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-05 14:10:19 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user