summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-04-07 07:50:29 +0000
committerNils Wallménius <nils@rockbox.org>2011-04-07 07:50:29 +0000
commit37990206dd28c10ab0470e4d7171ca993013a93c (patch)
treee77a1211466e30f0e31aa5998a3c2f46fb358bf7
parent0e8e166f25e3fbdca349635688113918e294caf3 (diff)
downloadrockbox-37990206dd28c10ab0470e4d7171ca993013a93c.zip
rockbox-37990206dd28c10ab0470e4d7171ca993013a93c.tar.gz
rockbox-37990206dd28c10ab0470e4d7171ca993013a93c.tar.bz2
rockbox-37990206dd28c10ab0470e4d7171ca993013a93c.tar.xz
Fix FS#12003 'langtool.pl --deprecate is broken'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29688 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/langtool.pl12
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/langtool.pl b/tools/langtool.pl
index a0e147c..bffdde2 100755
--- a/tools/langtool.pl
+++ b/tools/langtool.pl
@@ -209,15 +209,9 @@ foreach my $file (@ARGV) {
if ($id ne "" and grep(/^$id$/, @ids)) {
# Set desc
$line =~ s/\s*desc:.*/ desc: deprecated/;
- # Set user
- $line =~ s/\s*user:.*/ user:/;
- # Print an empty target line after opening tag (target isn't set)
- if ($location =~ /source|dest|voice/ and $target eq "") {
- $line .= " *: none\n";
- }
- # Do not print target: string lines
- elsif ($location =~ /source|dest|voice/ and $target ne "") {
- $line = "";
+ # Leave user field alone
+ if ($location =~ /source|dest|voice/) {
+ $line =~ s/".*"/""/;
}
}
}