[epiphany/gnome-3-26] sync-utils: Make default device name translatable



commit 172de745d6dd9cfe81e48d0cd76cc6c30a85a0ae
Author: Gabriel Ivascu <gabrielivascu gnome org>
Date:   Tue Nov 28 23:38:45 2017 +0200

    sync-utils: Make default device name translatable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790905

 lib/ephy-sync-utils.c |    5 ++++-
 po/POTFILES.in        |    1 +
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-sync-utils.c b/lib/ephy-sync-utils.c
index 49c596c..b1e37a3 100644
--- a/lib/ephy-sync-utils.c
+++ b/lib/ephy-sync-utils.c
@@ -23,6 +23,7 @@
 
 #include "ephy-settings.h"
 
+#include <glib/gi18n.h>
 #include <inttypes.h>
 #include <json-glib/json-glib.h>
 #include <libsoup/soup.h>
@@ -320,7 +321,9 @@ ephy_sync_utils_get_device_name (void)
     return name;
 
   g_free (name);
-  name = g_strdup_printf ("%s’s GNOME Web on %s", g_get_user_name (), g_get_host_name ());
+  /* Translators: First %s is the name of the user currently logged in on the
+   * machine. The second %s is the machine's name. */
+  name = g_strdup_printf (_("%s’s GNOME Web on %s"), g_get_user_name (), g_get_host_name ());
   g_settings_set_string (EPHY_SETTINGS_SYNC, EPHY_PREFS_SYNC_DEVICE_NAME, name);
 
   return name;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 8ee9cd8..b5e0f19 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -17,6 +17,7 @@ lib/ephy-gui.c
 lib/ephy-langs.c
 lib/ephy-search-engine-manager.h
 lib/ephy-string.c
+lib/ephy-sync-utils.c
 lib/ephy-time-helpers.c
 lib/ephy-zoom.h
 lib/history/ephy-history-service-hosts-table.c


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