2006-12-06 Steve Falkenburg <sfalken@apple.com>
authorsfalken <sfalken@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Dec 2006 21:49:02 +0000 (21:49 +0000)
committersfalken <sfalken@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Dec 2006 21:49:02 +0000 (21:49 +0000)
        Support C strings for localization

        * Scripts/extract-localizable-strings:

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

WebKitTools/ChangeLog
WebKitTools/Scripts/extract-localizable-strings

index ca5b2130491eddc186cf229259985bbdbc772845..eaee5aa8f8aea2ea82e9b735987a3a0eae9a8d22 100644 (file)
@@ -1,3 +1,9 @@
+2006-12-06  Steve Falkenburg  <sfalken@apple.com>
+
+        Support C strings for localization
+
+        * Scripts/extract-localizable-strings:
+
 2006-12-04  Steve Falkenburg  <sfalken@apple.com>
 
         Reviewed by Darin.
index 7061337fe5e6b9b480d503e148a7cfa6d28ff923..07cf319fafbb8363c3df8be175a3d022b6bf1c39 100755 (executable)
@@ -145,7 +145,7 @@ handleString:
                         # FIXME: Validate UTF-8 here?
                         $UIString = $string;
                         $expected = ",";
-                    } elsif ($macro eq "UI_STRING_KEY" and !defined $key) {
+                    } elsif (($macro eq "UI_STRING_KEY" or $macro eq "LPCTSTR_UI_STRING_KEY") and !defined $key) {
                         # FIXME: Validate UTF-8 here?
                         $key = $string;
                         $expected = ",";
@@ -204,7 +204,7 @@ handleString:
                     $sawError = 1;
                     $expected = "";
                 }
-                if ($token eq "UI_STRING" or $token eq "UI_STRING_KEY") {
+                if ($token eq "UI_STRING" or $token eq "UI_STRING_KEY" or $token eq "LPCTSTR_UI_STRING" or $token eq "LPCTSTR_UI_STRING_KEY") {
                     $expected = "(";
                     $macro = $token;
                     $UIString = undef;