summaryrefslogtreecommitdiffstats
path: root/alias.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-01 09:27:57 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-01 09:27:57 +0000
commit691bd529e512097f427d230c947ff4cf0adb8a38 (patch)
tree3bdaff6c2d27ecf7d4f1ddc78d1eef87089d33ed /alias.c
parentdea307bbc2b8cf7639af5a148c6146e21644e6e4 (diff)
Adding gettext support, based on the patch by Marco d'Itri.
Diffstat (limited to 'alias.c')
-rw-r--r--alias.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/alias.c b/alias.c
index 84dcc04c..842b91da 100644
--- a/alias.c
+++ b/alias.c
@@ -188,13 +188,14 @@ void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr)
else
buf[0] = '\0';
- if (mutt_get_field ("Alias as: ", buf, sizeof (buf), 0) != 0 || !buf[0])
+ /* add a new alias */
+ if (mutt_get_field (_("Alias as: "), buf, sizeof (buf), 0) != 0 || !buf[0])
return;
/* check to see if the user already has an alias defined */
if (mutt_lookup_alias (buf))
{
- mutt_error ("You already have an alias defined with that name!");
+ mutt_error _("You already have an alias defined with that name!");
return;
}
@@ -208,7 +209,7 @@ void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr)
do
{
- if (mutt_get_field ("Address: ", buf, sizeof (buf), 0) != 0 || !buf[0])
+ if (mutt_get_field (_("Address: "), buf, sizeof (buf), 0) != 0 || !buf[0])
{
mutt_free_alias (&new);
return;
@@ -224,7 +225,7 @@ void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr)
else
buf[0] = 0;
- if (mutt_get_field ("Personal name: ", buf, sizeof (buf), 0) != 0)
+ if (mutt_get_field (_("Personal name: "), buf, sizeof (buf), 0) != 0)
{
mutt_free_alias (&new);
return;
@@ -233,7 +234,7 @@ void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr)
buf[0] = 0;
rfc822_write_address (buf, sizeof (buf), new->addr);
- snprintf (prompt, sizeof (prompt), "[%s = %s] Accept?", new->name, buf);
+ snprintf (prompt, sizeof (prompt), _("[%s = %s] Accept?"), new->name, buf);
if (mutt_yesorno (prompt, 1) != 1)
{
mutt_free_alias (&new);
@@ -250,7 +251,7 @@ void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr)
Aliases = new;
strfcpy (buf, NONULL (AliasFile), sizeof (buf));
- if (mutt_get_field ("Save to file: ", buf, sizeof (buf), M_FILE) != 0)
+ if (mutt_get_field (_("Save to file: "), buf, sizeof (buf), M_FILE) != 0)
return;
mutt_expand_path (buf, sizeof (buf));
if ((rc = fopen (buf, "a")))
@@ -261,7 +262,7 @@ void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr)
write_safe_address (rc, buf);
fputc ('\n', rc);
fclose (rc);
- mutt_message ("Alias added.");
+ mutt_message _("Alias added.");
}
else
mutt_perror (buf);