From cf8f5749a0eba39ba8a47e0eb7a63d701a2112a6 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 14 Sep 2022 08:24:29 +0200 Subject: update-po.sh: Also catch multi-file source file references. --- update-po.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update-po.sh b/update-po.sh index 6a6ced8..097ea81 100755 --- a/update-po.sh +++ b/update-po.sh @@ -28,7 +28,9 @@ cat LINGUAS | while read lingua; do intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) fi - sed -e 's@\.\.@@g' \ + sed -E \ + -e 's@^#: \.\./@#: @g' \ + -e 's@(:[0-9]+) \.\./@\1 @g' \ -i ${lingua}.po done -- cgit v1.2.3