MGR: Fix the string construction of the 'work fetch deferral' stuff to be more localization friendly.

This commit is contained in:
Rom Walton 2015-07-23 18:27:09 -04:00
parent b109f920ef
commit 9fb1a342c1
1 changed files with 7 additions and 2 deletions

View File

@ -205,8 +205,13 @@ void CDlgItemProperties::show_rsc(wxString rsc_name, RSC_DESC rsc_desc) {
double x = rsc_desc.backoff_time - dtime();
if (x<0) x = 0;
if (x) {
addProperty(rsc_name + _(" work fetch deferred for"), FormatTime(x));
addProperty(rsc_name + _(" work fetch deferral interval"), FormatTime(rsc_desc.backoff_interval));
wxString tmp;
tmp.Format(_("%s work fetch deferred for"), rsc_name.c_str());
addProperty(tmp, FormatTime(x));
tmp.Format(_("%s work fetch deferral interval"), rsc_name.c_str());
addProperty(tmp, FormatTime(rsc_desc.backoff_interval));
}
}