From 20c5e2525e169f5199371a2ee554ee73ad85530d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 4 Feb 2019 18:41:05 +0100 Subject: [PATCH] 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_(). --- src/backends/meta-monitor-manager.c | 19 ++++++++++--------- 1 file 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 {