From 120da6896d0daf8491dd0d6b4af23843cc916b2e Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 10 Aug 2009 21:05:40 +0000 Subject: add tl-update-messages git-svn-id: svn://tug.org/texlive/trunk@14604 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/tl-update-messages | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 Master/tlpkg/bin/tl-update-messages (limited to 'Master/tlpkg/bin') diff --git a/Master/tlpkg/bin/tl-update-messages b/Master/tlpkg/bin/tl-update-messages new file mode 100755 index 00000000000..2f37d81dbcb --- /dev/null +++ b/Master/tlpkg/bin/tl-update-messages @@ -0,0 +1,29 @@ +#!/bin/sh -e +# $Id$ +# Public domain. Originally written 2009, Norbert Preining. +# +# update the master message.pot catalog and merge the result into the +# respective .po files. + +# Convenience variables. +mydir=`dirname $0` +Master=`cd $mydir/../.. && pwd` +transdir=$Master/tlpkg/translations + +cd $Master || exit 1 +xgettext -o tlpkg/translations/messages.pot -L Perl \ + -k__ -k\$__ -k%__ -k__x -k__n:1,2 -k__nx:1,2 -k__xn:1,2 -kN__ -k \ + tlpkg/installer/install-menu-perltk.pl \ + tlpkg/installer/install-menu-wizard.pl \ + texmf/scripts/texlive/tlmgrgui/*.pl + +cd $transdir || exit 1 +for i in *.po ; do + msgmerge --update $i messages.pot +done + +# +# commit the changes???? + +exit $? + -- cgit v1.2.3