diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-09-01 04:31:14 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-09-01 04:31:14 +0000 |
commit | f3f8f3ff7db345d6564c3715e9489a739a521e6e (patch) | |
tree | 71a334feb250cbe1acbdd37d349d93bc5c6a54fa /perl-install/lang.pm | |
parent | b6f86d13b5e938353fd4f230f7a25187509a1abb (diff) | |
download | drakx-f3f8f3ff7db345d6564c3715e9489a739a521e6e.tar drakx-f3f8f3ff7db345d6564c3715e9489a739a521e6e.tar.gz drakx-f3f8f3ff7db345d6564c3715e9489a739a521e6e.tar.bz2 drakx-f3f8f3ff7db345d6564c3715e9489a739a521e6e.tar.xz drakx-f3f8f3ff7db345d6564c3715e9489a739a521e6e.zip |
simplify
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r-- | perl-install/lang.pm | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm index a4110f7dd..8e301c867 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -655,21 +655,6 @@ sub IM2packages { return $packages ? @$packages : $im; } -#- CONSOLE_NOT_LOCALIZED if defined to yes, disables translations on console -#- it is needed for languages not supported by the linux console -my %console_support = ( -'ar' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'bn' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'fa' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'he' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'hi' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'ko' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'ur' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'yi' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'zh_TW' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -'zh_CN' => { CONSOLE_NOT_LOCALIZED => 'yes', }, -); - #- [0]: console font name #- [1]: sfm map for console font (if needed) #- [2]: acm file for console font (none if utf8) @@ -1056,8 +1041,10 @@ sub write { } #- deactivate translations on console for RTL languages - if ($console_support{$locale->{lang}}) { - add2hash $h, { CONSOLE_NOT_LOCALIZED => $console_support{$locale->{lang}}{CONSOLE_NOT_LOCALIZED} } + if (member($locale->{lang}}, qw(ar bn fa he hi ko ur yi zh_TW zh_CN)) { + #- CONSOLE_NOT_LOCALIZED if defined to yes, disables translations on console + #- it is needed for languages not supported by the linux console + add2hash $h, { CONSOLE_NOT_LOCALIZED => 'yes' } } setVarsInSh($prefix . ($b_user_only ? "$ENV{HOME}/.i18n" : '/etc/sysconfig/i18n'), $h); |