Made extract-localizable-strings ignore NSLocalizedFileSizeDescription
authorsullivan@apple.com <sullivan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2012 17:48:31 +0000 (17:48 +0000)
committersullivan@apple.com <sullivan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2012 17:48:31 +0000 (17:48 +0000)
Reviewed by Eric Carlson.

* Scripts/extract-localizable-strings:
Added NSLocalizedFileSizeDescription to allowed list of tokens that start
with NSLocalized. Also improved an error message to include the troublesome token.

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

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

index 12eadb359cd28b7d8d543d2d992b418170923744..530637d6f7adc32dd3532c4c9cf08144ffa89fae 100644 (file)
@@ -1,3 +1,13 @@
+2012-03-08  John Sullivan  <sullivan@apple.com>
+
+        Made extract-localizable-strings ignore NSLocalizedFileSizeDescription
+
+        Reviewed by Eric Carlson.
+
+        * Scripts/extract-localizable-strings:
+        Added NSLocalizedFileSizeDescription to allowed list of tokens that start
+        with NSLocalized. Also improved an error message to include the troublesome token.
+
 2012-03-08  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r110115.
index 3b68b4f4eb94a23a86aafefadced20c38a371338..508fd18fa881d471f0ca4c479bd9f723b045ea4d 100755 (executable)
@@ -204,8 +204,8 @@ handleString:
             
             $previousToken = $token;
 
-            if ($token =~ /^NSLocalized/ && $token !~ /NSLocalizedDescriptionKey/ && $token !~ /NSLocalizedStringFromTableInBundle/) {
-                print "$file:$.:ERROR:found a use of an NSLocalized macro; not supported\n";
+            if ($token =~ /^NSLocalized/ && $token !~ /NSLocalizedDescriptionKey/ && $token !~ /NSLocalizedStringFromTableInBundle/ && $token !~ /NSLocalizedFileSizeDescription/) {
+                print "$file:$.:ERROR:found a use of an NSLocalized macro ($token); not supported\n";
                 $nestingLevel = 0 if !defined $nestingLevel;
                 $sawError = 1;
                 $NSLocalizeCount++;