diff options
Diffstat (limited to 'Master/tlpkg/bin/tl-update-messages')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-messages | 7 |
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 $? |