Just don't show BUILD_CREDIT if it isn't defined, and use an ugly workaround in About box (to avoid clobbering the translateable messages.)

Originally committed to SVN as r2607.
This commit is contained in:
Niels Martin Hansen 2009-01-01 13:16:42 +00:00
parent 5b17133fee
commit 31be1e68a2

View file

@ -87,7 +87,7 @@ struct VersionInfoStruct {
#ifdef BUILD_CREDIT
BuildCredit = _T_rec(BUILD_CREDIT);
#else
BuildCredit = _T("anonymous");
BuildCredit = _T("(unknown)");
#endif
if (SvnRev > 0) {
@ -110,7 +110,11 @@ struct VersionInfoStruct {
#endif
VersionStr = wxString::Format(_T("%s%s"), VersionNumber, IsRelease ? _T("") : _T(" RELEASE PREVIEW"));
#ifdef BUILD_CREDIT
LongVersionString = wxString::Format(_T("%s (%s%s, %s)"), VersionStr.c_str(), IsDebug ? _T("debug, ") : _T(""), SCMStr.c_str(), BuildCredit);
#else
LongVersionString = wxString::Format(_T("%s (%s%s)"), VersionStr.c_str(), IsDebug ? _T("debug, ") : _T(""), SCMStr.c_str());
#endif
ShortVersionString = wxString::Format(_T("%s %s%s"), VersionStr.c_str(), SCMStr.c_str(), IsDebug ? _T(" debug") : _T(""));
if (IsRelease && !IsDebug)