summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-07-31 21:00:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-07-31 21:00:00 +0000
commite1972b91c4d37f8c57573e982aced0e33ada86b2 (patch)
tree5fc7dba50741c7c943542dba2e14433f4641e240 /perl-install
parent9c8fb1f2382d06d8674f68a1abc2a624aa35428e (diff)
downloaddrakx-backup-do-not-use-e1972b91c4d37f8c57573e982aced0e33ada86b2.tar
drakx-backup-do-not-use-e1972b91c4d37f8c57573e982aced0e33ada86b2.tar.gz
drakx-backup-do-not-use-e1972b91c4d37f8c57573e982aced0e33ada86b2.tar.bz2
drakx-backup-do-not-use-e1972b91c4d37f8c57573e982aced0e33ada86b2.tar.xz
drakx-backup-do-not-use-e1972b91c4d37f8c57573e982aced0e33ada86b2.zip
chineese locale support
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/share/gen_locales.sh17
-rw-r--r--perl-install/share/locales-skeleton.tar.bz2bin25860 -> 25650 bytes
2 files changed, 16 insertions, 1 deletions
diff --git a/perl-install/share/gen_locales.sh b/perl-install/share/gen_locales.sh
index 8f6c09c1f..c97a14a2e 100755
--- a/perl-install/share/gen_locales.sh
+++ b/perl-install/share/gen_locales.sh
@@ -16,7 +16,7 @@ for i in CP1251 CP1255 CP1256 ISO-8859-13 ISO-8859-14 ISO-8859-15 ISO-8859-2 ISO
done
rm -rf .tmp2 ; mkdir .tmp2 ; cd .tmp2
-for i in hy ja ko ta th vi zh_CN.GB2312 zh_TW.Big5 ; do
+for i in hy ja ko ta th vi ; do
ii=locales-`echo $i | sed 's/\(..\).*/\1/'`
rpm2cpio /RPMS/$ii-*.rpm | cpio -id --quiet
f=usr/share/locale/$i/LC_CTYPE
@@ -26,6 +26,21 @@ for i in hy ja ko ta th vi zh_CN.GB2312 zh_TW.Big5 ; do
done
cd .. ; rm -rf .tmp2
+# special case for chineese (why is it needed?)
+rm -rf .tmp2 ; mkdir .tmp2 ; cd .tmp2
+for i in zh_CN.GB2312 zh_TW.Big5 ; do
+ ii=locales-`echo $i | sed 's/\(..\).*/\1/'`
+ rpm2cpio /RPMS/$ii-*.rpm | cpio -id --quiet
+ for f in LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_MESSAGES/SYS_LC_MESSAGES ; do
+ f=usr/share/locale/$i/$f
+ [ -e $f ] || { echo missing $f in package $ii ; exit 1 ; }
+ cp -f $f ../$f
+ done
+ rm -rf *
+done
+cd .. ; rm -rf .tmp2
+
+
tar cfj ../locales.tar.bz2 usr
cd .. ; rm -rf .tmp
diff --git a/perl-install/share/locales-skeleton.tar.bz2 b/perl-install/share/locales-skeleton.tar.bz2
index 662a8d1f5..133d0bd1d 100644
--- a/perl-install/share/locales-skeleton.tar.bz2
+++ b/perl-install/share/locales-skeleton.tar.bz2
Binary files differ