From 31be1e68a243ee4a39d5fc291a033326404aaab1 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Thu, 1 Jan 2009 13:16:42 +0000 Subject: [PATCH] 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. --- aegisub/version.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aegisub/version.cpp b/aegisub/version.cpp index ce3db13df..c31a2bb18 100644 --- a/aegisub/version.cpp +++ b/aegisub/version.cpp @@ -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)