diff --git a/src/common/hyperlnkcmn.cpp b/src/common/hyperlnkcmn.cpp index aacbec2149..ff83c4bdc4 100644 --- a/src/common/hyperlnkcmn.cpp +++ b/src/common/hyperlnkcmn.cpp @@ -127,13 +127,13 @@ wxHyperlinkCtrlBase::CheckParams(const wxString& label, void wxHyperlinkCtrlBase::SendEvent() { - wxString url = GetURL(); + const wxString& url = GetURL(); wxHyperlinkEvent linkEvent(this, GetId(), url); if (!GetEventHandler()->ProcessEvent(linkEvent)) // was the event skipped ? { if (!wxLaunchDefaultBrowser(url)) { - wxLogWarning(wxT("Could not launch the default browser with url '%s' !"), url.c_str()); + wxLogWarning(_("Failed to open URL \"%s\" in the default browser"), url); } } }