X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebKitTools%2FScripts%2Fextract-localizable-strings;h=7061337fe5e6b9b480d503e148a7cfa6d28ff923;hp=f716dc8fb0cd28676e943e30ce54d7d3f64e0515;hb=1c913c6fd3dbb83846a08154f9adbad17cc3cdd7;hpb=90263cf68f0a4ad59b9a92a85f455992f07418ca diff --git a/WebKitTools/Scripts/extract-localizable-strings b/WebKitTools/Scripts/extract-localizable-strings index f716dc8fb0cd..7061337fe5e6 100755 --- a/WebKitTools/Scripts/extract-localizable-strings +++ b/WebKitTools/Scripts/extract-localizable-strings @@ -46,7 +46,7 @@ use strict; my $exceptionsFile = "English.lproj/StringsNotToBeLocalized.txt"; my $stringsFile = "English.lproj/Localizable.strings"; -my %isDebugMacro = ( ASSERT_WITH_MESSAGE => 1, ERROR => 1, NSURL_ERROR => 1, FATAL => 1, LOG => 1, dprintf => 1, NSException => 1, NSLog => 1, printf => 1 ); +my %isDebugMacro = ( ASSERT_WITH_MESSAGE => 1, LOG_ERROR => 1, ERROR => 1, NSURL_ERROR => 1, FATAL => 1, LOG => 1, dprintf => 1, NSException => 1, NSLog => 1, printf => 1 ); die "usage: extract-localizable-strings\n" if @ARGV != 0; @@ -63,7 +63,7 @@ my %usedException; if (open EXCEPTIONS, $exceptionsFile) { while () { chomp; - if (/^"([^\\"]|\\.)*"$/ or /^[-_\/\w.]+.(h|m|mm)$/ or /^[-_\/\w.]+.(h|m|mm):"([^\\"]|\\.)*"$/) { + if (/^"([^\\"]|\\.)*"$/ or /^[-_\/\w.]+.(h|m|mm|cpp)$/ or /^[-_\/\w.]+.(h|m|mm|cpp):"([^\\"]|\\.)*"$/) { if ($exception{$_}) { print "$exceptionsFile:$.:exception for $_ appears twice\n"; print "$exceptionsFile:$exception{$_}:first appearance\n"; @@ -77,12 +77,13 @@ if (open EXCEPTIONS, $exceptionsFile) { close EXCEPTIONS; } -my @files = ( split "\n", `find . -name "*.h" -o -name "*.m" -o -name "*.mm"` ); +my @files = ( split "\n", `find . -name "*.h" -o -name "*.m" -o -name "*.mm" -o -name "*.cpp"` ); for my $file (sort @files) { next if $file =~ /\/WebLocalizableStrings\.h$/; next if $file =~ /\/icu\//; + next if $file =~ /\/COM\//; $file =~ s-^./--;