app: fix dashboard swap read-throughput desc.; add translator comment

This commit is contained in:
Ell 2018-08-26 15:11:04 -04:00
parent f0cb8a6f6f
commit d210199da5
1 changed files with 5 additions and 1 deletions

View File

@ -532,7 +532,7 @@ static const VariableInfo variables[] =
[VARIABLE_SWAP_READ_THROUGHPUT] = [VARIABLE_SWAP_READ_THROUGHPUT] =
{ .name = "swap-read-throughput", { .name = "swap-read-throughput",
.title = NC_("dashboard-variable", "Read throughput"), .title = NC_("dashboard-variable", "Read throughput"),
.description = N_("The rate at which data is written to the swap"), .description = N_("The rate at which data is read from the swap"),
.type = VARIABLE_TYPE_RATE_OF_CHANGE, .type = VARIABLE_TYPE_RATE_OF_CHANGE,
.color = {0.2, 0.4, 1.0, 1.0}, .color = {0.2, 0.4, 1.0, 1.0},
.sample_func = gimp_dashboard_sample_variable_rate_of_change, .sample_func = gimp_dashboard_sample_variable_rate_of_change,
@ -3100,6 +3100,10 @@ gimp_dashboard_field_to_string (GimpDashboard *dashboard,
break; break;
case VARIABLE_TYPE_RATE_OF_CHANGE: case VARIABLE_TYPE_RATE_OF_CHANGE:
/* Translators: This string reports the rate of change of a measured
* value. The "%g" is replaced by a certain quantity, and the "/s"
* is an abbreviation for "per second".
*/
str = g_strdup_printf (_("%g/s"), str = g_strdup_printf (_("%g/s"),
variable_data->value.rate_of_change); variable_data->value.rate_of_change);
static_str = FALSE; static_str = FALSE;