X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33d28952b29818b6931d91984a7b612a072d843d..d9b4ddf28fbf20fe28d20c72b37c85a8e2db686e:/include/wx/paper.h?ds=sidebyside diff --git a/include/wx/paper.h b/include/wx/paper.h index 1d9a7bb750..322e7e002f 100644 --- a/include/wx/paper.h +++ b/include/wx/paper.h @@ -12,13 +12,14 @@ #ifndef _WX_PAPERH__ #define _WX_PAPERH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "paper.h" #endif #include "wx/defs.h" #include "wx/event.h" #include "wx/cmndata.h" +#include "wx/intl.h" /* * Paper type: see defs.h for wxPaperSize enum. @@ -40,7 +41,7 @@ public: // platformId is a platform-specific id, such as in Windows, DMPAPER_... wxPrintPaperType(wxPaperSize paperId, int platformId, const wxString& name, int w, int h); - inline const wxString& GetName() const { return m_paperName; } + inline wxString GetName() const { return wxGetTranslation(m_paperName); } inline wxPaperSize GetId() const { return m_paperId; } inline int GetPlatformId() const { return m_platformId; }