diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-11-10 14:56:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-11-10 14:56:15 +0000 |
commit | 472fd8be1e0693670dfb47c0532d8dbb805afd62 (patch) | |
tree | 6491be8bb3f2f1c2c21b04686db50756197d4a70 /rescue/make_rescue_img | |
parent | 9587b03ae53129108677bf3da11a1f35613c028c (diff) | |
download | drakx-472fd8be1e0693670dfb47c0532d8dbb805afd62.tar drakx-472fd8be1e0693670dfb47c0532d8dbb805afd62.tar.gz drakx-472fd8be1e0693670dfb47c0532d8dbb805afd62.tar.bz2 drakx-472fd8be1e0693670dfb47c0532d8dbb805afd62.tar.xz drakx-472fd8be1e0693670dfb47c0532d8dbb805afd62.zip |
minimal i18n support
Diffstat (limited to 'rescue/make_rescue_img')
-rwxr-xr-x | rescue/make_rescue_img | 7 |
1 files changed, 7 insertions, 0 deletions
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)"; |