summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2022-01-10 14:00:40 -0800
committerKevin McCarthy <kevin@8t8.us>2022-01-13 13:29:54 -0800
commit466d3b8bf328f611c9812b301907db69917f0bd0 (patch)
tree3bf231c8a0f0c91427f00b2016567a75f7663390 /init.c
parentcd3a5c8510303b4efb9e6ef882a6a179ae92e92c (diff)
Localize $reply_regexp.
This will allow translators to add additional reply prefixes common to their locale. Add more documentation to the option, to explain the parts of the regular expression. Give an example of adding more prefixes. Note that the result of this is stored in the header cache. Probably people rarely were affected by this before, but with the new localization, people may experiment and need to be aware to turn the header cache off while testing.
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.c b/init.c
index 24b60ddf..7f53fe9d 100644
--- a/init.c
+++ b/init.c
@@ -1859,6 +1859,8 @@ static void mutt_set_default (struct option_t *p)
REGEXP *pp = (REGEXP *) p->data.p;
if (!p->init.p && pp->pattern)
p->init.p = safe_strdup (pp->pattern);
+ else if (p->init.p && (p->type & DT_L10N_STR))
+ p->init.p = safe_strdup (_(p->init.p));
break;
}
}