Make WebLocalizableStrings work a little more like the Mac version
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Dec 2007 17:15:33 +0000 (17:15 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Dec 2007 17:15:33 +0000 (17:15 +0000)
commit594a5b4cba2467aecbd6f47d23036ce9574dccba
tree1c6635964de450a8cd3e410a4481f57c81c5b184
parent6a027199f116927c30137b53ac337bac0bbc1b11
     Make WebLocalizableStrings work a little more like the Mac version

         Reviewed by Steve.

         * WebKit.vcproj/WebKit.def: Deprecated SetWebLocalizedStringMainBundle.
         * WebKit.vcproj/WebKit_debug.def: Ditto.
         * WebLocalizableStrings.cpp:
         (createWebKitBundle): Changed to only create the bundle once.
         (cfBundleForStringsBundle): Added. Code was factored out of
         copyLocalizedStringFromBundle. We now use the CFBundleGetMainBundle to
         get the main bundle and WebLocalizableStringsBundle's identifier to
         fetch the framework's bundle.
         (copyLocalizedStringFromBundle): Changed to call
         cfBundleForStringsBundle.
         (cacheString): Cleaned up logic a bit with an early return.
         (SetWebLocalizedStringMainBundle): Moved down with the other
         deprecated functions and made into a no-op.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/win/ChangeLog
WebKit/win/WebKit.vcproj/WebKit.def
WebKit/win/WebKit.vcproj/WebKit_debug.def
WebKit/win/WebLocalizableStrings.cpp