mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
Aspell plugin is born again
This commit is contained in:
@@ -1126,11 +1126,11 @@ command_help (void *data, struct t_gui_buffer *buffer,
|
||||
_("type"), _("string"));
|
||||
gui_chat_printf (NULL, " %s: %s",
|
||||
_("values"), string);
|
||||
gui_chat_printf (NULL, " %s: '%s'",
|
||||
gui_chat_printf (NULL, " %s: \"%s\"",
|
||||
_("default value"),
|
||||
ptr_option->string_values[CONFIG_INTEGER_DEFAULT(ptr_option)]);
|
||||
gui_chat_printf (NULL,
|
||||
" %s: '%s%s%s'",
|
||||
" %s: \"%s%s%s\"",
|
||||
_("current value"),
|
||||
GUI_COLOR(GUI_COLOR_CHAT_HOST),
|
||||
ptr_option->string_values[CONFIG_INTEGER(ptr_option)],
|
||||
@@ -1178,10 +1178,10 @@ command_help (void *data, struct t_gui_buffer *buffer,
|
||||
ptr_option->max);
|
||||
break;
|
||||
}
|
||||
gui_chat_printf (NULL, " %s: '%s'",
|
||||
gui_chat_printf (NULL, " %s: \"%s\"",
|
||||
_("default value"),
|
||||
CONFIG_STRING_DEFAULT(ptr_option));
|
||||
gui_chat_printf (NULL, " %s: '%s%s%s'",
|
||||
gui_chat_printf (NULL, " %s: \"%s%s%s\"",
|
||||
_("current value"),
|
||||
GUI_COLOR(GUI_COLOR_CHAT_HOST),
|
||||
CONFIG_STRING(ptr_option),
|
||||
@@ -1516,7 +1516,8 @@ command_layout_display_tree (struct t_gui_layout_window *layout_window,
|
||||
/* leaf */
|
||||
snprintf (format, sizeof (format), "%%-%ds%s",
|
||||
indent * 2,
|
||||
_("leaf: id: %d, parent: %d, plugin: '%s', buffer: '%s'"));
|
||||
_("leaf: id: %d, parent: %d, plugin: \"%s\", "
|
||||
"buffer: \"%s\""));
|
||||
gui_chat_printf (NULL, format,
|
||||
" ",
|
||||
layout_window->internal_id,
|
||||
|
||||
@@ -2393,8 +2393,8 @@ config_file_print_stdout (struct t_config_file *config_file)
|
||||
{
|
||||
case CONFIG_OPTION_TYPE_BOOLEAN:
|
||||
string_iconv_fprintf (stdout, _(" . type: boolean\n"));
|
||||
string_iconv_fprintf (stdout, _(" . values: 'on' or 'off'\n"));
|
||||
string_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||
string_iconv_fprintf (stdout, _(" . values: \"on\" or \"off\"\n"));
|
||||
string_iconv_fprintf (stdout, _(" . default value: \"%s\"\n"),
|
||||
(CONFIG_BOOLEAN_DEFAULT(ptr_option) == CONFIG_BOOLEAN_TRUE) ?
|
||||
"on" : "off");
|
||||
break;
|
||||
@@ -2406,14 +2406,14 @@ config_file_print_stdout (struct t_config_file *config_file)
|
||||
i = 0;
|
||||
while (ptr_option->string_values[i])
|
||||
{
|
||||
string_iconv_fprintf (stdout, "'%s'",
|
||||
string_iconv_fprintf (stdout, "\"%s\"",
|
||||
ptr_option->string_values[i]);
|
||||
if (ptr_option->string_values[i + 1])
|
||||
string_iconv_fprintf (stdout, ", ");
|
||||
i++;
|
||||
}
|
||||
string_iconv_fprintf (stdout, "\n");
|
||||
string_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||
string_iconv_fprintf (stdout, _(" . default value: \"%s\"\n"),
|
||||
ptr_option->string_values[CONFIG_INTEGER_DEFAULT(ptr_option)]);
|
||||
}
|
||||
else
|
||||
@@ -2443,14 +2443,14 @@ config_file_print_stdout (struct t_config_file *config_file)
|
||||
ptr_option->max);
|
||||
break;
|
||||
}
|
||||
string_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||
string_iconv_fprintf (stdout, _(" . default value: \"%s\"\n"),
|
||||
CONFIG_STRING_DEFAULT(ptr_option));
|
||||
break;
|
||||
case CONFIG_OPTION_TYPE_COLOR:
|
||||
color_name = gui_color_get_name (CONFIG_COLOR_DEFAULT(ptr_option));
|
||||
string_iconv_fprintf (stdout, _(" . type: color\n"));
|
||||
string_iconv_fprintf (stdout, _(" . values: color (depends on GUI used)\n"));
|
||||
string_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||
string_iconv_fprintf (stdout, _(" . default value: \"%s\"\n"),
|
||||
color_name);
|
||||
break;
|
||||
case CONFIG_NUM_OPTION_TYPES:
|
||||
|
||||
+2
-2
@@ -176,14 +176,14 @@ hook_remove_from_list (struct t_hook *hook)
|
||||
last_weechat_hook[hook->type] = hook->prev_hook;
|
||||
if (hook->prev_hook)
|
||||
{
|
||||
hook->prev_hook->next_hook = hook->next_hook;
|
||||
(hook->prev_hook)->next_hook = hook->next_hook;
|
||||
new_hooks = weechat_hooks[hook->type];
|
||||
}
|
||||
else
|
||||
new_hooks = hook->next_hook;
|
||||
|
||||
if (hook->next_hook)
|
||||
hook->next_hook->prev_hook = hook->prev_hook;
|
||||
(hook->next_hook)->prev_hook = hook->prev_hook;
|
||||
|
||||
free (hook);
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ upgrade_file_error (struct t_upgrade_file *upgrade_file, char *message1,
|
||||
char *message2, char *file, int line)
|
||||
{
|
||||
gui_chat_printf (NULL,
|
||||
_("%sError upgrading WeeChat with file '%s':"),
|
||||
_("%sError upgrading WeeChat with file \"%s\":"),
|
||||
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
|
||||
upgrade_file->filename);
|
||||
gui_chat_printf (NULL,
|
||||
|
||||
Reference in New Issue
Block a user