[libgweather/benzea/wip-variant-backend] Fix translation of name



commit 252cb6154a821e2c8ea58cdac71852d03173bded
Author: Benjamin Berg <bberg redhat com>
Date:   Sun Apr 26 17:52:26 2020 +0200

    Fix translation of name

 libgweather/gweather-location.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 4f03e7d..f35e236 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -504,7 +504,7 @@ gweather_location_get_name (GWeatherLocation *loc)
        const char *english_name;
        const char *msgctxt;
        english_name = EMPTY_TO_NULL (db_i18n_get_str (db_location_get_name (loc->ref)));
-       msgctxt = EMPTY_TO_NULL (db_i18n_get_msgctxt (db_location_get_name (loc->ref)));
+       msgctxt = EMPTY_TO_NULL (db_i18n_get_msgctxt (db_location_get_msgctxt (loc->ref)));
 
        if (msgctxt) {
            loc->_local_name = g_strdup (g_dpgettext2 ("libgweather-locations",


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