summaryrefslogtreecommitdiffhomepage
path: root/mixlib
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
commit90cde3a89e4fdf31f78c8743c3bac5a98ef1070d (patch)
treebcaa14df457ee24d362fe3bcd08a44f8f69ef576 /mixlib
parentc70e4a1e4f25793e9bd1f36bd9e7658e3dc3e862 (diff)
downloadmdk-90cde3a89e4fdf31f78c8743c3bac5a98ef1070d.tar.gz
mdk-90cde3a89e4fdf31f78c8743c3bac5a98ef1070d.tar.bz2
_() i18n macro added to all strings missing it
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix.c8
-rw-r--r--mixlib/mix_config.c6
-rw-r--r--mixlib/mix_predicate.c16
-rw-r--r--mixlib/mix_vm_command.c4
4 files changed, 17 insertions, 17 deletions
diff --git a/mixlib/mix.c b/mixlib/mix.c
index af1ba40..7a1f4a9 100644
--- a/mixlib/mix.c
+++ b/mixlib/mix.c
@@ -1,9 +1,9 @@
/* -*-c-*- -------------- mix.c :
* Implementation of the functions declared in mix.h
* ------------------------------------------------------------------
- * $Id: mix.c,v 1.4 2001/09/28 23:10:45 jao Exp $
+ * $Id: mix.c,v 1.5 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
- * Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+ * Copyright (C) 2000, 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
@@ -81,7 +81,7 @@ mix_stat_dir (const gchar *dirname, const gchar *alias)
{
if (errno != ENOENT || mkdir (dirname, S_IRWXU | S_IRWXG | S_IRWXO))
{
- g_warning ("Error creating %s dir %s: %s",
+ g_warning (_("Error creating %s dir %s: %s"),
alias, dirname, strerror (errno));
return FALSE;
}
@@ -90,7 +90,7 @@ mix_stat_dir (const gchar *dirname, const gchar *alias)
if (!(statbuf.st_mode & S_IFDIR))
{
- g_warning ("Error setting %s dir: %s is not a directory",
+ g_warning (_("Error setting %s dir: %s is not a directory"),
alias, dirname);
return FALSE;
}
diff --git a/mixlib/mix_config.c b/mixlib/mix_config.c
index 74a669f..d13feab 100644
--- a/mixlib/mix_config.c
+++ b/mixlib/mix_config.c
@@ -1,9 +1,9 @@
/* -*-c-*- -------------- mix_config.c :
* Implementation of the functions declared in mix_config.h
* ------------------------------------------------------------------
- * $Id: mix_config.c,v 1.7 2001/09/18 22:49:56 jao Exp $
+ * $Id: mix_config.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
@@ -215,7 +215,7 @@ mix_config_save (const mix_config_t *config)
f = fopen (config->filename, "w");
if (!f)
{
- g_warning ("Unable to open config file %s (%s)",
+ g_warning (_("Unable to open config file %s (%s)"),
config->filename, g_strerror (errno));
return;
}
diff --git a/mixlib/mix_predicate.c b/mixlib/mix_predicate.c
index 1ca2bd5..5eb487d 100644
--- a/mixlib/mix_predicate.c
+++ b/mixlib/mix_predicate.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mix_predicate.c :
* Implementation of the functions declared in mix_predicate.h
* ------------------------------------------------------------------
- * $Id: mix_predicate.c,v 1.4 2002/04/09 23:28:19 jao Exp $
+ * $Id: mix_predicate.c,v 1.5 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
*
@@ -173,36 +173,36 @@ mix_predicate_get_message (const mix_predicate_t *predicate)
switch (predicate->type)
{
case MIX_PRED_REG_A:
- g_snprintf (BUFFER, SIZE, "Register A changed to %s%ld",
+ g_snprintf (BUFFER, SIZE, _("Register A changed to %s%ld"),
mix_word_is_negative (predicate->data.regA)? "-" : "+",
mix_word_magnitude (predicate->data.regA));
break;
case MIX_PRED_REG_X:
- g_snprintf (BUFFER, SIZE, "Register X changed to %s%ld",
+ g_snprintf (BUFFER, SIZE, _("Register X changed to %s%ld"),
mix_word_is_negative (predicate->data.regX)? "-" : "+",
mix_word_magnitude (predicate->data.regX));
break;
case MIX_PRED_REG_J:
- g_snprintf (BUFFER, SIZE, "Register J changed to %d",
+ g_snprintf (BUFFER, SIZE, _("Register J changed to %d"),
mix_short_magnitude (predicate->data.regI));
break;
case MIX_PRED_REG_I1: case MIX_PRED_REG_I2: case MIX_PRED_REG_I3:
case MIX_PRED_REG_I4: case MIX_PRED_REG_I5: case MIX_PRED_REG_I6:
- g_snprintf (BUFFER, SIZE, "Register I%d changed to %s%d",
+ g_snprintf (BUFFER, SIZE, _("Register I%d changed to %s%d"),
predicate->control,
mix_short_is_negative (predicate->data.regI)? "-" : "+",
mix_short_magnitude (predicate->data.regI));
break;
case MIX_PRED_CMP:
- g_snprintf (BUFFER, SIZE, "Comparison flag changed to %s",
+ g_snprintf (BUFFER, SIZE, _("Comparison flag changed to %s"),
CMP_STRINGS[predicate->data.cmp]);
break;
case MIX_PRED_OVER:
- g_snprintf (BUFFER, SIZE, "Overflow toggled %s",
+ g_snprintf (BUFFER, SIZE, _("Overflow toggled %s"),
predicate->data.over ? "ON" : "OFF");
break;
case MIX_PRED_MEM:
- g_snprintf (BUFFER, SIZE, "Memory address %d changed to %s%ld",
+ g_snprintf (BUFFER, SIZE, _("Memory address %d changed to %s%ld"),
predicate->control,
mix_word_is_negative (predicate->data.mem)? "-" : "+",
mix_word_magnitude (predicate->data.mem));
diff --git a/mixlib/mix_vm_command.c b/mixlib/mix_vm_command.c
index 81e0bb6..d99bd6d 100644
--- a/mixlib/mix_vm_command.c
+++ b/mixlib/mix_vm_command.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mix_vm_command.c :
* Implementation of the functions declared in mix_vm_command.h
* ------------------------------------------------------------------
- * $Id: mix_vm_command.c,v 1.27 2002/04/09 23:28:19 jao Exp $
+ * $Id: mix_vm_command.c,v 1.28 2002/04/10 23:39:40 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
*
@@ -476,7 +476,7 @@ mix_vm_cmd_dispatcher_dispatch (mix_vm_cmd_dispatcher_t *dis,
}
else
{
- fprintf (dis->err, "Unknown command. Try: help\n");
+ fprintf (dis->err, _("Unknown command. Try: help\n"));
}
if (dis->global_post)