diff options
author | Piotr Drąg <piotrdrag@gmail.com> | 2017-08-05 21:17:21 +0200 |
---|---|---|
committer | Piotr Drąg <piotrdrag@gmail.com> | 2018-06-05 18:23:09 +0200 |
commit | d3cab26bc53fc9d26341dca7b0ad787fe9348539 (patch) | |
tree | d643c7f299232d2bdcfc76626f6cd5a86f01e06c | |
parent | f17aee7f8577c6239f079520fc8b5021649e0554 (diff) | |
download | libgweather-wip/piotrdrag/concatenated-strings.tar.gz |
location-entry: Allow localizing concatenated stringswip/piotrdrag/concatenated-strings
Based on a patch by Khaled Hosny <khaledhosny@eglug.org>.
https://bugzilla.gnome.org/show_bug.cgi?id=712684
-rw-r--r-- | libgweather/gweather-location-entry.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libgweather/gweather-location-entry.c b/libgweather/gweather-location-entry.c index 22a34cd..f6cf189 100644 --- a/libgweather/gweather-location-entry.c +++ b/libgweather/gweather-location-entry.c @@ -529,7 +529,11 @@ fill_location_entry_model (GtkTreeStore *store, GWeatherLocation *loc, case GWEATHER_LOCATION_ADM1: /* Recurse, adding the ADM1 name to the country name */ - display_name = g_strdup_printf ("%s, %s", loc->local_name, parent_display_name); + /* Translators: this is the name of a location followed by a region, for example: + * 'London, United Kingdom' + * You shouldn't need to translate this string unless the language has a different comma. + */ + display_name = g_strdup_printf (_("%s, %s"), loc->local_name, parent_display_name); local_compare_name = g_strdup_printf ("%s, %s", loc->local_sort_name, parent_compare_local_name); english_compare_name = g_strdup_printf ("%s, %s", loc->english_sort_name, parent_compare_english_name); @@ -553,7 +557,11 @@ fill_location_entry_model (GtkTreeStore *store, GWeatherLocation *loc, */ case GWEATHER_LOCATION_WEATHER_STATION: /* <location> with no parent <city> */ - display_name = g_strdup_printf ("%s, %s", + /* Translators: this is the name of a location followed by a region, for example: + * 'London, United Kingdom' + * You shouldn't need to translate this string unless the language has a different comma. + */ + display_name = g_strdup_printf (_("%s, %s"), loc->local_name, parent_display_name); local_compare_name = g_strdup_printf ("%s, %s", loc->local_sort_name, parent_compare_local_name); |