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:
Dimitri Schoolwerth
2011-04-04 22:07:42 +00:00
parent 326c0adbfc
commit 88def1632e
2 changed files with 21 additions and 0 deletions

View File

@@ -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)