summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/finish-install6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install
index 077060fd5..35fadb051 100755
--- a/perl-install/standalone/finish-install
+++ b/perl-install/standalone/finish-install
@@ -39,8 +39,10 @@ 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));
+ if ($lang && member($lang, lang::list_langs(exclude_non_installed => 1))) {
+ put_in_hash($locale, lang::lang_to_ourlocale($lang));
+ lang::set($locale);
+ }
any::selectLanguage_and_more_standalone($in, $locale);
lang::write_and_install($locale, $in->do_pkgs);
}