diff options
Diffstat (limited to 'po/update-pot.sh')
-rw-r--r-- | po/update-pot.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/po/update-pot.sh b/po/update-pot.sh new file mode 100644 index 0000000..6ceb21f --- /dev/null +++ b/po/update-pot.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +_xgettext() { + xgettext --package-name=weltschmerz -cTRANSLATORS "$@" -o po/weltschmerz.pot +} + +_xgettext -f po/POTFILES + +# We treat this file specially in order to override the keywords used for it. +# Since we do not want Name translated, reset the keyword list with -k and then +# add the keywords we want. +_xgettext -j -k -kComment -kKeywords weltschmerz.desktop.in + +while read lang; do + msgmerge -q -o "po/${lang}.po" "po/${lang}.po" po/weltschmerz.pot +done < po/LINGUAS |