[Commits] [SCM] claws branch, master, updated. 3.18.0-342-g7bd4827a9

paul at claws-mail.org paul at claws-mail.org
Fri Mar 11 12:06:05 CET 2022


The branch, master has been updated
       via  7bd4827a90965441cd598b2788ea4224ec96fe10 (commit)
      from  0391e584a2e44338bc19e589c727cd6a9bde2e66 (commit)

Summary of changes:
 src/plugins/keyword_warner/keyword_warner.c       | 15 ++++++++-------
 src/plugins/keyword_warner/keyword_warner_prefs.c |  2 +-
 2 files changed, 9 insertions(+), 8 deletions(-)


- Log -----------------------------------------------------------------
commit 7bd4827a90965441cd598b2788ea4224ec96fe10
Author: paul <paul at claws-mail.org>
Date:   Fri Mar 11 11:04:56 2022 +0000

    improve plugin description, and remove unnecessary underscores

diff --git a/src/plugins/keyword_warner/keyword_warner.c b/src/plugins/keyword_warner/keyword_warner.c
index 214a71210..67136b51d 100644
--- 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
index 47d9f0894..83e62f9b4 100644
--- 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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list