diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-09-27 20:52:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-09-27 20:52:11 +0000 |
commit | f902492a01c974283c9c800ddbd5de651c474c25 (patch) | |
tree | 4a8eb59f4644fb18ef8e3a448c79061643b60145 /perl-install/lang.pm | |
parent | 73e7a0f1107be369f7304335082afac4f96ee3d2 (diff) | |
download | drakx-backup-do-not-use-f902492a01c974283c9c800ddbd5de651c474c25.tar drakx-backup-do-not-use-f902492a01c974283c9c800ddbd5de651c474c25.tar.gz drakx-backup-do-not-use-f902492a01c974283c9c800ddbd5de651c474c25.tar.bz2 drakx-backup-do-not-use-f902492a01c974283c9c800ddbd5de651c474c25.tar.xz drakx-backup-do-not-use-f902492a01c974283c9c800ddbd5de651c474c25.zip |
no_comment
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r-- | perl-install/lang.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm index 8d7465729..514d19594 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -174,7 +174,7 @@ sub write { sub load_po($) { my ($lang) = @_; - my ($s, $from, $to, $state); + my ($s, $from, $to, $state, $fuzzy); $s .= "package po::I18N;\n"; $s .= "\%$lang = ("; @@ -183,7 +183,7 @@ sub load_po($) { local *F; open F, $f or return; foreach (<F>) { /^msgstr/ and $state = 1; - /^msgid/ and $state = 2; + /^msgid/ && !$fuzzy and $state = 2; if (/^(#|$)/ && $state != 3) { $state = 3; @@ -192,6 +192,8 @@ sub load_po($) { } $to .= (/"(.*)"/)[0] if $state == 1; $from .= (/"(.*)"/)[0] if $state == 2; + + $fuzzy = /^#, fuzzy/; } $s .= ");"; no strict "vars"; |