summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2019-02-04 18:41:05 +0100
committerJonas Ådahl <jadahl@gmail.com>2019-02-04 18:41:05 +0100
commit20c5e2525e169f5199371a2ee554ee73ad85530d (patch)
tree0986ef299e488b8c39fb2cfd5da1074e6cd1f289
parent325fec31da120c9afd4402190d940e135867b626 (diff)
downloadmutter-20c5e2525e169f5199371a2ee554ee73ad85530d.tar.gz
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_().
-rw-r--r--src/backends/meta-monitor-manager.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c
index 318bdd36b..e43933f95 100644
--- a/src/backends/meta-monitor-manager.c
+++ b/src/backends/meta-monitor-manager.c
@@ -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
{