diff options
author | Chase Patterson <robert@rcpatterson.net> | 2017-09-15 17:36:02 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2017-09-15 19:18:29 -0400 |
commit | 18b741804c7e9d92dbe13960ac5cc89d912bb616 (patch) | |
tree | e28a19e653130165c6f96241e36741a06e33862e /src/fe-gtk/servlistgui.c | |
parent | d9351978958dcf137cdf2979d7614ac7a63da367 (diff) |
Use localized "HexChat" in window titles
Also allow rearranging of "HexChat" in window titles
Diffstat (limited to 'src/fe-gtk/servlistgui.c')
-rw-r--r-- | src/fe-gtk/servlistgui.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c index dc19ab8f..b22330ac 100644 --- a/src/fe-gtk/servlistgui.c +++ b/src/fe-gtk/servlistgui.c @@ -1707,7 +1707,7 @@ servlist_open_edit (GtkWidget *parent, ircnet *net) editwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (editwindow), 4); - g_snprintf (buf, sizeof (buf), _("Edit %s - "DISPLAY_NAME), net->name); + g_snprintf (buf, sizeof (buf), _("Edit %s - %s"), net->name, _(DISPLAY_NAME)); gtk_window_set_title (GTK_WINDOW (editwindow), buf); gtk_window_set_default_size (GTK_WINDOW (editwindow), netedit_win_width, netedit_win_height); gtk_window_set_transient_for (GTK_WINDOW (editwindow), GTK_WINDOW (parent)); @@ -1970,10 +1970,12 @@ servlist_open_networks (void) GtkTreeModel *model; GtkListStore *store; GtkCellRenderer *renderer; + char buf[128]; servlist = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (servlist), 4); - gtk_window_set_title (GTK_WINDOW (servlist), _("Network List - "DISPLAY_NAME)); + g_snprintf(buf, sizeof(buf), _("Network List - %s"), _(DISPLAY_NAME)); + gtk_window_set_title (GTK_WINDOW (servlist), buf); gtk_window_set_default_size (GTK_WINDOW (servlist), netlist_win_width, netlist_win_height); gtk_window_set_role (GTK_WINDOW (servlist), "servlist"); gtk_window_set_type_hint (GTK_WINDOW (servlist), GDK_WINDOW_TYPE_HINT_DIALOG); |