monitor-manager: Provide proper contexts for translators

Two strings were both "%s %s", but with different meaning. Let
translators know the difference by providing context using C_().
This commit is contained in:
Jonas Ådahl 2019-02-04 18:41:05 +01:00
parent 325fec31da
commit 20c5e2525e

View File

@ -990,18 +990,19 @@ make_display_name (MetaMonitorManager *manager,
if (inches != NULL)
{
/* TRANSLATORS: this is a monitor vendor name, followed by a
* size in inches, like 'Dell 15"'
*/
return g_strdup_printf (_("%s %s"), vendor_name, inches);
/**/
return g_strdup_printf (C_("This is a monitor vendor name, followed by a "
"size in inches, like 'Dell 15\"'",
"%s %s"),
vendor_name, inches);
}
else if (product_name != NULL)
{
/* Translators: this is a monitor vendor name followed by
* product/model name where size in inches could not be calculated,
* e.g. Dell U2414H
*/
return g_strdup_printf (_("%s %s"), vendor_name, product_name);
return g_strdup_printf (C_("This is a monitor vendor name followed by "
"product/model name where size in inches "
"could not be calculated, e.g. Dell U2414H",
"%s %s"),
vendor_name, product_name);
}
else
{