improve plugin description, and remove unnecessary underscores
authorpaul <paul@claws-mail.org>
Fri, 11 Mar 2022 11:04:56 +0000 (11:04 +0000)
committerpaul <paul@claws-mail.org>
Fri, 11 Mar 2022 11:04:56 +0000 (11:04 +0000)
src/plugins/keyword_warner/keyword_warner.c
src/plugins/keyword_warner/keyword_warner_prefs.c

index bba53d9ff4417a37208a1f19bb0792a6b7ea97d8..3dd0fc9d9ccbe713b72179190db4ff1e310886bf 100644 (file)
@@ -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;
index fca01e527aa2b5e8c7027a3d88e49acadb4ba63c..f969d2513e1fbcab526ea235149ab8affbb1c6ad 100644 (file)
@@ -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);