Don't treat NSLocalizedDescriptionKey and NSLocalizedRecoverySuggestionErrorKey as...
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Aug 2013 16:39:53 +0000 (16:39 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Aug 2013 16:39:53 +0000 (16:39 +0000)
https://bugs.webkit.org/show_bug.cgi?id=120249

Reviewed by Andreas Kling.

* Scripts/extract-localizable-strings:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154547 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/extract-localizable-strings

index 3b141ed..dd1aaf7 100644 (file)
@@ -1,3 +1,12 @@
+2013-08-24  Anders Carlsson  <andersca@apple.com>
+
+        Don't treat NSLocalizedDescriptionKey and NSLocalizedRecoverySuggestionErrorKey as NSLocalized macros
+        https://bugs.webkit.org/show_bug.cgi?id=120249
+
+        Reviewed by Andreas Kling.
+
+        * Scripts/extract-localizable-strings:
+
 2013-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Expose WebKitFrame in WebKit2GTK+ web extensions API
 2013-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Expose WebKitFrame in WebKit2GTK+ web extensions API
index c57e7bd..f9e8083 100755 (executable)
@@ -212,7 +212,7 @@ handleString:
             
             $previousToken = $token;
 
             
             $previousToken = $token;
 
-            if ($token =~ /^NSLocalized/ && $token !~ /NSLocalizedDescriptionKey/ && $token !~ /NSLocalizedStringFromTableInBundle/ && $token !~ /NSLocalizedFileSizeDescription/) {
+            if ($token =~ /^NSLocalized/ && $token !~ /NSLocalizedDescriptionKey/ && $token !~ /NSLocalizedStringFromTableInBundle/ && $token !~ /NSLocalizedFileSizeDescription/ && $token !~ /NSLocalizedDescriptionKey/ && $token !~ /NSLocalizedRecoverySuggestionErrorKey/) {
                 print "$file:$.: found a use of an NSLocalized macro ($token); not supported\n";
                 $nestingLevel = 0 if !defined $nestingLevel;
                 $sawError = 1;
                 print "$file:$.: found a use of an NSLocalized macro ($token); not supported\n";
                 $nestingLevel = 0 if !defined $nestingLevel;
                 $sawError = 1;