aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/calendar-weather/calendar-weather.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-12-24 00:11:59 +0800
committerMilan Crha <mcrha@redhat.com>2009-12-24 00:11:59 +0800
commit3f36489c67887491385086180147a7e4475a349d (patch)
tree7329bf876160e9d9db57630303aa2e128708fb1c /plugins/calendar-weather/calendar-weather.c
parent6df525477e6bbee76f53a989f51f8aace6cd58cf (diff)
downloadgsoc2013-evolution-3f36489c67887491385086180147a7e4475a349d.tar
gsoc2013-evolution-3f36489c67887491385086180147a7e4475a349d.tar.gz
gsoc2013-evolution-3f36489c67887491385086180147a7e4475a349d.tar.bz2
gsoc2013-evolution-3f36489c67887491385086180147a7e4475a349d.tar.lz
gsoc2013-evolution-3f36489c67887491385086180147a7e4475a349d.tar.xz
gsoc2013-evolution-3f36489c67887491385086180147a7e4475a349d.tar.zst
gsoc2013-evolution-3f36489c67887491385086180147a7e4475a349d.zip
Bug #329693 - Add contexts to translated "None" words
Diffstat (limited to 'plugins/calendar-weather/calendar-weather.c')
-rw-r--r--plugins/calendar-weather/calendar-weather.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/calendar-weather/calendar-weather.c b/plugins/calendar-weather/calendar-weather.c
index b558f7e3d2..ad2c273baf 100644
--- a/plugins/calendar-weather/calendar-weather.c
+++ b/plugins/calendar-weather/calendar-weather.c
@@ -321,7 +321,8 @@ location_clicked (GtkButton *button, ESource *source)
label = GTK_WIDGET (gtk_bin_get_child (GTK_BIN (button)));
text = gtk_label_get_text (GTK_LABEL (label));
- if (strcmp ((const gchar *)text, _("None")) == 0)
+ /* Translators: "None" location for a weather calendar */
+ if (strcmp ((const gchar *)text, C_("weather-cal-location", "None")) == 0)
e_source_set_relative_uri (source, "");
}
@@ -374,8 +375,9 @@ e_calendar_weather_location (EPlugin *epl, EConfigHookItemFactoryData *data)
gchar *location = build_location_path (iter);
text = gtk_label_new (location);
g_free (location);
- } else
- text = gtk_label_new (_("None"));
+ } else {
+ text = gtk_label_new (C_("weather-cal-location", "None"));
+ }
gtk_widget_show (text);
gtk_label_set_ellipsize (GTK_LABEL (text), PANGO_ELLIPSIZE_START);
gtk_container_add (GTK_CONTAINER (button), text);