Commit b0a37b0b authored by bweinstein@apple.com's avatar bweinstein@apple.com

WebKit2: Implement WebInspector::localizedStringsURL on Windows

https://bugs.webkit.org/show_bug.cgi?id=50896
        
Reviewed by Tim Hatcher.

Find the localized strings file using CFBundleCopyResourceURL.

* WebProcess/WebPage/win/WebInspectorWin.cpp:
(WebKit::WebInspector::localizedStringsURL):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 42b320f2
2010-12-12 Brian Weinstein <bweinstein@apple.com>
Reviewed by Tim Hatcher.
WebKit2: Implement WebInspector::localizedStringsURL on Windows
https://bugs.webkit.org/show_bug.cgi?id=50896
Find the localized strings file using CFBundleCopyResourceURL.
* WebProcess/WebPage/win/WebInspectorWin.cpp:
(WebKit::WebInspector::localizedStringsURL):
2010-12-12 Sam Weinig <sam@webkit.org>
Reviewed by Anders Carlsson.
......@@ -27,17 +27,18 @@
#if ENABLE(INSPECTOR)
#include <wtf/RetainPtr.h>
#include <wtf/text/WTFString.h>
#define DISABLE_NOT_IMPLEMENTED_WARNINGS 1
#include "NotImplemented.h"
namespace WebKit {
String WebInspector::localizedStringsURL() const
{
notImplemented();
return String();
RetainPtr<CFURLRef> localizedStringsURLRef(AdoptCF, CFBundleCopyResourceURL(CFBundleGetBundleWithIdentifier(CFSTR("com.apple.WebKit")), CFSTR("localizedStrings"), CFSTR("js"), 0));
if (!localizedStringsURLRef)
return String();
return String(CFURLGetString(localizedStringsURLRef.get()));
}
} // namespace WebKit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment