From 472fd8be1e0693670dfb47c0532d8dbb805afd62 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 10 Nov 2005 14:56:15 +0000 Subject: minimal i18n support --- rescue/list.xml | 16 ++++++++++++++++ rescue/make_rescue_img | 7 +++++++ rescue/tree/etc/rc.sysinit | 2 ++ 3 files changed, 25 insertions(+) (limited to 'rescue') diff --git a/rescue/list.xml b/rescue/list.xml index 8e6fdbde2..8a812b662 100644 --- a/rescue/list.xml +++ b/rescue/list.xml @@ -146,6 +146,22 @@ perl -Mkeyboard -I../perl-install -le 'print foreach keyboard::loadkeys_files()' + + + /usr/lib/gconv/gconv-modules + /usr/lib/gconv/ISO8859-15.so + /usr/share/locale/ISO-8859-15 + /usr/share/locale/fr_FR + /usr/share/locale/fr/LC_MESSAGES/partimage.mo + + + /usr/lib/gconv/gconv-modules + /usr/lib/gconv/ISO8859-15.so + /usr/share/locale/ISO-8859-15 + /usr/share/locale/pt_BR + /usr/share/locale/pt/LC_MESSAGES/partimage.mo + + diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img index bd4778523..08e35e937 100755 --- a/rescue/make_rescue_img +++ b/rescue/make_rescue_img @@ -76,6 +76,13 @@ foreach (cat_("aliases")) { symlink $dest, "$tmp$f"; } + +if (my ($LANGUAGE) = map { if_(/LANGUAGE_(.*)/, $1) } keys %ENV) { + substInFile { + $_ = "export LANGUAGE=$LANGUAGE\n" . "export LC_ALL=$LANGUAGE\n" if /^#LANGUAGE/; + } "$tmp/etc/rc.sysinit"; +} + if ($ENV{PARTIMAGE_RPM}) { _ "rpm2cpio $ENV{PARTIMAGE_RPM} | (cd $tmp ; cpio -idu ./usr/sbin/partimage)"; diff --git a/rescue/tree/etc/rc.sysinit b/rescue/tree/etc/rc.sysinit index 9cd170e36..0944a36b4 100755 --- a/rescue/tree/etc/rc.sysinit +++ b/rescue/tree/etc/rc.sysinit @@ -55,6 +55,8 @@ load sr_mod /sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 /sbin/route add 127.0.0.1 lo +#LANGUAGE (filled by make_rescue_img) + grep -q noauto /proc/cmdline || drvinst SERIAL_USB if grep ka /proc/cmdline; then -- cgit v1.2.1