Fix typo: formated -> formatted

This commit is contained in:
Sebastien Helleu 2009-05-17 16:00:35 +02:00
parent 353538e3d8
commit e2497ff8bc
13 changed files with 42 additions and 42 deletions

View File

@ -1061,7 +1061,7 @@ char *weechat_string_format_size (unsigned long size);
</programlisting>
</para>
<para>
Build a string with formated size and translated unit.
Build a string with formatted size and translated unit.
</para>
<para>
Arguments:
@ -1074,7 +1074,7 @@ char *weechat_string_format_size (unsigned long size);
</itemizedlist>
</para>
<para>
Return value: string with formated size and translated unit.
Return value: string with formatted size and translated unit.
</para>
<note>
<para>
@ -7803,9 +7803,9 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
</row>
<row>
<entry>type</entry>
<entry>"formated" or "free"</entry>
<entry>"formatted" or "free"</entry>
<entry>
set type for buffer: "formated" (for printing
set type for buffer: "formatted" (for printing
chat messages), or "free" for free content
</entry>
</row>

View File

@ -1060,7 +1060,7 @@ char *weechat_string_format_size (unsigned long size);
</programlisting>
</para>
<para>
Build a string with formated size and translated unit.
Build a string with formatted size and translated unit.
</para>
<para>
Arguments:
@ -1073,7 +1073,7 @@ char *weechat_string_format_size (unsigned long size);
</itemizedlist>
</para>
<para>
Return value: string with formated size and translated unit.
Return value: string with formatted size and translated unit.
</para>
<note>
<para>
@ -7802,9 +7802,9 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
</row>
<row>
<entry>type</entry>
<entry>"formated" or "free"</entry>
<entry>"formatted" or "free"</entry>
<entry>
set type for buffer: "formated" (for printing
set type for buffer: "formatted" (for printing
chat messages), or "free" for free content
</entry>
</row>

View File

@ -1061,7 +1061,7 @@ char *weechat_string_format_size (unsigned long size);
</programlisting>
</para>
<para>
Build a string with formated size and translated unit.
Build a string with formatted size and translated unit.
</para>
<para>
Arguments:
@ -1074,7 +1074,7 @@ char *weechat_string_format_size (unsigned long size);
</itemizedlist>
</para>
<para>
Return value: string with formated size and translated unit.
Return value: string with formatted size and translated unit.
</para>
<note>
<para>
@ -7803,9 +7803,9 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
</row>
<row>
<entry>type</entry>
<entry>"formated" or "free"</entry>
<entry>"formatted" or "free"</entry>
<entry>
set type for buffer: "formated" (for printing
set type for buffer: "formatted" (for printing
chat messages), or "free" for free content
</entry>
</row>

View File

@ -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);
}

View File

@ -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) ?

View File

@ -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)
{

View File

@ -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;

View File

@ -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
*/

View File

@ -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);
}
}

View File

@ -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 */

View File

@ -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

View File

@ -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)))

View File

@ -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)