[mutter] monitor-manager: Provide proper contexts for translators



commit 20c5e2525e169f5199371a2ee554ee73ad85530d
Author: Jonas Ådahl <jadahl gmail com>
Date:   Mon Feb 4 18:41:05 2019 +0100

    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
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]