summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-07-08 17:20:17 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-07-08 17:20:17 +0200
commit21a047dd568fc179c752579f0ca96e1adb3895fb (patch)
treecc6456064b6795ffc17f3888ebc85d9717996cfc
parent9545e31f1887508c47299477d95f08993026c02d (diff)
downloadscripts-21a047dd568fc179c752579f0ca96e1adb3895fb.tar.gz
scripts-21a047dd568fc179c752579f0ca96e1adb3895fb.zip
tde-l10n_split_desktop: Process the created template using msguniq
to finalize the line breaks in the location comments. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rwxr-xr-xconversions/tde-l10n/tde-l10n_split_desktop3
1 files changed, 2 insertions, 1 deletions
diff --git a/conversions/tde-l10n/tde-l10n_split_desktop b/conversions/tde-l10n/tde-l10n_split_desktop
index aaba8f4..a6dc553 100755
--- a/conversions/tde-l10n/tde-l10n_split_desktop
+++ b/conversions/tde-l10n/tde-l10n_split_desktop
@@ -116,7 +116,8 @@ done
printf "%s" "${DX#|}" | tr "|" "\0" | xargs -r0 \
xgettext --foreign-user --from-code=UTF-8 -Cc -ki18n -o - | \
sed "s|\.tde_l10n||g" | \
-sed "s|Content-Type: text/plain; charset=CHARSET|Content-Type: text/plain; charset=UTF-8|" \
+sed "s|Content-Type: text/plain; charset=CHARSET|Content-Type: text/plain; charset=UTF-8|" | \
+msguniq -o - \
> "$TRANSLATIONS_DIR/$POT"
POT_HEADER=$(sed -n "1,/^$/p" "$TRANSLATIONS_DIR/$POT")