Update the POT files

This commit is contained in:
2019-12-12 21:39:08 +01:00
parent 0bfe8df92f
commit 798262383e
13 changed files with 39 additions and 35 deletions

View File

@@ -15,5 +15,9 @@ mkdir -p "pot"
for file in $files; do
pot="pot/"$(echo "${file#*/}" | sed -e "s/\//_/g")
pot="${pot%.c}.pot"
xgettext --keyword=_ --language=C --add-comments --sort-output -o "$pot" "$file"
if [[ -f "$pot" ]]; then
xgettext --package-name="gds-render" --join-existing --keyword=_ --language=C --add-comments --sort-output -o "$pot" "$file"
else
xgettext --package-name="gds-render" --keyword=_ --language=C --add-comments --sort-output -o "$pot" "$file"
fi
done