aboutsummaryrefslogtreecommitdiff
path: root/update-po.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update-po.sh')
-rwxr-xr-xupdate-po.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/update-po.sh b/update-po.sh
index 59ad5c4..d35797e 100755
--- a/update-po.sh
+++ b/update-po.sh
@@ -28,11 +28,14 @@ cat LINGUAS | while read lingua; do
intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua})
fi
- sed -e 's/\.xml\.in\.in\.h:/.xml.in.in:/g' \
- -e 's/\.xml\.in\.h:/.xml.in:/g' \
+ sed -E \
+ -e 's/\.xml\.in\.in\.h:/.xml.in.in:/g' \
+ -e 's/\.xml\.in\.h:/.xml.in:/g' \
-e 's/\.ini\.in\.h:/.ini.in:/g' \
-e 's/\.xml\.h:/.xml:/g' \
-e 's/\.ini\.h:/.ini:/g' \
+ -e 's@^#: \.\./@#: @g' \
+ -e 's@(:[0-9]+) \.\./@\1 @g' \
-i ${lingua}.po
done