[libgweather] yrno: stop trying to make localized attribution URLs



commit a386a3f433c826907f882c44d6c28eef1eb05de3
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Jan 20 22:30:48 2014 +0100

    yrno: stop trying to make localized attribution URLs
    
    Getting the right level of detail in GeoNames is hard, and would
    require expanding our DB with administrative divisions everywhere.
    Instead, just link to the main page and forget about it.

 libgweather/weather-yrno.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/libgweather/weather-yrno.c b/libgweather/weather-yrno.c
index 6f07e16..3b42a48 100644
--- a/libgweather/weather-yrno.c
+++ b/libgweather/weather-yrno.c
@@ -370,7 +370,6 @@ parse_forecast_xml_new (GWeatherInfo    *master_info,
     xmlDocPtr doc;
     xmlXPathContextPtr xpath_ctx;
     xmlXPathObjectPtr xpath_result;
-    char *attribution_url;
     int i;
 
     priv = master_info->priv;
@@ -443,11 +442,7 @@ parse_forecast_xml_new (GWeatherInfo    *master_info,
 
        That's very nice of them!
     */
-    attribution_url = build_yrno_url_geonames (priv->glocation, "");
-    if (attribution_url == NULL)
-       attribution_url = g_strdup ("http://yr.no/";);
-    priv->forecast_attribution = g_strdup_printf(_("Weather data from the <a href=\"%s\">Norwegian 
Meteorological Institute</a>"), attribution_url);
-    g_free (attribution_url);
+    priv->forecast_attribution = g_strdup(_("Weather data from the <a href=\"http://yr.no/\";>Norwegian 
Meteorological Institute</a>"));
 
  out:
     xmlXPathFreeContext (xpath_ctx);


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