summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-messages
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-08-10 21:05:40 +0000
committerNorbert Preining <preining@logic.at>2009-08-10 21:05:40 +0000
commit120da6896d0daf8491dd0d6b4af23843cc916b2e (patch)
tree8c1f1e10687238f2def7b34effbf629d1852b916 /Master/tlpkg/bin/tl-update-messages
parentd6948fdf7cc35349aa107a25e8f43884ae30526d (diff)
add tl-update-messages
git-svn-id: svn://tug.org/texlive/trunk@14604 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-messages')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-messages29
1 files changed, 29 insertions, 0 deletions
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 $?
+