[evolution-patches] Fix the l10n problem in weather summary.



Hi, guys,

While making a output html to display and showing list of cities in
setup dialog, all city names are not l10ned.

Please help to review this patch. And this patch should be applied to
1.4 branch.

-- 
Yong Sun <Yong Sun sun com>
Sun (China) ERI
? weather-l10n.diff
Index: e-summary-weather.c
===================================================================
RCS file: /cvs/gnome/evolution/my-evolution/Attic/e-summary-weather.c,v
retrieving revision 1.49
diff -u -p -r1.49 e-summary-weather.c
--- e-summary-weather.c	16 Apr 2003 14:44:14 -0000	1.49
+++ e-summary-weather.c	10 Feb 2004 09:05:31 -0000
@@ -117,9 +117,9 @@ weather_make_html (Weather *w)
 	}
 #endif
 	if (location == NULL) {
-		g_string_append (string, w->location);
+		g_string_append (string, _(w->location));
 	} else {
-		g_string_append (string, location->name);
+		g_string_append (string, _(location->name));
 	}
 
 #if 0
@@ -260,7 +260,7 @@ message_finished (SoupMessage *msg,
 
 		w->html = g_strdup_printf ("<br><b>%s %s</b></br>",
 					   _("There was an error downloading data for"),
-					   location ? location->name : w->location);
+					   _(location ? location->name : w->location));
 
 		e_summary_draw (w->summary);
 		return;
@@ -671,7 +671,7 @@ e_summary_weather_fill_etable (ESummaryS
 
 		entry = g_new (ESummaryShownModelEntry, 1);
 		entry->location = NULL;
-		entry->name = g_strdup (region_name);
+		entry->name = g_strdup (_(region_name));
 		entry->showable = FALSE;
 		
 		region = e_summary_shown_add_node (ess, TRUE, entry, NULL, FALSE, NULL);
@@ -690,7 +690,7 @@ e_summary_weather_fill_etable (ESummaryS
 
 			entry = g_new (ESummaryShownModelEntry, 1);
 			entry->location = NULL;
-			entry->name = g_strdup (state_name);
+			entry->name = g_strdup (_(state_name));
 			entry->showable = FALSE;
 
 			state = e_summary_shown_add_node (ess, TRUE, entry, region, FALSE, NULL);
@@ -715,14 +715,14 @@ e_summary_weather_fill_etable (ESummaryS
 					
 					entry = g_new (ESummaryShownModelEntry, 1);
 					entry->location = g_strdup (locdata[1]);
-					entry->name = g_strdup (locdata[0]);
+					entry->name = g_strdup (_(locdata[0]));
 					entry->showable = TRUE;
 
 					location = e_summary_shown_add_node (ess, TRUE, entry, state, FALSE, NULL);
 					if (is_weather_shown (locdata[1]) == TRUE) {
 						entry = g_new (ESummaryShownModelEntry, 1);
 						entry->location = g_strdup (locdata[1]);
-						entry->name = g_strdup (locdata[0]);
+						entry->name = g_strdup (_(locdata[0]));
 						location = e_summary_shown_add_node (ess, FALSE, entry, NULL, FALSE, NULL);
 					}
 					g_strfreev (locdata);


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