summaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/window.c b/src/window.c
index b771a8b..21c1595 100644
--- a/src/window.c
+++ b/src/window.c
@@ -28,6 +28,7 @@
#include "application.h"
#include "config/config.h"
+#include "i18n.h"
#include "notebook.h"
#include "tab-page.h"
@@ -120,14 +121,19 @@ delete_event_cb(MqWindow *window, GdkEvent G_GNUC_UNUSED *event)
}
/* Message */
- message = g_strdup_printf("You are about to close %d tabs. "
- "Are you sure you want to continue?", num_tabs);
+ /* TRANSLATORS: The number of tabs is always greater than 1. */
+ message = g_strdup_printf(PL_(
+ "You are about to close %d tabs. "
+ "Are you sure you want to continue?",
+ "You are about to close %d tabs. "
+ "Are you sure you want to continue?",
+ num_tabs), num_tabs);
message_label = gtk_label_new(message);
g_free(message);
/* Check button */
check_button = gtk_check_button_new_with_mnemonic(
- "_Warn When Closing Multiple Tabs or Windows");
+ _("_Warn When Closing Multiple Tabs or Windows"));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_button),
mq_config_get_boolean(window->config, "tabs.warn-on-close"));
/* Connect signal after setting initial toggle status, to avoid a
@@ -149,10 +155,10 @@ delete_event_cb(MqWindow *window, GdkEvent G_GNUC_UNUSED *event)
gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0);
/* Dialog */
- dialog = gtk_dialog_new_with_buttons("Confirm Close",
+ dialog = gtk_dialog_new_with_buttons(_("Confirm Close"),
GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT,
- "_Cancel", GTK_RESPONSE_CANCEL,
- "Cl_ose Tabs", GTK_RESPONSE_OK,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("Cl_ose Tabs"), GTK_RESPONSE_OK,
NULL);
gtk_container_add(
GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))),
@@ -271,14 +277,14 @@ mq_window_class_init(MqWindowClass *klass)
obj_properties[PROP_APPLICATION] = g_param_spec_pointer(
"application",
- "Application",
- "The parent MqApplication instance",
+ P_("Application"),
+ P_("The parent MqApplication instance"),
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
obj_properties[PROP_URIS] = g_param_spec_pointer(
"uris",
- "URIs",
- "A NULL-terminated string array of URIs to load",
+ P_("URIs"),
+ P_("A NULL-terminated string array of URIs to load"),
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
g_object_class_install_properties(object_class, N_PROPERTIES,