[gnome-calendar/gnome-3-18] date-selector: use glib string translations



commit 088cfe6907abaebf4d6373839ceeb28f23823948
Author: Erick Perez Castellanos <erick red gmail com>
Date:   Tue Oct 20 09:34:50 2015 -0500

    date-selector: use glib string translations
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=756412

 src/gcal-date-selector.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-date-selector.c b/src/gcal-date-selector.c
index a95557e..f493c39 100644
--- a/src/gcal-date-selector.c
+++ b/src/gcal-date-selector.c
@@ -47,7 +47,7 @@ struct _GcalDateSelectorPrivate
   gint         year;
 
   /* misc */
-  gchar       *mask;
+  const gchar *mask;
 
   /* index in the mask starting by 0 */
   guint        day_pos;
@@ -236,7 +236,7 @@ gcal_date_selector_init (GcalDateSelector *self)
   /* This string represents day/month/year order for each of the different
    * languages. It could possibly be default value, %m/%d/%y placing the month
    * before, or any ordering according to the translator's environment. */
-  priv->mask = _("%m/%d/%y");
+  priv->mask = g_dpgettext2 ("glib20", "GDateTime", "%m/%d/%y");
 
   /**
    * Translators: Select the day, month and year indexes. This will


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