diff --git a/interface/wx/webview.h b/interface/wx/webview.h index 73be3277dc..1eea09b681 100644 --- a/interface/wx/webview.h +++ b/interface/wx/webview.h @@ -478,12 +478,12 @@ public: outputs are supported on wxWEBVIEW_WEBKIT2 (GTK3). When using wxWEBVIEW_WEBKIT (OSX), there are two limits: - 1) Javascript allocations greater than 10MB. - 2) Javascript that takes longer than 10 seconds to execute. + 1) JavaScript allocations greater than 10MB. + 2) JavaScript that takes longer than 10 seconds to execute. When using wxWEBVIEW_BACKEND_IE you must wait for the current page to finish loading before calling RunScript(). - It is compulsory to have a script tag inside HTML to run Javascript, on MSW. + It is compulsory to have a script tag inside HTML to run JavaScript, on MSW. When using wxWEBVIEW_BACKEND_IE, JSON is not available in Quirks or IE6/7 standards mode, which is unfortunately the default one for the embedded browser control, see @@ -499,7 +499,7 @@ public: @endcode 2) There is an implementation of JSON.stringify on RunScript that helps to return objects. You don't need to change IE emulation level but it could not work for some cases. - @param javascript A wxString containing the Javascript. + @param javascript A wxString containing the JavaScript. @param output wxString result pointer. It can be NULL and it is new in wxWidgets 3.1.1. @return @true if there is a result, @false if there is an error. */ diff --git a/src/gtk/webview_webkit2.cpp b/src/gtk/webview_webkit2.cpp index bf0d60eaa1..ebc67fcb85 100644 --- a/src/gtk/webview_webkit2.cpp +++ b/src/gtk/webview_webkit2.cpp @@ -1141,7 +1141,7 @@ bool wxWebViewWebKit::RunScriptSync(const wxString& javascript, wxString* output if ( !js_result ) { - wxLogWarning(_("Error running Javascript: %s"), error.GetMessage()); + wxLogWarning(_("Error running JavaScript: %s"), error.GetMessage()); return false; } @@ -1159,7 +1159,7 @@ bool wxWebViewWebKit::RunScriptSync(const wxString& javascript, wxString* output if ( exception ) { wxJSStringRef ex_value(JSValueToStringCopy(context, exception, NULL)); - wxLogWarning(_("Exception running Javascript: %s"), ex_value.ToWxString()); + wxLogWarning(_("Exception running JavaScript: %s"), ex_value.ToWxString()); return false; } @@ -1184,7 +1184,7 @@ bool wxWebViewWebKit::RunScript(const wxString& javascript, wxString* output) return true; } - wxLogWarning(_("Javascript error: %s"), result); + wxLogWarning(_("JavaScript error: %s"), result); return false; } diff --git a/src/msw/webview_ie.cpp b/src/msw/webview_ie.cpp index ad4fa9b626..6f74235498 100644 --- a/src/msw/webview_ie.cpp +++ b/src/msw/webview_ie.cpp @@ -885,7 +885,7 @@ bool wxWebViewIE::RunScriptInternal(wxVariant varJavascript, wxAutomationObject* { if ( !scriptAO->Invoke("eval", DISPATCH_METHOD, *varResult, 1, &varJavascript) ) { - wxLogWarning(_("Can't run Javascript")); + wxLogWarning(_("Can't run JavaScript")); return false; } @@ -899,13 +899,13 @@ bool wxWebViewIE::RunScript(const wxString& javascript, wxString* output) if ( !document ) { - wxLogWarning(_("Can't run Javascript script without a valid HTML document")); + wxLogWarning(_("Can't run JavaScript script without a valid HTML document")); return false; } if ( FAILED(document->get_Script(&scriptDispatch)) ) { - wxLogWarning(_("Can't get the Javascript")); + wxLogWarning(_("Can't get the JavaScript")); return false; } @@ -933,7 +933,7 @@ bool wxWebViewIE::RunScript(const wxString& javascript, wxString* output) return true; } - wxLogWarning(_("Javascript error: %s"), varResult.MakeString()); + wxLogWarning(_("JavaScript error: %s"), varResult.MakeString()); return false; } diff --git a/src/osx/webview_webkit.mm b/src/osx/webview_webkit.mm index 202bb93a99..d7e7ab6a54 100644 --- a/src/osx/webview_webkit.mm +++ b/src/osx/webview_webkit.mm @@ -439,7 +439,7 @@ bool wxWebViewWebKit::RunScript(const wxString& javascript, wxString* output) else { if ( result != nil ) - wxLogWarning(_("Javascript error: %s"), wxCFStringRef::AsString(result)); + wxLogWarning(_("JavaScript error: %s"), wxCFStringRef::AsString(result)); return false; } return true;