From 61a94f3f14d5622e904151250f4b0dc10840be49 Mon Sep 17 00:00:00 2001 From: Sergey Alyoshin Date: Wed, 1 Aug 2012 14:28:43 +0400 Subject: [PATCH] Add strings to translation --- src/hid/gtk/gui-top-window.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/hid/gtk/gui-top-window.c b/src/hid/gtk/gui-top-window.c index 786024e..53ee546 100644 --- a/src/hid/gtk/gui-top-window.c +++ b/src/hid/gtk/gui-top-window.c @@ -265,8 +265,8 @@ show_file_modified_externally_prompt (void) file_path_utf8 = g_filename_to_utf8 (PCB->Filename, -1, NULL, NULL, NULL); - secondary_text = PCB->Changed ? "Do you want to drop your changes and reload the file?" : - "Do you want to reload the file?"; + secondary_text = PCB->Changed ? _("Do you want to drop your changes and reload the file?") : + _("Do you want to reload the file?"); markup = g_markup_printf_escaped (_("The file %s has changed on disk\n\n%s"), file_path_utf8, secondary_text); @@ -1580,7 +1580,7 @@ ghid_listener_cb (GIOChannel *source, if (condition & G_IO_HUP) { - gui->log ("Read end of pipe died!\n"); + gui->log (_("Read end of pipe died!\n")); return FALSE; } @@ -1595,30 +1595,30 @@ ghid_listener_cb (GIOChannel *source, break; case G_IO_STATUS_ERROR: - gui->log ("ERROR status from g_io_channel_read_line\n"); + gui->log (_("ERROR status from g_io_channel_read_line\n")); return FALSE; break; case G_IO_STATUS_EOF: - gui->log ("Input pipe returned EOF. The --listen option is \n" - "probably not running anymore in this session.\n"); + gui->log (_("Input pipe returned EOF. The --listen option is \n" + "probably not running anymore in this session.\n")); return FALSE; break; case G_IO_STATUS_AGAIN: - gui->log ("AGAIN status from g_io_channel_read_line\n"); + gui->log (_("AGAIN status from g_io_channel_read_line\n")); return FALSE; break; default: - fprintf (stderr, "ERROR: unhandled case in ghid_listener_cb\n"); + fprintf (stderr, _("ERROR: unhandled case in ghid_listener_cb\n")); return FALSE; break; } } else - fprintf (stderr, "Unknown condition in ghid_listener_cb\n"); + fprintf (stderr, _("Unknown condition in ghid_listener_cb\n")); return TRUE; } @@ -2030,8 +2030,8 @@ ghid_check_special_key (const char *accel, GtkAction *action, { if (ind >= N_HOTKEY_ACTIONS) { - fprintf (stderr, "ERROR: overflow of the ghid_hotkey_actions array. Index = %d\n" - "Please report this.\n", ind); + fprintf (stderr, _("ERROR: overflow of the ghid_hotkey_actions array. Index = %d\n" + "Please report this.\n"), ind); exit (1); } @@ -2096,13 +2096,13 @@ ghid_load_menus (void) filename = get_menu_filename (); if (filename) { - Message ("Loading menus from %s\n", filename); + Message (_("Loading menus from %s\n"), filename); r = resource_parse (filename, 0); } if (!r) { - Message ("Using default menus\n"); + Message (_("Using default menus\n")); r = bir; } free (filename); -- 1.7.10