diff options
author | Chyla Zbigniew <chyla@src.gnome.org> | 2001-08-19 15:16:30 +0800 |
---|---|---|
committer | Chyla Zbigniew <chyla@src.gnome.org> | 2001-08-19 15:16:30 +0800 |
commit | 9999ec303a7ec25e63eed04fc93d7d49e92a935c (patch) | |
tree | b1a63a068d45728a6c25b9d50fb1194f9fb0bcf9 /my-evolution/e-summary-preferences.c | |
parent | 8bd886a64a3f871e21b8ee793ebf84ddee6a253d (diff) | |
download | gsoc2013-evolution-9999ec303a7ec25e63eed04fc93d7d49e92a935c.tar.gz gsoc2013-evolution-9999ec303a7ec25e63eed04fc93d7d49e92a935c.tar.zst gsoc2013-evolution-9999ec303a7ec25e63eed04fc93d7d49e92a935c.zip |
Don't hardcode the default list of stations, let translators define it per
* e-summary-preferences.c (make_initial_weather_list),
e-summary-weather.c (e_summary_weather_init):
Don't hardcode the default list of stations, let translators define it
per locale/country.
svn path=/trunk/; revision=12216
Diffstat (limited to 'my-evolution/e-summary-preferences.c')
-rw-r--r-- | my-evolution/e-summary-preferences.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c index da4f6176f4..7fc0f07c38 100644 --- a/my-evolution/e-summary-preferences.c +++ b/my-evolution/e-summary-preferences.c @@ -58,13 +58,21 @@ make_initial_rdf_list (ESummaryPrefs *prefs) static void make_initial_weather_list (ESummaryPrefs *prefs) { - GList *stations; - - stations = g_list_prepend (NULL, g_strdup ("EGAA")); - stations = g_list_prepend (stations, g_strdup ("EGAC")); - stations = g_list_prepend (stations, g_strdup ("ENBR")); + /* translators: Put here a list of codes for locations you want to + see in My Evolution by default. You can find the list of all + stations and their codes in Evolution sources + (evolution/my-evolution/Locations) */ + char *default_stations = _("KBOS:ZSAM:EGAA"), **stations_v, **p; + GList *stations = NULL; + + stations_v = g_strsplit (default_stations, ":", 0); + g_assert (stations_v != NULL); + for (p = stations_v; *p != NULL; p++) { + stations = g_list_prepend (stations, *p); + } + g_free (stations_v); - prefs->stations = stations; + prefs->stations = g_list_reverse (stations); } /* Load the prefs off disk */ |