1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

scripts: fix translation of help on option "eval_keep_context"

This commit is contained in:
Sébastien Helleu
2018-01-15 22:37:40 +01:00
parent 8fbbe8b0d5
commit 257d5fe153
62 changed files with 176 additions and 72 deletions
+5 -10
View File
@@ -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);