From e81f7090f474e18c59505acf9117b517598e0e98 Mon Sep 17 00:00:00 2001 From: Erick Perez Castellanos Date: Tue, 20 Oct 2015 09:34:50 -0500 Subject: [PATCH] date-selector: use glib string translations Bug: https://bugzilla.gnome.org/show_bug.cgi?id=756412 --- src/gcal-date-selector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gcal-date-selector.c b/src/gcal-date-selector.c index a95557e0..f493c390 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