Changeset 154117 in webkit


Ignore:
Timestamp:
Aug 15, 2013 12:19:45 PM (11 years ago)
Author:
mitz@apple.com
Message:

<https://webkit.org/b/119856> Improve extract-localizable-strings messages

Reviewed by Darin Adler.

  • Scripts/extract-localizable-strings: When the strings file disagrees with the source code,

added a message that points to the source code. Removed some unnecessary repetition of what
is already in the file.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r154115 r154117  
     12013-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
    1112013-08-15  Andy Estes  <aestes@apple.com>
    212
  • trunk/Tools/Scripts/extract-localizable-strings

    r153980 r154117  
    11#!/usr/bin/perl -w
    22
    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.
    44#
    55# Redistribution and use in source and binary forms, with or without
     
    410410                my $string = delete $stringByKey{$1};
    411411                if (!defined $string) {
    412                     print "$fileToUpdate:$.: unused key \"$1\" (preceding comment: /* $lastComment */)\n";
     412                    print "$fileToUpdate:$.: unused key \"$1\"\n";
    413413                    $sawError = 1;
    414414                } else {
    415415                    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";
    417418                        $sawError = 1;
    418419                    }
    419420                    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";
    421423                        $sawError = 1;
    422424                    }
Note: See TracChangeset for help on using the changeset viewer.