1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

* mk-w32-dist: Convert the character sets on a per language base.

This commit is contained in:
Werner Koch 2002-09-11 12:56:56 +00:00
parent 96396ff9f1
commit 0bdb353363
2 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-09-11 Werner Koch <wk@gnupg.org>
* mk-w32-dist: Convert the character sets on a per language base.
2002-09-02 Werner Koch <wk@gnupg.org>
* mk-w32-dist: Include more man pages and gpg split. Changed name

View File

@ -62,7 +62,25 @@ for i in README.W32 gnupg-w32.reg; do
todos $i
done
for i in ${srcdir}/po/*.gmo; do ln $i "$(basename $i .gmo).mo" ; done
for i in ${srcdir}/po/*.po; do
lang=$(basename $i .po)
fromset=`sed -n '/^"Content-Type:/ s/.*charset=\([a-zA-Z0-9_-]*\).*/\1/p' $i`
case $lang in
cs|pl) toset="CP1250" ;;
el|eo|et|ja|tr) toset="" ;;
*) toset="CP850" ;;
esac
if [ -n "$toset" ]; then
echo "$lang: converting from $fromset to $toset" >&2
iconv --silent --from-code=$fromset --to-code=$toset < $i | \
sed "/^\"Content-Type:/ s/charset=[a-zA-Z0-9_-]*/charset=$toset/" | \
msgfmt --output-file=$lang.mo -
else
echo "$lang: keeping $fromset" >&2
msgfmt --output-file=$lang.mo $i
fi
done
zip -9 "gnupg-w32cli-${version}.zip" *