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,
|
||||
|
Reference in New Issue
Block a user