talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit f6918f9d74a0c6cbffd6cd4a4a8be64c23009ba4
parent af51609d216c8449f2631646504433caf0ca8057
Author: paul <paul@claws-mail.org>
Date:   Fri, 11 Mar 2022 11:04:56 +0000

improve plugin description, and remove unnecessary underscores

Diffstat:
Msrc/plugins/keyword_warner/keyword_warner.c | 15++++++++-------
Msrc/plugins/keyword_warner/keyword_warner_prefs.c | 2+-
2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/plugins/keyword_warner/keyword_warner.c b/src/plugins/keyword_warner/keyword_warner.c @@ -186,9 +186,9 @@ static gboolean kwarn_before_send_hook(gpointer source, gpointer data) bold_text = g_strdup_printf("<span weight=\"bold\">%.20s</span>...", mention->context); message = g_strdup_printf( - _("A keyword is mentioned in the mail you're sending. " - " Mention appears on line %d, " - "which begins with text: %s\n\n%s"), + _("A keyword is used in the mail you are sending. " + "The keyword appears on line %d, " + "which begins with the text: %s\n\n%s"), mention->line, bold_text, compose->sending?_("Send it anyway?"):_("Queue it anyway?")); @@ -220,7 +220,7 @@ static gboolean kwarn_before_send_hook(gpointer source, gpointer data) gint plugin_init(gchar **error) { if (!check_plugin_version(MAKE_NUMERIC_VERSION(2,9,2,72), - VERSION_NUMERIC, "Keyword_Warner", error)) + VERSION_NUMERIC, "Keyword Warner", error)) return -1; hook_id = hooks_register_hook(COMPOSE_CHECK_BEFORE_SEND_HOOKLIST, @@ -257,7 +257,7 @@ gboolean plugin_done(void) */ const gchar *plugin_name(void) { - return _("Keyword_Warner"); + return _("Keyword Warner"); } /** @@ -267,7 +267,8 @@ const gchar *plugin_name(void) */ const gchar *plugin_desc(void) { - return _("Warns user if some reference to keywords is found in the " + return _("Shows a warning when sending or queueing a message " + "and a reference to one or more keywords is found in the " "message text."); } @@ -309,7 +310,7 @@ const gchar *plugin_version(void) struct PluginFeature *plugin_provides(void) { static struct PluginFeature features[] = - { {PLUGIN_OTHER, N_("Keyword_Warner")}, + { {PLUGIN_OTHER, N_("Keyword Warner")}, {PLUGIN_NOTHING, NULL}}; return features; diff --git a/src/plugins/keyword_warner/keyword_warner_prefs.c b/src/plugins/keyword_warner/keyword_warner_prefs.c @@ -234,7 +234,7 @@ void keyword_warner_prefs_init(void) gchar *tmp; path[0] = _("Plugins"); - path[1] = _("Keyword_Warner"); + path[1] = _("Keyword Warner"); path[2] = NULL; prefs_set_default(param);