aboutsummaryrefslogtreecommitdiffstats
path: root/find-lang.pl
diff options
context:
space:
mode:
Diffstat (limited to 'find-lang.pl')
-rwxr-xr-xfind-lang.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/find-lang.pl b/find-lang.pl
index 66f507c..f14f2e0 100755
--- a/find-lang.pl
+++ b/find-lang.pl
@@ -11,6 +11,7 @@ use Pod::Usage;
GetOptions(
'all-name' => \my $allname,
'with-gnome' => \my $withgnome,
+ 'with-help' => \my $withhelp,
'with-kde' => \my $withkde,
'with-html' => \my $withhtml,
'without-mo' => \my $withoutmo,
@@ -53,6 +54,14 @@ File::Find::find(
if (pkg_match($pkg)) {
parent_to_own($langfile, $file, $lang);
}
+ } elsif ($file =~ m:^((.*/share/help)/([^/]+)/([^/]+))/([^/]+).*:) {
+ if (!$withhelp) {
+ return;
+ }
+ my ($pkg, $lang, $parent, $langfile) = ($4, $3, $2, $1);
+ if (pkg_match($pkg)) {
+ parent_to_own($langfile, $file, $lang);
+ }
} elsif ($file =~ m:^((.*/doc/kde)/HTML/([^/@]+)[^/]*)/([^/]+)/.*:) {
if (!$withkde) {
return;