summaryrefslogtreecommitdiffhomepage
path: root/mixgtk
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2002-04-10 23:39:40 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2002-04-10 23:39:40 +0000
commitabe307380dc6661d85d72335416392c11ee92d4c (patch)
treec9a7b03d60583bb54a6ab73a7df008ee7ec59d66 /mixgtk
parentf90723b977647e04629412a46bf41e98040eb235 (diff)
downloadmdk-abe307380dc6661d85d72335416392c11ee92d4c.tar.gz
mdk-abe307380dc6661d85d72335416392c11ee92d4c.tar.bz2
_() i18n macro added to all strings missing it
Diffstat (limited to 'mixgtk')
-rw-r--r--mixgtk/gmixvm.c4
-rw-r--r--mixgtk/mixgtk.c14
-rw-r--r--mixgtk/mixgtk_device.c4
-rw-r--r--mixgtk/mixgtk_gen_handlers.c10
-rw-r--r--mixgtk/mixgtk_mixal.c4
-rw-r--r--mixgtk/mixgtk_mixvm.c13
6 files changed, 25 insertions, 24 deletions
diff --git a/mixgtk/gmixvm.c b/mixgtk/gmixvm.c
index 75b2f88..382601b 100644
--- a/mixgtk/gmixvm.c
+++ b/mixgtk/gmixvm.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- gmixvm.c :
* Main function of the mix gtk front-end
* ------------------------------------------------------------------
- * $Id: gmixvm.c,v 1.4 2002/03/29 16:30:49 jao Exp $
+ * $Id: gmixvm.c,v 1.5 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
*
@@ -94,7 +94,7 @@ main(int argc, char *argv[])
switch (c)
{
case VER_OPT:
- mix_print_license ("gmixvm, GTK MIX virtual machine");
+ mix_print_license (_("gmixvm, GTK MIX virtual machine"));
return EXIT_SUCCESS;
case NOINIT_OPT:
initfile_ = FALSE;
diff --git a/mixgtk/mixgtk.c b/mixgtk/mixgtk.c
index ee1c213..7cad87a 100644
--- a/mixgtk/mixgtk.c
+++ b/mixgtk/mixgtk.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mixgtk.c :
* Main functions of the mix gtk front-end
* ------------------------------------------------------------------
- * $Id: mixgtk.c,v 1.14 2002/03/29 16:31:46 jao Exp $
+ * $Id: mixgtk.c,v 1.15 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
*
@@ -46,7 +46,7 @@ mixgtk_restart (void)
if (!mixgtk_widget_factory_init ())
{
- g_error ("Unable to initialise application: missing glade file");
+ g_error (_("Unable to initialise application: missing glade file"));
return FALSE;
}
@@ -54,7 +54,7 @@ mixgtk_restart (void)
if (!mixgtk_cmd_dispatcher_init (MIXGTK_MAIN))
{
- g_error ("Unable to initialise application (command dispatcher)\n");
+ g_error (_("Unable to initialise application (command dispatcher)\n"));
return FALSE;
}
@@ -62,13 +62,13 @@ mixgtk_restart (void)
if (!mixgtk_mixvm_init (vm, MIXGTK_MIXVM_DIALOG))
{
- g_error ("Unable to initialise application (mixvm widgets)\n");
+ g_error (_("Unable to initialise application (mixvm widgets)\n"));
return FALSE;
}
if (!mixgtk_mixal_init (vm, MIXGTK_MIXAL_DIALOG))
{
- g_error ("Unable to initialise application (mixal widgets)\n");
+ g_error (_("Unable to initialise application (mixal widgets)\n"));
return FALSE;
}
@@ -77,13 +77,13 @@ mixgtk_restart (void)
(MIXGTK_DEVICES_DIALOG, MIXGTK_WIDGET_DEVICE)),
vm))
{
- g_error ("Unable to initialise application (devices)\n");
+ g_error (_("Unable to initialise application (devices)\n"));
return FALSE;
}
if (!mixgtk_wm_init ())
{
- g_error ("Unable to initialise application (visibility)\n");
+ g_error (_("Unable to initialise application (visibility)\n"));
return FALSE;
}
diff --git a/mixgtk/mixgtk_device.c b/mixgtk/mixgtk_device.c
index b3cf0c8..3c55021 100644
--- a/mixgtk/mixgtk_device.c
+++ b/mixgtk/mixgtk_device.c
@@ -1,7 +1,7 @@
/* -*-c-*- ---------------- mixgtk_device.c :
* actual types for mixgtk devices
* ------------------------------------------------------------------
- * $Id: mixgtk_device.c,v 1.18 2002/04/09 23:28:19 jao Exp $
+ * $Id: mixgtk_device.c,v 1.19 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
*
@@ -551,7 +551,7 @@ devdir_callback (const gchar *file)
void
on_devdir_browse_clicked ()
{
- mixgtk_get_file (devdir_callback, "Devices dir", mix_device_get_dir ());
+ mixgtk_get_file (devdir_callback, _("Devices dir"), mix_device_get_dir ());
}
void
diff --git a/mixgtk/mixgtk_gen_handlers.c b/mixgtk/mixgtk_gen_handlers.c
index 0d3daa3..656286b 100644
--- a/mixgtk/mixgtk_gen_handlers.c
+++ b/mixgtk/mixgtk_gen_handlers.c
@@ -1,9 +1,9 @@
/* -*-c-*- -------------- mixgtk_gen_handlers.c :
* Implementation of the functions declared in mixgtk_gen_handlers.h
* ------------------------------------------------------------------
- * Last change: Time-stamp: "2001-04-29 12:32:47 jao"
+ * $Id: mixgtk_gen_handlers.c,v 1.8 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
- * Copyright (C) 2001 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2002 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -100,7 +100,7 @@ static void open_cb_ (const gchar *file)
void
on_file_open_activate (GtkWidget *w, gpointer data)
{
- mixgtk_get_file (open_cb_, "Load MIX program...", "*.mix");
+ mixgtk_get_file (open_cb_, _("Load MIX program..."), "*.mix");
}
/* edit mixal source */
@@ -112,7 +112,7 @@ static void edit_cb_ (const gchar *file)
void
on_file_edit_activate (GtkWidget *w, gpointer data)
{
- mixgtk_get_file (edit_cb_, "Edit MIXAL source file...",
+ mixgtk_get_file (edit_cb_, _("Edit MIXAL source file..."),
mixgtk_cmd_dispatcher_get_src_path ());
}
@@ -125,7 +125,7 @@ static void compile_cb_ (const gchar *file)
void
on_file_compile_activate (GtkWidget *w, gpointer data)
{
- mixgtk_get_file (compile_cb_, "Compile MIXAL source file...",
+ mixgtk_get_file (compile_cb_, _("Compile MIXAL source file..."),
mixgtk_cmd_dispatcher_get_src_path ());
}
diff --git a/mixgtk/mixgtk_mixal.c b/mixgtk/mixgtk_mixal.c
index 42a11ce..dc0f6d5 100644
--- a/mixgtk/mixgtk_mixal.c
+++ b/mixgtk/mixgtk_mixal.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mixgtk_mixal.c :
* Implementation of the functions declared in mixgtk_mixal.h
* ------------------------------------------------------------------
- * $Id: mixgtk_mixal.c,v 1.15 2002/04/09 23:55:20 jao Exp $
+ * $Id: mixgtk_mixal.c,v 1.16 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
*
@@ -103,7 +103,7 @@ parse_color_ (const gchar *str)
static GdkColor color;
if (sscanf (str, "%hd%hd%hd", &(color.red), &(color.green), &(color.blue)) < 3)
{
- g_warning ("Wrong color spec: %s\n", str);
+ g_warning (_("Wrong color spec: %s\n"), str);
return NULL;
}
diff --git a/mixgtk/mixgtk_mixvm.c b/mixgtk/mixgtk_mixvm.c
index 637ee31..d7f48c8 100644
--- a/mixgtk/mixgtk_mixvm.c
+++ b/mixgtk/mixgtk_mixvm.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mixgtk_mixvm.c :
* Implementation of the functions declared in mixgtk_mixvm.h
* ------------------------------------------------------------------
- * $Id: mixgtk_mixvm.c,v 1.9 2002/04/09 23:55:20 jao Exp $
+ * $Id: mixgtk_mixvm.c,v 1.10 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
*
@@ -361,18 +361,19 @@ on_register_click (GtkWidget *w, GdkEvent *e, gpointer data)
gint k;
if (w == GTK_WIDGET (reg_entries_[0]))
- mixgtk_input_word ("Register A", mix_vm_get_rA (vm_),
+ mixgtk_input_word (_("Register A"), mix_vm_get_rA (vm_),
register_AX_, GINT_TO_POINTER (0));
else if (w == GTK_WIDGET (reg_entries_[1]))
- mixgtk_input_word ("Register X", mix_vm_get_rX (vm_),
+ mixgtk_input_word (_("Register X"), mix_vm_get_rX (vm_),
register_AX_, GINT_TO_POINTER(1));
else if (w == GTK_WIDGET (reg_entries_[2]))
- mixgtk_input_short ("Register J", mix_vm_get_rJ (vm_), register_j_, NULL);
+ mixgtk_input_short (_("Register J"), mix_vm_get_rJ (vm_),
+ register_j_, NULL);
else for (k = 1; k < 7; ++k)
{
if (w == GTK_WIDGET (reg_entries_[2 + k]))
{
- g_snprintf (BUFFER, SIZE, "Register I%d", k);
+ g_snprintf (BUFFER, SIZE, _("Register I%d"), k);
mixgtk_input_short (BUFFER, mix_vm_get_rI (vm_, k),
register_i_, GINT_TO_POINTER (k));
break;
@@ -395,7 +396,7 @@ on_memory_cells_select_row (GtkCList *w, gint row, gint col,
{
enum {SIZE = 30};
static gchar BUFFER[SIZE];
- g_snprintf (BUFFER, SIZE, "Memory cell no. %d", row);
+ g_snprintf (BUFFER, SIZE, _("Memory cell no. %d"), row);
mixgtk_input_word (BUFFER,
mix_vm_get_addr_contents (vm_, mix_short_new (row)),
mem_cell_, GINT_TO_POINTER (row));