diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-13 17:33:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-13 17:33:04 +0000 |
commit | ef35ba1feacbebfaba410bb7e9c99bf617e5f827 (patch) | |
tree | 83edca93c6d65b36a0eadd697822bb076f67f4ad /credits2po | |
parent | 237782b903c2d74dd6517d252aab1ab365929deb (diff) | |
download | control-center-ef35ba1feacbebfaba410bb7e9c99bf617e5f827.tar control-center-ef35ba1feacbebfaba410bb7e9c99bf617e5f827.tar.gz control-center-ef35ba1feacbebfaba410bb7e9c99bf617e5f827.tar.bz2 control-center-ef35ba1feacbebfaba410bb7e9c99bf617e5f827.tar.xz control-center-ef35ba1feacbebfaba410bb7e9c99bf617e5f827.zip |
fix CREDITS parsing due to new format (#7482)
Diffstat (limited to 'credits2po')
-rwxr-xr-x | credits2po | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -15,12 +15,18 @@ use lib qw(/usr/lib/libDrakX); use common; { ), - (map { - my ($contributor, $descr) = split(', ', $_, 2); - chomp($descr); - $descr =~ s/(["@$])/\\$1/g; - qq(\tN("$contributor") => N("$descr"),); - } cat_(glob("/usr/share/doc/mandrake-release-*/CREDITS"))), + (map { + if (/^\s*\* (.*)$/) { + my ($contributor, $descr) = split(', ', $1); + #if (/^\s*\* (.*), (.*)/) { + chomp($descr); + $descr =~ s/(["@$])/\\$1/g; + join('', qq(\tN("$contributor") => ), $descr ? qq(N("$descr"),) : '"",'); + } else { + chomp; + qq(\tN("$_") => "",); + } + } grep { $_ ne "\n" } cat_(glob("/usr/share/doc/mandrake-release-*/CREDITS"))), "}" ) ); |