diff options
author | Nils Wallménius <nils@rockbox.org> | 2011-04-07 07:50:29 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2011-04-07 07:50:29 +0000 |
commit | 37990206dd28c10ab0470e4d7171ca993013a93c (patch) | |
tree | e77a1211466e30f0e31aa5998a3c2f46fb358bf7 /tools | |
parent | 0e8e166f25e3fbdca349635688113918e294caf3 (diff) | |
download | rockbox-37990206dd28c10ab0470e4d7171ca993013a93c.tar.gz rockbox-37990206dd28c10ab0470e4d7171ca993013a93c.zip |
Fix FS#12003 'langtool.pl --deprecate is broken'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29688 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/langtool.pl | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/langtool.pl b/tools/langtool.pl index a0e147c4ad..bffdde2c9b 100755 --- a/tools/langtool.pl +++ b/tools/langtool.pl | |||
@@ -209,15 +209,9 @@ foreach my $file (@ARGV) { | |||
209 | if ($id ne "" and grep(/^$id$/, @ids)) { | 209 | if ($id ne "" and grep(/^$id$/, @ids)) { |
210 | # Set desc | 210 | # Set desc |
211 | $line =~ s/\s*desc:.*/ desc: deprecated/; | 211 | $line =~ s/\s*desc:.*/ desc: deprecated/; |
212 | # Set user | 212 | # Leave user field alone |
213 | $line =~ s/\s*user:.*/ user:/; | 213 | if ($location =~ /source|dest|voice/) { |
214 | # Print an empty target line after opening tag (target isn't set) | 214 | $line =~ s/".*"/""/; |
215 | if ($location =~ /source|dest|voice/ and $target eq "") { | ||
216 | $line .= " *: none\n"; | ||
217 | } | ||
218 | # Do not print target: string lines | ||
219 | elsif ($location =~ /source|dest|voice/ and $target ne "") { | ||
220 | $line = ""; | ||
221 | } | 215 | } |
222 | } | 216 | } |
223 | } | 217 | } |