X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/809d69287e6ad98e9f6d4e0c7bcde64e2bc74c6f..04fa04d8067d235ab45b5bc05b65f0679634b541:/src/generic/datectlg.cpp diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 3e6d041eb5..f45dba82ab 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -209,11 +209,15 @@ private: // functions honours wxDP_SHOWCENTURY flag. wxString GetLocaleDateFormat() const { +#if wxUSE_INTL wxString fmt = wxLocale::GetInfo(wxLOCALE_SHORT_DATE_FMT); if ( HasDPFlag(wxDP_SHOWCENTURY) ) fmt.Replace("%y", "%Y"); return fmt; +#else // !wxUSE_INTL + return wxT("x"); +#endif // wxUSE_INTL/!wxUSE_INTL } bool SetFormat(const wxString& fmt)