- manager: fix strings in Project Properties

svn path=/trunk/boinc/; revision=16161
This commit is contained in:
David Anderson 2008-10-08 19:15:46 +00:00
parent ebe3b090e8
commit bc0cfbefb6
2 changed files with 37 additions and 24 deletions

View File

@ -8195,3 +8195,8 @@ David 8 Oct 2008
feeder.cpp feeder.cpp
tools/ tools/
upgrade upgrade
David 8 Oct 2008
- manager: fix strings in Project Properties
clientgui/DlgItemProperties.cpp

View File

@ -100,31 +100,39 @@ void CDlgItemProperties::renderInfos(PROJECT* project_in) {
wxTitle.append(wxString(projectname.c_str(),wxConvUTF8)); wxTitle.append(wxString(projectname.c_str(),wxConvUTF8));
this->SetTitle(wxTitle); this->SetTitle(wxTitle);
//layout controls //layout controls
this->addSection(_("general infos")); this->addSection(_("General"));
this->addProperty(_("master url:"),wxString(project->master_url.c_str(),wxConvUTF8)); this->addProperty(_("Master URL"),wxString(project->master_url.c_str(),wxConvUTF8));
this->addProperty(_("user name:"),wxString(project->user_name.c_str(),wxConvUTF8)); this->addProperty(_("User name"),wxString(project->user_name.c_str(),wxConvUTF8));
this->addProperty(_("team name:"),wxString(project->team_name.c_str(),wxConvUTF8)); this->addProperty(_("Team name"),wxString(project->team_name.c_str(),wxConvUTF8));
this->addProperty(_("resource share:"),wxString::Format(wxT("%0.0f"),project->resource_share)); this->addProperty(_("Resource share"),wxString::Format(wxT("%0.0f"),project->resource_share));
this->addSection(_("credit infos")); this->addProperty(_("Disk usage"),this->FormatDiskSpace(diskusage));
this->addProperty(_("user total credit:"),wxString::Format(wxT("%0.2f"),project->user_total_credit)); this->addProperty(_("Non CPU intensive"),project->non_cpu_intensive ? _("yes") : _("no"));
this->addProperty(_("user avg. credit:"),wxString::Format(wxT("%0.2f"),project->user_expavg_credit)); this->addProperty(_("Suspended via GUI"),project->suspended_via_gui ? _("yes") : _("no"));
this->addProperty(_("host total credit:"),wxString::Format(wxT("%0.2f"),project->host_total_credit)); this->addProperty(_("Don't request more work"),project->dont_request_more_work ? _("yes") : _("no"));
this->addProperty(_("host avg. credit:"),wxString::Format(wxT("%0.2f"),project->host_expavg_credit)); this->addProperty(_("Scheduler call in progress"),project->scheduler_rpc_in_progress ? _("yes") : _("no"));
this->addSection(_("disk usage infos")); this->addProperty(_("Attached via account manager"),project->attached_via_acct_mgr ? _("yes") : _("no"));
this->addProperty(_("Detach when done"),project->detach_when_done ? _("yes") : _("no"));
this->addProperty(_("Ended"),project->ended ? _("yes") : _("no"));
this->addSection(_("Credit"));
this->addProperty(_("User"),
wxString::Format(
wxT("%0.2f total, %0.2f average"),
project->user_total_credit
project->user_expavg_credit
)
);
this->addProperty(_("Host"),
wxString::Format(
wxT("%0.2f total, %0.2f average"),
project->host_total_credit
project->host_expavg_credit
)
);
this->addProperty(_("disk usage:"),this->FormatDiskSpace(diskusage)); this->addSection(_("Scheduling"));
this->addSection(_("scheduling infos")); this->addProperty(_("Short term debt"),wxString::Format(wxT("%0.2f"),project->short_term_debt));
this->addProperty(_("short term debt:"),wxString::Format(wxT("%0.2f"),project->short_term_debt)); this->addProperty(_("Long term debt"),wxString::Format(wxT("%0.2f"),project->long_term_debt));
this->addProperty(_("long term debt:"),wxString::Format(wxT("%0.2f"),project->long_term_debt)); this->addProperty(_("Duration correction factor"),wxString::Format(wxT("%0.4f"),project->duration_correction_factor));
this->addProperty(_("duration corr. factor:"),wxString::Format(wxT("%0.4f"),project->duration_correction_factor));
this->addSection(_("diverse infos"));
this->addProperty(_("non cpu intensive:"),project->non_cpu_intensive ? _("yes") : _("no"));
this->addProperty(_("suspended via gui:"),project->suspended_via_gui ? _("yes") : _("no"));
this->addProperty(_("don't request more work:"),project->dont_request_more_work ? _("yes") : _("no"));
this->addProperty(_("scheduler call in progress:"),project->scheduler_rpc_in_progress ? _("yes") : _("no"));
this->addProperty(_("attached via account mgr.:"),project->attached_via_acct_mgr ? _("yes") : _("no"));
this->addProperty(_("detach when done:"),project->detach_when_done ? _("yes") : _("no"));
this->addProperty(_("ended:"),project->ended ? _("yes") : _("no"));
this->m_gbSizer->Layout(); this->m_gbSizer->Layout();
this->m_scrolledWindow->FitInside(); this->m_scrolledWindow->FitInside();
} }