summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/finish-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-03 05:13:57 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-03 05:13:57 +0000
commit6968cdd405b7c278da255e025362aeff70d73557 (patch)
tree66fce9ca049212bef774a689ad2e7be946cc2cfa /perl-install/standalone/finish-install
parentf1aa9296fabd5fdc6cb6f4633dab9a15191bee52 (diff)
downloaddrakx-6968cdd405b7c278da255e025362aeff70d73557.tar
drakx-6968cdd405b7c278da255e025362aeff70d73557.tar.gz
drakx-6968cdd405b7c278da255e025362aeff70d73557.tar.bz2
drakx-6968cdd405b7c278da255e025362aeff70d73557.tar.xz
drakx-6968cdd405b7c278da255e025362aeff70d73557.zip
reuse lang from command line (#34052)
Diffstat (limited to 'perl-install/standalone/finish-install')
-rwxr-xr-xperl-install/standalone/finish-install3
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);
}