diff options
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r-- | perl-install/lang.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm index 07511c48c..7a4d77785 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -170,13 +170,20 @@ sub set { $ENV{LANG} = $languages{$lang}[2]; $ENV{LANGUAGE} = $languages{$lang}[3]; $ENV{LINGUAS} = $languages{$lang}[3]; + + local $_ = $languages{$lang}[1]; + s/iso-8859-1$/iso-8859-15/; + s/iso-/iso/; + s/koi8-.*/koi8/; + s/cp1251/mscp1251/; + + commands::install_cpio("/usr/share/locale", $languages{$lang}[2], "misc", $_); } else { # stick with the default (English) */ delete $ENV{LANG}; delete $ENV{LC_ALL}; delete $ENV{LINGUAS}; } - commands::install_cpio("/usr/share/locale", $lang); } sub write { |