Browse Source

Use msgmerge to regenerate all *.po files against the new mc.pot with the
line numbers.

Pavel Roskin 19 years ago
parent
commit
82fcec6544
1 changed files with 2 additions and 1 deletions
  1. 2 1
      maint/send-po

+ 2 - 1
maint/send-po

@@ -13,6 +13,7 @@ DOMAIN=mc
 COPYRIGHT_HOLDER="Free Software Foundation, Inc."
 XGETTEXT_OPTIONS="--keyword=_ --keyword=N_ --keyword=gettext_ui"
 XGETTEXT=xgettext
+MSGMERGE=msgmerge
 
 files=`find . -name '*.[ch]' | xargs $XGETTEXT $XGETTEXT_OPTIONS --output=-  | \
 	sed -ne '/^#:/{s/#://;s/:[0-9]*/\n/g;s/ //g;p;}' | sort -u | grep -v 'regex.c'`
@@ -22,7 +23,7 @@ $XGETTEXT --default-domain=$DOMAIN --directory=. \
 	  --copyright-holder="$COPYRIGHT_HOLDER" --output=po/mc.pot.new $files
 
 for file in po/*.po; do
-    cp -f $file $file.new
+    $MSGMERGE --output=$file.new $file po/mc.pot.new
 done
 
 # Location of the snapshot directory