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:
@@ -3520,7 +3520,7 @@ public:
|
||||
|
||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
||||
|
||||
virtual wxString GetPropertiesMenuLabel() const { return _("&Box"); }
|
||||
virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Box"); }
|
||||
|
||||
// Accessors
|
||||
|
||||
@@ -4645,7 +4645,7 @@ public:
|
||||
|
||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
||||
|
||||
virtual wxString GetPropertiesMenuLabel() const { return _("&Picture"); }
|
||||
virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Picture"); }
|
||||
|
||||
virtual bool UsesParagraphAttributes() const { return false; }
|
||||
|
||||
@@ -5575,7 +5575,7 @@ public:
|
||||
|
||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
||||
|
||||
virtual wxString GetPropertiesMenuLabel() const { return _("&Cell"); }
|
||||
virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Cell"); }
|
||||
|
||||
// Accessors
|
||||
|
||||
@@ -5665,7 +5665,7 @@ public:
|
||||
|
||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
||||
|
||||
virtual wxString GetPropertiesMenuLabel() const { return _("&Table"); }
|
||||
virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Table"); }
|
||||
|
||||
// Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject
|
||||
// is possible. For example, containers supporting text, such as a text box object, can accept the focus,
|
||||
|
@@ -36,7 +36,7 @@ class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
|
||||
|
||||
////@begin control identifiers
|
||||
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE wxDEFAULT_DIALOG_STYLE|wxTAB_TRAVERSAL
|
||||
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_TITLE _("Object Properties")
|
||||
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_TITLE wxGetTranslation("Object Properties")
|
||||
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_IDNAME ID_RICHTEXTOBJECTPROPERTIESDIALOG
|
||||
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_SIZE wxSize(400, 300)
|
||||
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_POSITION wxDefaultPosition
|
||||
|
@@ -106,7 +106,7 @@ private:
|
||||
class WXDLLIMPEXP_RICHTEXT wxRichTextPrintout : public wxPrintout
|
||||
{
|
||||
public:
|
||||
wxRichTextPrintout(const wxString& title = _("Printout"));
|
||||
wxRichTextPrintout(const wxString& title = wxGetTranslation("Printout"));
|
||||
virtual ~wxRichTextPrintout();
|
||||
|
||||
/// The buffer to print
|
||||
@@ -160,7 +160,7 @@ private:
|
||||
class WXDLLIMPEXP_RICHTEXT wxRichTextPrinting : public wxObject
|
||||
{
|
||||
public:
|
||||
wxRichTextPrinting(const wxString& name = _("Printing"), wxWindow *parentWindow = NULL);
|
||||
wxRichTextPrinting(const wxString& name = wxGetTranslation("Printing"), wxWindow *parentWindow = NULL);
|
||||
virtual ~wxRichTextPrinting();
|
||||
|
||||
/// Preview the file or buffer
|
||||
|
@@ -44,7 +44,7 @@ class WXDLLIMPEXP_FWD_CORE wxCheckBox;
|
||||
|
||||
////@begin control identifiers
|
||||
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
|
||||
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_TITLE _("Style Organiser")
|
||||
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_TITLE wxGetTranslation("Style Organiser")
|
||||
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_IDNAME ID_RICHTEXTSTYLEORGANISERDIALOG
|
||||
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_SIZE wxSize(400, 300)
|
||||
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_POSITION wxDefaultPosition
|
||||
|
Reference in New Issue
Block a user