diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2018-09-01 20:43:37 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2018-09-01 20:43:37 +0000 |
commit | 4a2f96d8d387cc9311743a067e2c4f80b1b55a78 (patch) | |
tree | b7d28f99551b5554c08d79bd38ab2423ad899801 /Master/tlpkg/bin/tl-update-messages | |
parent | 7e8b9ac66a032a70bd18c76d8446d698b58e9a4b (diff) |
Localization tcl installer; wrapper scripts
git-svn-id: svn://tug.org/texlive/trunk@48532 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-messages')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-messages | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/tlpkg/bin/tl-update-messages b/Master/tlpkg/bin/tl-update-messages index b243dd4c74c..879059eb0de 100755 --- a/Master/tlpkg/bin/tl-update-messages +++ b/Master/tlpkg/bin/tl-update-messages @@ -5,6 +5,17 @@ # update the master messages.pot catalog and merge the result into the # respective .po files. +# notes on transition to tcl/tk frontend + +# Until the 2019 pretest stage we use a combined message catalog. + + +# Afterwards, we drop the perl input files and use tcl- rather than +# perl syntax for the temporary file with short descriptions. + +# For tcl, all .po files are converted to tcl-compatible .msg +# files, using the msgfmt utility. + mydir=`cd \`dirname $0\` && /bin/pwd` Master=`cd $mydir/../.. && /bin/pwd` transdir=$Master/tlpkg/translations @@ -14,18 +25,20 @@ 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 +cat install-tl >>$tmpfile +# rely on file extensions for source language identification xgettext -o tlpkg/translations/messages.pot \ - -L Perl \ --copyright-holder="TeX Live Team" \ --msgid-bugs-address=tex-live@tug.org \ --package-version=2010 \ --package-name="TeX Live" \ -k__ -k\$__ -k%__ -k__x -k__n:1,2 -k__nx:1,2 -k__xn:1,2 -kN__ -k \ - install-tl \ tlpkg/installer/tracked-install.pl \ tlpkg/installer/install-menu-wizard.pl \ tlpkg/installer/install-menu-perltk.pl \ texmf-dist/scripts/texlive/tlmgrgui.pl \ + tlpkg/installer/install-tl-gui.tcl \ + texmf-dist/scripts/tlshell/tlshell.tcl \ $tmpfile rm $tmpfile @@ -47,6 +60,7 @@ rm -f $tmpa $tmpb messages.prev for i in *.po ; do printf "$i " msgmerge --backup=none --no-fuzzy-matching --update $i messages.pot + msgfmt --tcl -d . -l ${i%.po} $i done exit $? |