diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-10-03 12:25:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-10-03 12:25:55 +0000 |
commit | 3469d90c5395dd2b661cc6f0cb8e1f0a010d75ac (patch) | |
tree | b31fb2908fde2a821f4b4b6cdb3b478e6c9f6255 | |
parent | f0c6ab1057479420e6d3c4e153fa3d84a7adea10 (diff) | |
download | control-center-3469d90c5395dd2b661cc6f0cb8e1f0a010d75ac.tar control-center-3469d90c5395dd2b661cc6f0cb8e1f0a010d75ac.tar.gz control-center-3469d90c5395dd2b661cc6f0cb8e1f0a010d75ac.tar.bz2 control-center-3469d90c5395dd2b661cc6f0cb8e1f0a010d75ac.tar.xz control-center-3469d90c5395dd2b661cc6f0cb8e1f0a010d75ac.zip |
(about_mdk_cc) use CREDITS.<lang> if availlable
-rwxr-xr-x | control-center | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/control-center b/control-center index ba0c2d78..afef9672 100755 --- a/control-center +++ b/control-center @@ -1884,7 +1884,9 @@ sub about_mdk_cc() { } my ($previous_type, $not_first_title, $not_first_block); - foreach my $line (grep { $_ ne "\n" && !/^#/ } cat_(top(glob("/usr/share/doc/mandriva-release-*/CREDITS")))) { + my $locale = lang::read; + my @files = (glob("/usr/share/doc/mandriva-release-*/CREDITS"), glob("/usr/share/doc/mandriva-release-*/CREDITS.$locale->{lang}")); + foreach my $line (grep { $_ ne "\n" && !/^#/ } cat_(top((glob("/usr/share/doc/mandriva-release-*/CREDITS"), glob("/usr/share/doc/mandriva-release-*/CREDITS.$locale->{lang}"))))) { $line =~ s/ Limited Edition 2005 \|//; if (my ($type, $comment, $contributor) = split(/\|/, $line, 3)) { last if !$type; |