mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-19 00:04:52 -04:00
update_ts.sh: add more context
This commit is contained in:
parent
0c23e94a29
commit
e5f0522b36
@ -39,7 +39,7 @@ for my $f (<python/plugins/processing/algs/otb/description/*.xml>) {
|
|||||||
my $xml = XMLin($f, ForceArray=>1);
|
my $xml = XMLin($f, ForceArray=>1);
|
||||||
|
|
||||||
foreach my $k (qw/longname group description/) {
|
foreach my $k (qw/longname group description/) {
|
||||||
$strings{"OTBAlgorithm"}{$xml->{$k}->[0]} = 1;
|
$strings{"OTBAlgorithm"}{$xml->{$k}->[0]} = $f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ for my $f (<python/plugins/processing/algs/grass*/description/*.txt>) {
|
|||||||
while( my($class, $name, $description, $rest) = split /\|/, scalar(<I>) ) {
|
while( my($class, $name, $description, $rest) = split /\|/, scalar(<I>) ) {
|
||||||
next unless defined $description;
|
next unless defined $description;
|
||||||
$description =~ s/\s+$//;
|
$description =~ s/\s+$//;
|
||||||
$strings{"GrassAlgorithm"}{$description} = 1
|
$strings{"GrassAlgorithm"}{$description} = $f;
|
||||||
}
|
}
|
||||||
|
|
||||||
close I;
|
close I;
|
||||||
@ -60,8 +60,8 @@ for my $f (<python/plugins/processing/algs/grass*/description/*.txt>) {
|
|||||||
chop $desc;
|
chop $desc;
|
||||||
chop $group;
|
chop $group;
|
||||||
|
|
||||||
$strings{"GrassAlgorithm"}{$desc} = 1;
|
$strings{"GrassAlgorithm"}{$desc} = $f;
|
||||||
$strings{"GrassAlgorithm"}{$group} = 1;
|
$strings{"GrassAlgorithm"}{$group} = $f;
|
||||||
}
|
}
|
||||||
|
|
||||||
for my $f (<python/plugins/processing/algs/saga/description/*/*.txt>) {
|
for my $f (<python/plugins/processing/algs/saga/description/*/*.txt>) {
|
||||||
@ -86,7 +86,7 @@ for my $f (<python/plugins/processing/algs/help/*.yaml>) {
|
|||||||
$base = uc $base;
|
$base = uc $base;
|
||||||
my $yaml = LoadFile($f);
|
my $yaml = LoadFile($f);
|
||||||
for my $k (keys %$yaml) {
|
for my $k (keys %$yaml) {
|
||||||
$strings{"${base}Algorithm"}{$yaml->{$k}} = 1;
|
$strings{"${base}Algorithm"}{$yaml->{$k}} = $f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ for my $f ( ("python/plugins/processing/gui/algnames.txt") ) {
|
|||||||
chop;
|
chop;
|
||||||
s/^.*,//;
|
s/^.*,//;
|
||||||
foreach my $v (split "/", $_) {
|
foreach my $v (split "/", $_) {
|
||||||
$strings{"AlgorithmClassification"}{$v} = 1;
|
$strings{"AlgorithmClassification"}{$v} = $f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close I;
|
close I;
|
||||||
@ -120,7 +120,11 @@ EOF
|
|||||||
|
|
||||||
foreach my $v (keys %{ $strings{$k} } ) {
|
foreach my $v (keys %{ $strings{$k} } ) {
|
||||||
next if $v eq "";
|
next if $v eq "";
|
||||||
print F " <property><string>" . xmlescape($v) . "</string></property>\n";
|
my $c = $strings{$k}{$v};
|
||||||
|
$c =~ s#^.*/##;
|
||||||
|
$c =~ s#\.[^.]+$##;
|
||||||
|
|
||||||
|
print F " <property><string extracomment=\"$c\">" . xmlescape($v) . "</string></property>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
print F <<EOF;
|
print F <<EOF;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user