diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-04-03 05:13:57 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-04-03 05:13:57 +0000 |
commit | 6968cdd405b7c278da255e025362aeff70d73557 (patch) | |
tree | 66fce9ca049212bef774a689ad2e7be946cc2cfa | |
parent | f1aa9296fabd5fdc6cb6f4633dab9a15191bee52 (diff) | |
download | drakx-backup-do-not-use-6968cdd405b7c278da255e025362aeff70d73557.tar drakx-backup-do-not-use-6968cdd405b7c278da255e025362aeff70d73557.tar.gz drakx-backup-do-not-use-6968cdd405b7c278da255e025362aeff70d73557.tar.bz2 drakx-backup-do-not-use-6968cdd405b7c278da255e025362aeff70d73557.tar.xz drakx-backup-do-not-use-6968cdd405b7c278da255e025362aeff70d73557.zip |
reuse lang from command line (#34052)
-rwxr-xr-x | perl-install/standalone/finish-install | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install index b269dd110..ead0b526b 100755 --- a/perl-install/standalone/finish-install +++ b/perl-install/standalone/finish-install @@ -39,6 +39,9 @@ sub ask_license() { sub ask_language() { require lang; $locale = lang::read(); + my ($lang) = cat_("/proc/cmdline") =~ /\blang=(.+?)\b/; + put_in_hash($locale, lang::lang_to_ourlocale($lang)) + if $lang && member($lang, lang::list_langs(exclude_non_installed => 1)); any::selectLanguage_and_more_standalone($in, $locale); lang::write_and_install($locale, $in->do_pkgs); } |