summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-10 13:56:28 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-10 13:56:28 +0000
commite702e5f9cf56ceeafd933188615a1a76b199370c (patch)
tree20990a21014acf1e1c04ec01e508a0bd8c2682c4 /perl-install/lang.pm
parent56782d8c1df7c88dd3e75c36ad72cdac06989b3a (diff)
downloaddrakx-e702e5f9cf56ceeafd933188615a1a76b199370c.tar
drakx-e702e5f9cf56ceeafd933188615a1a76b199370c.tar.gz
drakx-e702e5f9cf56ceeafd933188615a1a76b199370c.tar.bz2
drakx-e702e5f9cf56ceeafd933188615a1a76b199370c.tar.xz
drakx-e702e5f9cf56ceeafd933188615a1a76b199370c.zip
perl checko files
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm15
1 files changed, 3 insertions, 12 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 9520d862a..f04eefcf7 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -200,17 +200,17 @@ sub standard_locale {
sub getlocale_for_lang {
my ($lang, $country, $utf8) = @_;
- standard_locale(@_) || l2locale($lang).($utf8 ? '.UTF-8' : '');
+ standard_locale($lang, $country, $utf8) || l2locale($lang).($utf8 ? '.UTF-8' : '');
}
sub getlocale_for_country {
my ($lang, $country, $utf8) = @_;
- standard_locale(@_) || c2locale($country).($utf8 ? '.UTF-8' : '');
+ standard_locale($lang, $country, $utf8) || c2locale($country).($utf8 ? '.UTF-8' : '');
}
sub getLANGUAGE {
my ($lang, $country, $utf8) = @_;
- l2language($lang) || join(':', uniq(getlocale_for_lang(@_), $lang, if_($lang =~ /^(..)_/, $1)));
+ l2language($lang) || join(':', uniq(getlocale_for_lang($lang, $country, $utf8), $lang, if_($lang =~ /^(..)_/, $1)));
}
my %xim = (
@@ -747,15 +747,6 @@ sub fs_options {
}
}
-sub charset {
- my ($lang, $prefix) = @_;
- my $l = lang2LANG($lang);
- foreach (cat_("$prefix/usr/X11R6/lib/X11/locale/locale.alias")) {
- /$l:\s+.*\.(\S+)/ and return $1;
- }
- $l =~ /.*\.(\S+)/ and return $1;
-}
-
sub during_install__l2charset {
my ($lang) = @_;
return if member($lang, @during_install__lang_having_their_LC_CTYPE);