talons

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

commit 7bd4827a90965441cd598b2788ea4224ec96fe10
parent 0391e584a2e44338bc19e589c727cd6a9bde2e66
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?")); @@ -221,7 +221,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, @@ -258,7 +258,7 @@ gboolean plugin_done(void) */ const gchar *plugin_name(void) { - return _("Keyword_Warner"); + return _("Keyword Warner"); } /** @@ -268,7 +268,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."); } @@ -310,7 +311,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 @@ -233,7 +233,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);