From e2497ff8bcdaa0a78975e98996958c76a418b9e0 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 17 May 2009 16:00:35 +0200 Subject: [PATCH] Fix typo: formated -> formatted --- doc/de/dev/plugin_c_api.de.xml | 8 ++++---- doc/en/dev/plugin_c_api.en.xml | 8 ++++---- doc/fr/dev/plugin_c_api.fr.xml | 8 ++++---- src/core/wee-command.c | 4 ++-- src/core/wee-config.c | 2 +- src/gui/curses/gui-curses-chat.c | 2 +- src/gui/curses/gui-curses-window.c | 12 ++++++------ src/gui/gui-bar-window.c | 2 +- src/gui/gui-buffer.c | 12 ++++++------ src/gui/gui-buffer.h | 4 ++-- src/gui/gui-chat.c | 12 ++++++------ src/gui/gui-input.c | 4 ++-- src/gui/gui-window.c | 6 +++--- 13 files changed, 42 insertions(+), 42 deletions(-) diff --git a/doc/de/dev/plugin_c_api.de.xml b/doc/de/dev/plugin_c_api.de.xml index 83f1e26d8..97b4d2913 100644 --- a/doc/de/dev/plugin_c_api.de.xml +++ b/doc/de/dev/plugin_c_api.de.xml @@ -1061,7 +1061,7 @@ char *weechat_string_format_size (unsigned long size); - Build a string with formated size and translated unit. + Build a string with formatted size and translated unit. Arguments: @@ -1074,7 +1074,7 @@ char *weechat_string_format_size (unsigned long size); - Return value: string with formated size and translated unit. + Return value: string with formatted size and translated unit. @@ -7803,9 +7803,9 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property, type - "formated" or "free" + "formatted" or "free" - set type for buffer: "formated" (for printing + set type for buffer: "formatted" (for printing chat messages), or "free" for free content diff --git a/doc/en/dev/plugin_c_api.en.xml b/doc/en/dev/plugin_c_api.en.xml index caa5c8f02..f066c3d42 100644 --- a/doc/en/dev/plugin_c_api.en.xml +++ b/doc/en/dev/plugin_c_api.en.xml @@ -1060,7 +1060,7 @@ char *weechat_string_format_size (unsigned long size); - Build a string with formated size and translated unit. + Build a string with formatted size and translated unit. Arguments: @@ -1073,7 +1073,7 @@ char *weechat_string_format_size (unsigned long size); - Return value: string with formated size and translated unit. + Return value: string with formatted size and translated unit. @@ -7802,9 +7802,9 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property, type - "formated" or "free" + "formatted" or "free" - set type for buffer: "formated" (for printing + set type for buffer: "formatted" (for printing chat messages), or "free" for free content diff --git a/doc/fr/dev/plugin_c_api.fr.xml b/doc/fr/dev/plugin_c_api.fr.xml index 325b25dd0..4565113e4 100644 --- a/doc/fr/dev/plugin_c_api.fr.xml +++ b/doc/fr/dev/plugin_c_api.fr.xml @@ -1061,7 +1061,7 @@ char *weechat_string_format_size (unsigned long size); - Build a string with formated size and translated unit. + Build a string with formatted size and translated unit. Arguments: @@ -1074,7 +1074,7 @@ char *weechat_string_format_size (unsigned long size); - Return value: string with formated size and translated unit. + Return value: string with formatted size and translated unit. @@ -7803,9 +7803,9 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property, type - "formated" or "free" + "formatted" or "free" - set type for buffer: "formated" (for printing + set type for buffer: "formatted" (for printing chat messages), or "free" for free content diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 4a8b4a946..827617cf6 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -545,7 +545,7 @@ command_buffer (void *data, struct t_gui_buffer *buffer, if (error && !error[0]) { ptr_buffer = gui_buffer_search_by_number (number); - if (ptr_buffer && (ptr_buffer->type == GUI_BUFFER_TYPE_FORMATED)) + if (ptr_buffer && (ptr_buffer->type == GUI_BUFFER_TYPE_FORMATTED)) gui_buffer_clear (ptr_buffer); } } @@ -553,7 +553,7 @@ command_buffer (void *data, struct t_gui_buffer *buffer, } else { - if (buffer->type == GUI_BUFFER_TYPE_FORMATED) + if (buffer->type == GUI_BUFFER_TYPE_FORMATTED) gui_buffer_clear (buffer); } diff --git a/src/core/wee-config.c b/src/core/wee-config.c index d9d84bd79..d779bfdd1 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -354,7 +354,7 @@ config_day_change_timer_cb (void *data, int remaining_calls) for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer) { - if (ptr_buffer->type == GUI_BUFFER_TYPE_FORMATED) + if (ptr_buffer->type == GUI_BUFFER_TYPE_FORMATTED) gui_chat_printf (ptr_buffer, _("\t\tDay changed to %s"), (text_time2) ? diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index ab77d7c57..d9c138cbc 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -1043,7 +1043,7 @@ gui_chat_draw (struct t_gui_buffer *buffer, int erase) switch (ptr_win->buffer->type) { - case GUI_BUFFER_TYPE_FORMATED: + case GUI_BUFFER_TYPE_FORMATTED: /* display at position of scrolling */ if (ptr_win->start_line) { diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 03195c672..acddda956 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -616,7 +616,7 @@ gui_window_page_up (struct t_gui_window *window) switch (window->buffer->type) { - case GUI_BUFFER_TYPE_FORMATED: + case GUI_BUFFER_TYPE_FORMATTED: if (!window->first_line_displayed) { gui_chat_calculate_line_diff (window, &window->start_line, @@ -666,7 +666,7 @@ gui_window_page_down (struct t_gui_window *window) switch (window->buffer->type) { - case GUI_BUFFER_TYPE_FORMATED: + case GUI_BUFFER_TYPE_FORMATTED: if (window->start_line) { gui_chat_calculate_line_diff (window, &window->start_line, @@ -714,7 +714,7 @@ gui_window_scroll_up (struct t_gui_window *window) switch (window->buffer->type) { - case GUI_BUFFER_TYPE_FORMATED: + case GUI_BUFFER_TYPE_FORMATTED: if (!window->first_line_displayed) { gui_chat_calculate_line_diff (window, &window->start_line, @@ -758,7 +758,7 @@ gui_window_scroll_down (struct t_gui_window *window) switch (window->buffer->type) { - case GUI_BUFFER_TYPE_FORMATED: + case GUI_BUFFER_TYPE_FORMATTED: if (window->start_line) { gui_chat_calculate_line_diff (window, &window->start_line, @@ -805,7 +805,7 @@ gui_window_scroll_top (struct t_gui_window *window) switch (window->buffer->type) { - case GUI_BUFFER_TYPE_FORMATED: + case GUI_BUFFER_TYPE_FORMATTED: if (!window->first_line_displayed) { window->start_line = gui_chat_get_first_line_displayed (window->buffer); @@ -842,7 +842,7 @@ gui_window_scroll_bottom (struct t_gui_window *window) switch (window->buffer->type) { - case GUI_BUFFER_TYPE_FORMATED: + case GUI_BUFFER_TYPE_FORMATTED: if (window->start_line) { window->start_line = NULL; diff --git a/src/gui/gui-bar-window.c b/src/gui/gui-bar-window.c index 25aec5f65..e97f20bd7 100644 --- a/src/gui/gui-bar-window.c +++ b/src/gui/gui-bar-window.c @@ -426,7 +426,7 @@ gui_bar_window_content_get (struct t_gui_bar_window *bar_window, /* * gui_bar_window_content_get_with_filling: get content of a bar window, - * formated for display, according + * formatted for display, according * to filling for bar position */ diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 3bbae7a91..eb97a6b5a 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -394,7 +394,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin, name); new_buffer->name = strdup (name); new_buffer->short_name = strdup (name); - new_buffer->type = GUI_BUFFER_TYPE_FORMATED; + new_buffer->type = GUI_BUFFER_TYPE_FORMATTED; new_buffer->notify = CONFIG_INTEGER(config_look_buffer_notify_default); new_buffer->num_displayed = 0; new_buffer->print_hooks_enabled = 1; @@ -406,7 +406,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin, /* title */ new_buffer->title = NULL; - /* chat lines (formated) */ + /* chat lines (formatted) */ new_buffer->lines = NULL; new_buffer->last_line = NULL; new_buffer->last_read_line = NULL; @@ -903,7 +903,7 @@ gui_buffer_set_unread (struct t_gui_buffer *buffer) { int refresh; - if (buffer->type == GUI_BUFFER_TYPE_FORMATED) + if (buffer->type == GUI_BUFFER_TYPE_FORMATTED) { refresh = ((buffer->last_read_line != NULL) && (buffer->last_read_line != buffer->last_line)); @@ -981,8 +981,8 @@ gui_buffer_set (struct t_gui_buffer *buffer, const char *property, } else if (string_strcasecmp (property, "type") == 0) { - if (string_strcasecmp (value, "formated") == 0) - gui_buffer_set_type (buffer, GUI_BUFFER_TYPE_FORMATED); + if (string_strcasecmp (value, "formatted") == 0) + gui_buffer_set_type (buffer, GUI_BUFFER_TYPE_FORMATTED); else if (string_strcasecmp (value, "free") == 0) gui_buffer_set_type (buffer, GUI_BUFFER_TYPE_FREE); } @@ -1363,7 +1363,7 @@ gui_buffer_clear_all () for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer) { - if (ptr_buffer->type == GUI_BUFFER_TYPE_FORMATED) + if (ptr_buffer->type == GUI_BUFFER_TYPE_FORMATTED) gui_buffer_clear (ptr_buffer); } } diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h index 80e92f890..737ac0df5 100644 --- a/src/gui/gui-buffer.h +++ b/src/gui/gui-buffer.h @@ -25,7 +25,7 @@ struct t_infolist; enum t_gui_buffer_type { - GUI_BUFFER_TYPE_FORMATED = 0, + GUI_BUFFER_TYPE_FORMATTED = 0, GUI_BUFFER_TYPE_FREE, /* number of buffer types */ GUI_BUFFER_NUM_TYPES, @@ -89,7 +89,7 @@ struct t_gui_buffer /* layout */ char *name; /* buffer name */ char *short_name; /* short buffer name */ - enum t_gui_buffer_type type; /* buffer type (formated, free, ..) */ + enum t_gui_buffer_type type; /* buffer type (formatted, free, ..) */ int notify; /* 0 = never */ /* 1 = highlight only */ /* 2 = highlight + msg */ diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index 409f14020..ab881fcb0 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -671,7 +671,7 @@ gui_chat_line_has_highlight (struct t_gui_buffer *buffer, } /* - * gui_chat_line_free: delete a formated line from a buffer + * gui_chat_line_free: delete a formatted line from a buffer */ void @@ -739,7 +739,7 @@ gui_chat_line_free (struct t_gui_buffer *buffer, struct t_gui_line *line) } /* - * gui_chat_line_free_all: delete all formated lines from a buffer + * gui_chat_line_free_all: delete all formatted lines from a buffer */ void @@ -1030,7 +1030,7 @@ gui_chat_line_add_y (struct t_gui_buffer *buffer, int y, const char *message) /* * gui_chat_printf_date_tags: display a message in a buffer with optional * date and tags - * Info: this function works only with formated + * Info: this function works only with formatted * buffers (not buffers with free content) */ @@ -1059,10 +1059,10 @@ gui_chat_printf_date_tags (struct t_gui_buffer *buffer, time_t date, if (!buffer) return; - if (buffer->type != GUI_BUFFER_TYPE_FORMATED) + if (buffer->type != GUI_BUFFER_TYPE_FORMATTED) buffer = gui_buffers; - if (buffer->type != GUI_BUFFER_TYPE_FORMATED) + if (buffer->type != GUI_BUFFER_TYPE_FORMATTED) return; } @@ -1182,7 +1182,7 @@ gui_chat_printf_date_tags (struct t_gui_buffer *buffer, time_t date, /* * gui_chat_printf_y: display a message on a line in a buffer with free content * Info: this function works only with free content - * buffers (not formated buffers) + * buffers (not formatted buffers) */ void diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c index 48b4ea58d..d50d8675b 100644 --- a/src/gui/gui-input.c +++ b/src/gui/gui-input.c @@ -422,7 +422,7 @@ gui_input_complete_previous () void gui_input_search_text () { - if (gui_current_window->buffer->type == GUI_BUFFER_TYPE_FORMATED) + if (gui_current_window->buffer->type == GUI_BUFFER_TYPE_FORMATTED) { /* toggle search */ if (gui_current_window->buffer->text_search == GUI_TEXT_SEARCH_DISABLED) @@ -1193,7 +1193,7 @@ gui_input_scroll_unread () { if (CONFIG_STRING(config_look_read_marker) && CONFIG_STRING(config_look_read_marker)[0] && - (gui_current_window->buffer->type == GUI_BUFFER_TYPE_FORMATED) && + (gui_current_window->buffer->type == GUI_BUFFER_TYPE_FORMATTED) && (gui_current_window->buffer->first_line_not_read || (gui_current_window->buffer->last_read_line && gui_current_window->buffer->last_read_line != gui_current_window->buffer->last_line))) diff --git a/src/gui/gui-window.c b/src/gui/gui-window.c index 4b22f8520..91bd37146 100644 --- a/src/gui/gui-window.c +++ b/src/gui/gui-window.c @@ -719,7 +719,7 @@ gui_window_scroll (struct t_gui_window *window, char *scroll) gui_window_scroll_top (window); else { - if (window->buffer->type == GUI_BUFFER_TYPE_FORMATED) + if (window->buffer->type == GUI_BUFFER_TYPE_FORMATTED) gui_window_scroll_bottom (window); } } @@ -734,7 +734,7 @@ gui_window_scroll_previous_highlight (struct t_gui_window *window) { struct t_gui_line *ptr_line; - if ((window->buffer->type == GUI_BUFFER_TYPE_FORMATED) + if ((window->buffer->type == GUI_BUFFER_TYPE_FORMATTED) && (window->buffer->text_search == GUI_TEXT_SEARCH_DISABLED)) { if (window->buffer->lines) @@ -767,7 +767,7 @@ gui_window_scroll_next_highlight (struct t_gui_window *window) { struct t_gui_line *ptr_line; - if ((window->buffer->type == GUI_BUFFER_TYPE_FORMATED) + if ((window->buffer->type == GUI_BUFFER_TYPE_FORMATTED) && (window->buffer->text_search == GUI_TEXT_SEARCH_DISABLED)) { if (window->buffer->lines)