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
// returns the size in a human readable form
wxString
// returns the size in a human readable form
wxString
- GetHumanReadableSize(const wxString& nullsize = _("Not available"),
+ GetHumanReadableSize(const wxString& nullsize = wxGetTranslation("Not available"),
int precision = 1,
wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const;
static wxString
GetHumanReadableSize(const wxULongLong& sz,
int precision = 1,
wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const;
static wxString
GetHumanReadableSize(const wxULongLong& sz,
- const wxString& nullsize = _("Not available"),
+ const wxString& nullsize = wxGetTranslation("Not available"),
int precision = 1,
wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL);
#endif // wxUSE_LONGLONG
int precision = 1,
wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL);
#endif // wxUSE_LONGLONG
// needs non-default mode.
if ( hr != RPC_E_CHANGED_MODE && FAILED(hr) )
{
// needs non-default mode.
if ( hr != RPC_E_CHANGED_MODE && FAILED(hr) )
{
- wxLogError(_("Cannot initialize OLE"));
+ wxLogError(wxGetTranslation("Cannot initialize OLE"));
class WXDLLIMPEXP_CORE wxPrintout: public wxObject
{
public:
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);
virtual ~wxPrintout();
virtual bool OnBeginDocument(int startPage, int endPage);
public:
wxPreviewFrame(wxPrintPreviewBase *preview,
wxWindow *parent,
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,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT,
const wxString& caption,
long style )
: wxGenericMessageDialog( parent, message, caption, style ),
const wxString& caption,
long style )
: wxGenericMessageDialog( parent, message, caption, style ),
- m_detailsExpanderCollapsedLabel( _("&See details") ),
- m_detailsExpanderExpandedLabel( _("&Hide details") ),
+ m_detailsExpanderCollapsedLabel( wxGetTranslation("&See details") ),
+ m_detailsExpanderExpandedLabel( wxGetTranslation("&Hide details") ),
m_checkBoxValue( false )
{ }
m_checkBoxValue( false )
{ }
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
- virtual wxString GetPropertiesMenuLabel() const { return _("&Box"); }
+ virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Box"); }
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
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; }
virtual bool UsesParagraphAttributes() const { return false; }
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
- virtual wxString GetPropertiesMenuLabel() const { return _("&Cell"); }
+ virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Cell"); }
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
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,
// 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,
////@begin control identifiers
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE wxDEFAULT_DIALOG_STYLE|wxTAB_TRAVERSAL
////@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
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_IDNAME ID_RICHTEXTOBJECTPROPERTIESDIALOG
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_SIZE wxSize(400, 300)
#define SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_POSITION wxDefaultPosition
class WXDLLIMPEXP_RICHTEXT wxRichTextPrintout : public wxPrintout
{
public:
class WXDLLIMPEXP_RICHTEXT wxRichTextPrintout : public wxPrintout
{
public:
- wxRichTextPrintout(const wxString& title = _("Printout"));
+ wxRichTextPrintout(const wxString& title = wxGetTranslation("Printout"));
virtual ~wxRichTextPrintout();
/// The buffer to print
virtual ~wxRichTextPrintout();
/// The buffer to print
class WXDLLIMPEXP_RICHTEXT wxRichTextPrinting : public wxObject
{
public:
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
virtual ~wxRichTextPrinting();
/// Preview the file or buffer
////@begin control identifiers
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
////@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
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_IDNAME ID_RICHTEXTSTYLEORGANISERDIALOG
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_SIZE wxSize(400, 300)
#define SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_POSITION wxDefaultPosition
{
if ( pipe(m_fds) == -1 )
{
{
if ( pipe(m_fds) == -1 )
{
- wxLogSysError(_("Pipe creation failed"));
+ wxLogSysError(wxGetTranslation("Pipe creation failed"));
if ( m_setter )
m_setter->Set( object, value );
else
if ( m_setter )
m_setter->Set( object, value );
else
- wxLogError( _("SetProperty called w/o valid setter") );
+ wxLogError( wxGetTranslation("SetProperty called w/o valid setter") );
}
// Getting a simple property (non-collection)
}
// Getting a simple property (non-collection)
if ( m_getter )
m_getter->Get( object, result );
else
if ( m_getter )
m_getter->Get( object, result );
else
- wxLogError( _("GetProperty called w/o valid getter") );
+ wxLogError( wxGetTranslation("GetProperty called w/o valid getter") );
}
// Adding an element to a collection property
}
// Adding an element to a collection property
if ( m_adder )
m_adder->Add( object, value );
else
if ( m_adder )
m_adder->Add( object, value );
else
- wxLogError( _("AddToPropertyCollection called w/o valid adder") );
+ wxLogError( wxGetTranslation("AddToPropertyCollection called w/o valid adder") );
}
// Getting a collection property
}
// Getting a collection property
if ( m_collectionGetter )
m_collectionGetter->Get( obj, result);
else
if ( m_collectionGetter )
m_collectionGetter->Get( obj, result);
else
- wxLogError( _("GetPropertyCollection called w/o valid collection getter") );
+ wxLogError( wxGetTranslation("GetPropertyCollection called w/o valid collection getter") );
}
virtual bool HasSetter() const { return m_setter != NULL; }
}
virtual bool HasSetter() const { return m_setter != NULL; }
virtual void AddToPropertyCollection(wxObject *WXUNUSED(object),
const wxAny &WXUNUSED(value)) const
{
virtual void AddToPropertyCollection(wxObject *WXUNUSED(object),
const wxAny &WXUNUSED(value)) const
{
- wxLogError( _("AddToPropertyCollection called on a generic accessor") );
+ wxLogError( wxGetTranslation("AddToPropertyCollection called on a generic accessor") );
}
// Getting a collection property
virtual void GetPropertyCollection( const wxObject *WXUNUSED(obj),
wxAnyList &WXUNUSED(result)) const
{
}
// Getting a collection property
virtual void GetPropertyCollection( const wxObject *WXUNUSED(obj),
wxAnyList &WXUNUSED(result)) const
{
- wxLogError ( _("GetPropertyCollection called on a generic accessor") );
+ wxLogError ( wxGetTranslation("GetPropertyCollection called on a generic accessor") );