[gnome-internet-radio-locator: 1/2] Fixes #8 - Avoid splitting translatable string




commit 6a15f91edafc748ffef5744c367413fad9c7e768
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Oct 3 11:57:47 2020 +0200

    Fixes #8 - Avoid splitting translatable string

 src/gnome-internet-radio-locator-gui.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-internet-radio-locator-gui.c b/src/gnome-internet-radio-locator-gui.c
index 000a610..a205970 100644
--- a/src/gnome-internet-radio-locator-gui.c
+++ b/src/gnome-internet-radio-locator-gui.c
@@ -216,8 +216,10 @@ save_cb (GtkWidget *widget, gpointer data) {
        player = gst_player_new (NULL, gst_player_g_main_context_signal_dispatcher_new(NULL));
        gnome_internet_radio_locator_player_new(GST_PLAYER(player), urientry);
        context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (statusbar), "Station Name");
-       statusmsg = g_strconcat(_("Added "), nameentry, _(" in "), locationentry, NULL);
+       /* Translators: first %s is station name and second %s is station location */
+       statusmsg = g_strdup_printf(_("Added %s in %s"), nameentry, locationentry);
        gtk_statusbar_push (GTK_STATUSBAR (statusbar), GPOINTER_TO_INT (context_id), statusmsg);
+       g_free(statusmsg);
        gst_player_stop(player);
        gst_player_play(player);
        GNOME_INTERNET_RADIO_LOCATOR_DEBUG_MSG("%s\n", nameentry);


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