Use wxGetTranslation() instead of _() in the public headers.
This allows the code in them to compile even when WXINTL_NO_GETTEXT_MACRO is defined. Closes #15443. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -260,7 +260,7 @@ private:
|
||||
class WXDLLIMPEXP_CORE wxPrintout: public wxObject
|
||||
{
|
||||
public:
|
||||
wxPrintout(const wxString& title = _("Printout"));
|
||||
wxPrintout(const wxString& title = wxGetTranslation("Printout"));
|
||||
virtual ~wxPrintout();
|
||||
|
||||
virtual bool OnBeginDocument(int startPage, int endPage);
|
||||
@@ -392,7 +392,7 @@ class WXDLLIMPEXP_CORE wxPreviewFrame: public wxFrame
|
||||
public:
|
||||
wxPreviewFrame(wxPrintPreviewBase *preview,
|
||||
wxWindow *parent,
|
||||
const wxString& title = _("Print Preview"),
|
||||
const wxString& title = wxGetTranslation("Print Preview"),
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT,
|
||||
|
Reference in New Issue
Block a user