Compilation fixes for wxUSE_LOCALE and wxUSE_XLOCALE set to 0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user