summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-messages
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-07-16 14:43:39 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-07-16 14:43:39 +0000
commit60ac6377e8e1c294355476e59006328f211fd810 (patch)
treeb593658b3a7775ba849e70c63ac1a9082c72b331 /Master/tlpkg/bin/tl-update-messages
parent7cbfc915e83083abb33fe940efda460956eaf9f6 (diff)
Translate shortdesc of schemes and collections in the perltk installer.
git-svn-id: svn://tug.org/texlive/trunk@19479 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-messages')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-messages7
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/tlpkg/bin/tl-update-messages b/Master/tlpkg/bin/tl-update-messages
index faaa47fe92e..57cad51c41d 100755
--- a/Master/tlpkg/bin/tl-update-messages
+++ b/Master/tlpkg/bin/tl-update-messages
@@ -8,9 +8,12 @@
mydir=`cd \`dirname $0\` && /bin/pwd`
Master=`cd $mydir/../.. && /bin/pwd`
transdir=$Master/tlpkg/translations
+tmpfile=tlpkg/translations/shortdesc.pl
cd $Master || exit 1
cp $transdir/messages.pot $transdir/messages.prev
+sed -n 's/^shortdesc \(.*\)/__("\1");/p' \
+ tlpkg/tlpsrc/scheme-*.tlpsrc tlpkg/tlpsrc/collection-*.tlpsrc >$tmpfile
xgettext -o tlpkg/translations/messages.pot \
-L Perl \
--copyright-holder="TeX Live Team" \
@@ -21,6 +24,8 @@ xgettext -o tlpkg/translations/messages.pot \
tlpkg/installer/install-menu-wizard.pl \
tlpkg/installer/install-menu-perltk.pl \
texmf/scripts/texlive/tlmgrgui.pl \
+ $tmpfile
+rm $tmpfile
cd $transdir || exit 1
@@ -39,7 +44,7 @@ rm -f $tmpa $tmpb messages.prev
# here we come only if there have been changes
for i in *.po ; do
printf "$i "
- msgmerge --backup=none --update $i messages.pot
+ msgmerge --backup=none --no-fuzzy-matching --update $i messages.pot
done
exit $?