summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-01-15 22:37:40 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-01-15 22:37:40 +0100
commit257d5fe1533affc1e3a6fb8a2ce9b655419d9bbe (patch)
tree17e816ef2c10653105570832fe65f2aebc032ea9 /src/plugins
parent8fbbe8b0d509df26ff86ca8cd7fe4b2205c6d15e (diff)
downloadweechat-257d5fe1533affc1e3a6fb8a2ce9b655419d9bbe.zip
scripts: fix translation of help on option "eval_keep_context"
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/plugin-script-config.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/plugins/plugin-script-config.c b/src/plugins/plugin-script-config.c
index 380780094..8f8f97b48 100644
--- a/src/plugins/plugin-script-config.c
+++ b/src/plugins/plugin-script-config.c
@@ -39,7 +39,6 @@ plugin_script_config_init (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script_data *plugin_data)
{
struct t_config_section *ptr_section;
- char str_description[4096];
*(plugin_data->config_file) = weechat_config_new (weechat_plugin->name,
NULL, NULL, NULL);
@@ -69,18 +68,14 @@ plugin_script_config_init (struct t_weechat_plugin *weechat_plugin,
"is different from the plugin license, a warning is displayed"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
- snprintf (str_description, sizeof (str_description),
- N_("keep context between two calls to /%s eval "
- "(or info \"%s_eval\"); a hidden script is used to eval "
- "script code; if this option is disabled, this hidden script "
- "is unloaded after each eval: this uses less memory, but is "
- "slower"),
- weechat_plugin->name,
- weechat_plugin->name);
*(plugin_data->config_look_eval_keep_context) = weechat_config_new_option (
*(plugin_data->config_file), ptr_section,
"eval_keep_context", "boolean",
- str_description,
+ N_("keep context between two calls to the source code evaluation "
+ "(option \"eval\" of script command or info \"%s_eval\"); "
+ "a hidden script is used to eval script code; "
+ "if this option is disabled, this hidden script is unloaded after "
+ "each eval: this uses less memory, but is slower"),
NULL, 0, 0, "on", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);