summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-19 17:06:18 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-19 17:06:18 +0000
commit7836be4c18d16081800089f0e223454a0d835ebe (patch)
tree790a811ea8bb5db675de8f2d575dddea84bc9d05 /perl-install/lang.pm
parent31a454b0be1c0fbe4e60e347a14ffe7a6303f56d (diff)
downloaddrakx-backup-do-not-use-7836be4c18d16081800089f0e223454a0d835ebe.tar
drakx-backup-do-not-use-7836be4c18d16081800089f0e223454a0d835ebe.tar.gz
drakx-backup-do-not-use-7836be4c18d16081800089f0e223454a0d835ebe.tar.bz2
drakx-backup-do-not-use-7836be4c18d16081800089f0e223454a0d835ebe.tar.xz
drakx-backup-do-not-use-7836be4c18d16081800089f0e223454a0d835ebe.zip
silently use en_US for arabic.
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index bf6813835..87b583bff 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -23,7 +23,7 @@ use log;
my %langs = (
'af' => [ 'Afrikaans', 'Afrikaans', 'af_ZA', ' 3 ', 'iso-8859-1' ],
'am' => [ 'Amharic', 'ZZ emarNa', 'am_ET', ' 3 ', 'utf_am' ],
-#'ar' => [ 'Arabic', 'AA Arabic', 'ar_EG', ' 23 ', 'utf_ar' ],
+'ar' => [ 'Arabic', 'AA Arabic', 'ar_EG', ' 23 ', 'utf_ar' ],
'az' => [ 'Azeri (Latin)', 'Azerbaycanca', 'az_AZ', ' 2 ', 'utf_az' ],
'be' => [ 'Belarussian', 'Belaruskaya', 'be_BY', '1 ', 'cp1251' ],
'bg' => [ 'Bulgarian', 'Blgarski', 'bg_BG', '1 ', 'cp1251' ],
@@ -743,6 +743,9 @@ sub l2pango_font {
sub set {
my ($lang, $translate_for_console) = @_;
+ #- disable Arabic in install as no (free) fonts are available.
+ $lang eq 'ar' and $lang='en_US';
+
exists $langs{$lang} or log::l("lang::set: trying to set to $lang but I don't know it!"), return;
my $dir = "$ENV{SHARE_PATH}/locale";