mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
325fec31da
commit
20c5e2525e
@ -990,18 +990,19 @@ make_display_name (MetaMonitorManager *manager,
|
|||||||
|
|
||||||
if (inches != NULL)
|
if (inches != NULL)
|
||||||
{
|
{
|
||||||
/* TRANSLATORS: this is a monitor vendor name, followed by a
|
/**/
|
||||||
* size in inches, like 'Dell 15"'
|
return g_strdup_printf (C_("This is a monitor vendor name, followed by a "
|
||||||
*/
|
"size in inches, like 'Dell 15\"'",
|
||||||
return g_strdup_printf (_("%s %s"), vendor_name, inches);
|
"%s %s"),
|
||||||
|
vendor_name, inches);
|
||||||
}
|
}
|
||||||
else if (product_name != NULL)
|
else if (product_name != NULL)
|
||||||
{
|
{
|
||||||
/* Translators: this is a monitor vendor name followed by
|
return g_strdup_printf (C_("This is a monitor vendor name followed by "
|
||||||
* product/model name where size in inches could not be calculated,
|
"product/model name where size in inches "
|
||||||
* e.g. Dell U2414H
|
"could not be calculated, e.g. Dell U2414H",
|
||||||
*/
|
"%s %s"),
|
||||||
return g_strdup_printf (_("%s %s"), vendor_name, product_name);
|
vendor_name, product_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user