summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/main.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-11 23:18:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-11 23:18:21 +0000
commitfcf8e1b52fcf5e81c5548e0b77df71f4d95430e4 (patch)
tree498491d25a0290e232f236927a37dccdc233ac27 /perl-install/printer/main.pm
parent76fdde3ca84a2cb6ce204e973f2386ac0738957b (diff)
downloaddrakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.tar
drakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.tar.gz
drakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.tar.bz2
drakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.tar.xz
drakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.zip
use lang::analyse_locale_name() and lang::analyse_locale_name()
Diffstat (limited to 'perl-install/printer/main.pm')
-rw-r--r--perl-install/printer/main.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm
index d9f06ddde..fdfbdf317 100644
--- a/perl-install/printer/main.pm
+++ b/perl-install/printer/main.pm
@@ -15,6 +15,7 @@ use printer::office;
use printer::detect;
use handle_configs;
use services;
+use lang;
use vars qw(@ISA @EXPORT);
@@ -1534,7 +1535,7 @@ sub ppd_entry_str {
if $mf && $mf !~ m![\\/\(\)\[\]\|\.\$\@\%\*\?]!;
# Put out the resulting description string
uc($mf) . '|' . $model . '|' . $driver .
- ($lang && " (" . lc(substr($lang, 0, 2)) . ")");
+ ($lang && " (" . lang::locale_to_main_locale($lang) . ")");
}
sub get_descr_from_ppd {