Changeset 154117 in webkit
- Timestamp:
- Aug 15, 2013 12:19:45 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r154115 r154117 1 2013-08-15 Dan Bernstein <mitz@apple.com> 2 3 <https://webkit.org/b/119856> Improve extract-localizable-strings messages 4 5 Reviewed by Darin Adler. 6 7 * Scripts/extract-localizable-strings: When the strings file disagrees with the source code, 8 added a message that points to the source code. Removed some unnecessary repetition of what 9 is already in the file. 10 1 11 2013-08-15 Andy Estes <aestes@apple.com> 2 12 -
trunk/Tools/Scripts/extract-localizable-strings
r153980 r154117 1 1 #!/usr/bin/perl -w 2 2 3 # Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.3 # Copyright (C) 2006, 2007, 2009, 2010, 2013 Apple Inc. All rights reserved. 4 4 # 5 5 # Redistribution and use in source and binary forms, with or without … … 410 410 my $string = delete $stringByKey{$1}; 411 411 if (!defined $string) { 412 print "$fileToUpdate:$.: unused key \"$1\" (preceding comment: /* $lastComment */)\n";412 print "$fileToUpdate:$.: unused key \"$1\"\n"; 413 413 $sawError = 1; 414 414 } else { 415 415 if (!($string eq $2)) { 416 print "$fileToUpdate:$.: unexpected value \"$2\" for key \"$1\" (expected \"$string\")\n"; 416 print "$fileToUpdate:$.: unexpected value \"$2\" for key \"$1\"\n"; 417 print "$fileByKey{$1}:$lineByKey{$1}: expected value \"$string\" defined here\n"; 417 418 $sawError = 1; 418 419 } 419 420 if (!($lastComment eq $commentByKey{$1})) { 420 print "$fileToUpdate:$.: unexpected comment /* $lastComment */ for key \"$1\" (expected /* $commentByKey{$1} */)\n"; 421 print "$fileToUpdate:$.: unexpected comment /* $lastComment */ for key \"$1\"\n"; 422 print "$fileByKey{$1}:$lineByKey{$1}: expected comment /* $commentByKey{$1} */ defined here\n"; 421 423 $sawError = 1; 422 424 }
Note: See TracChangeset
for help on using the changeset viewer.