From 4226e548662339ea1ca37b45385a7cf9b237ff1e Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:07:43 +0200 Subject: 3.8 --- RealtimeSync/mainDialog.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'RealtimeSync/mainDialog.cpp') diff --git a/RealtimeSync/mainDialog.cpp b/RealtimeSync/mainDialog.cpp index 5ba378ce..a6bc7829 100644 --- a/RealtimeSync/mainDialog.cpp +++ b/RealtimeSync/mainDialog.cpp @@ -141,8 +141,8 @@ void MainDialog::OnShowHelp(wxCommandEvent& event) void MainDialog::OnMenuAbout(wxCommandEvent& event) { - //build information - wxString build = wxString(wxT("(")) + _("Build:") + wxT(" ") + __TDATE__; + //build information + wxString build = __TDATE__; #if wxUSE_UNICODE build += wxT(" - Unicode"); #else @@ -151,12 +151,15 @@ void MainDialog::OnMenuAbout(wxCommandEvent& event) //compile time info about 32/64-bit build if (Utility::is64BitBuild) - build += wxT(" x64)"); + build += wxT(" x64"); else - build += wxT(" x86)"); + build += wxT(" x86"); assert_static(Utility::is32BitBuild || Utility::is64BitBuild); - wxMessageDialog* aboutDlg = new wxMessageDialog(this, wxString(wxT("RealtimeSync")) + wxT("\n\n") + build, _("About"), wxOK); +wxString buildFormatted = _("(Build: %x)"); +buildFormatted.Replace(wxT("%x"), build); + + wxMessageDialog* aboutDlg = new wxMessageDialog(this, wxString(wxT("RealtimeSync")) + wxT("\n\n") + buildFormatted, _("About"), wxOK); aboutDlg->ShowModal(); } -- cgit