summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-01-04 22:13:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-01-04 22:13:57 +0000
commit85e21d9abb2daf68be31c33dcdbc8874c3cc8fdc (patch)
tree3a45e1e56f50f9f59ea5d3db0be6b279ee0eb526 /perl-install/lang.pm
parentf7537f35d8002323124bbb8aa40b627152660bf3 (diff)
downloaddrakx-backup-do-not-use-85e21d9abb2daf68be31c33dcdbc8874c3cc8fdc.tar
drakx-backup-do-not-use-85e21d9abb2daf68be31c33dcdbc8874c3cc8fdc.tar.gz
drakx-backup-do-not-use-85e21d9abb2daf68be31c33dcdbc8874c3cc8fdc.tar.bz2
drakx-backup-do-not-use-85e21d9abb2daf68be31c33dcdbc8874c3cc8fdc.tar.xz
drakx-backup-do-not-use-85e21d9abb2daf68be31c33dcdbc8874c3cc8fdc.zip
no_comment
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index df8eb6835..15c5436a7 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -268,11 +268,19 @@ sub load_po($) {
local *F;
unless (-e $f) {
-e ($f = "$_/po/$lang.po.bz2") and last foreach @INC;
- open F, "bzip2 -dc $f 2>/dev/null |";
+ if (-e $f) {
+ open F, "bzip2 -dc $f 2>/dev/null |";
+ } else {
+ -e ($f = "$_/po.cz2") and last foreach @INC;
+ $f =~ s/\.cz2//;
+ log::l("loading $lang.po from $f");
+ open F, "extract_archive $f '' $lang.po 2>/dev/null |";
+ }
} else {
open F, $f; #- not returning here help avoiding reading the same multiple times.
}
foreach (<F>) {
+ log::l("load_po: $_");
/^msgstr/ and $state = 1;
/^msgid/ && !$fuzzy and $state = 2;