summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-09-18 18:53:35 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-09-18 18:53:35 +0200
commit9c4f98e2785ff75fc39ddb9b3b357c514048799e (patch)
treea5b45fbd83c74900076c3a5847b1e8948472e87f /src
parentc572e393e7399d125b543f4102d1baeb3b3b8391 (diff)
downloadweechat-9c4f98e2785ff75fc39ddb9b3b357c514048799e.zip
Replace french word "pourcentage" by percentage
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-command.c4
-rw-r--r--src/gui/curses/gui-curses-window.c26
-rw-r--r--src/gui/gtk/gui-gtk-window.c24
-rw-r--r--src/gui/gui-window.h6
-rw-r--r--src/plugins/xfer/xfer-buffer.c2
5 files changed, 31 insertions, 31 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index d689ac20e..895b3b485 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -3004,10 +3004,10 @@ command_init ()
"splith: split current window horizontally\n"
"splitv: split current window vertically\n"
"resize: resize window size, new size is <pct> "
- "pourcentage of parent window\n"
+ "percentage of parent window\n"
" merge: merge window with another (all = keep only one "
"window)\n\n"
- "For splith and splitv, pct is a pourcentage which "
+ "For splith and splitv, pct is a percentage which "
"represents size of new window, computed with current "
"window as size reference. For example 25 means create a "
"new window with size = current_size / 4"),
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index 9d1cc58b2..da177a941 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -1299,7 +1299,7 @@ gui_window_refresh_windows ()
*/
void
-gui_window_split_horiz (struct t_gui_window *window, int pourcentage)
+gui_window_split_horiz (struct t_gui_window *window, int percentage)
{
struct t_gui_window *new_window;
int height1, height2;
@@ -1307,21 +1307,21 @@ gui_window_split_horiz (struct t_gui_window *window, int pourcentage)
if (!gui_ok)
return;
- height1 = (window->win_height * pourcentage) / 100;
+ height1 = (window->win_height * percentage) / 100;
height2 = window->win_height - height1;
if ((height1 >= GUI_WINDOW_MIN_HEIGHT) && (height2 >= GUI_WINDOW_MIN_HEIGHT)
- && (pourcentage > 0) && (pourcentage <= 100))
+ && (percentage > 0) && (percentage <= 100))
{
if ((new_window = gui_window_new (window,
window->win_x, window->win_y,
window->win_width, height1,
- 100, pourcentage)))
+ 100, percentage)))
{
/* reduce old window height (bottom window) */
window->win_y = new_window->win_y + new_window->win_height;
window->win_height = height2;
- window->win_height_pct = 100 - pourcentage;
+ window->win_height_pct = 100 - percentage;
/* assign same buffer for new window (top window) */
new_window->buffer = window->buffer;
@@ -1339,7 +1339,7 @@ gui_window_split_horiz (struct t_gui_window *window, int pourcentage)
*/
void
-gui_window_split_vertic (struct t_gui_window *window, int pourcentage)
+gui_window_split_vertic (struct t_gui_window *window, int percentage)
{
struct t_gui_window *new_window;
int width1, width2;
@@ -1347,20 +1347,20 @@ gui_window_split_vertic (struct t_gui_window *window, int pourcentage)
if (!gui_ok)
return;
- width1 = (window->win_width * pourcentage) / 100;
+ width1 = (window->win_width * percentage) / 100;
width2 = window->win_width - width1 - 1;
if ((width1 >= GUI_WINDOW_MIN_WIDTH) && (width2 >= GUI_WINDOW_MIN_WIDTH)
- && (pourcentage > 0) && (pourcentage <= 100))
+ && (percentage > 0) && (percentage <= 100))
{
if ((new_window = gui_window_new (window,
window->win_x + width1 + 1, window->win_y,
width2, window->win_height,
- pourcentage, 100)))
+ percentage, 100)))
{
/* reduce old window height (left window) */
window->win_width = width1;
- window->win_width_pct = 100 - pourcentage;
+ window->win_width_pct = 100 - percentage;
/* assign same buffer for new window (right window) */
new_window->buffer = window->buffer;
@@ -1381,7 +1381,7 @@ gui_window_split_vertic (struct t_gui_window *window, int pourcentage)
*/
void
-gui_window_resize (struct t_gui_window *window, int pourcentage)
+gui_window_resize (struct t_gui_window *window, int percentage)
{
struct t_gui_window_tree *parent;
int old_split_pct, add_bottom, add_top, add_left, add_right;
@@ -1395,9 +1395,9 @@ gui_window_resize (struct t_gui_window *window, int pourcentage)
old_split_pct = parent->split_pct;
if (((parent->split_horiz) && (window->ptr_tree == parent->child2))
|| ((!(parent->split_horiz)) && (window->ptr_tree == parent->child1)))
- parent->split_pct = pourcentage;
+ parent->split_pct = percentage;
else
- parent->split_pct = 100 - pourcentage;
+ parent->split_pct = 100 - percentage;
add_bottom = gui_bar_root_get_size (NULL, GUI_BAR_POSITION_BOTTOM);
add_top = gui_bar_root_get_size (NULL, GUI_BAR_POSITION_TOP);
diff --git a/src/gui/gtk/gui-gtk-window.c b/src/gui/gtk/gui-gtk-window.c
index cecfa8ce7..9c7cbd564 100644
--- a/src/gui/gtk/gui-gtk-window.c
+++ b/src/gui/gtk/gui-gtk-window.c
@@ -611,7 +611,7 @@ gui_window_refresh_windows ()
*/
void
-gui_window_split_horiz (struct t_gui_window *window, int pourcentage)
+gui_window_split_horiz (struct t_gui_window *window, int percentage)
{
struct t_gui_window *new_window;
int height1, height2;
@@ -619,20 +619,20 @@ gui_window_split_horiz (struct t_gui_window *window, int pourcentage)
if (!gui_ok)
return;
- height1 = (window->win_height * pourcentage) / 100;
+ height1 = (window->win_height * percentage) / 100;
height2 = window->win_height - height1;
- if ((pourcentage > 0) && (pourcentage <= 100))
+ if ((percentage > 0) && (percentage <= 100))
{
if ((new_window = gui_window_new (window,
window->win_x, window->win_y,
window->win_width, height1,
- 100, pourcentage)))
+ 100, percentage)))
{
/* reduce old window height (bottom window) */
window->win_y = new_window->win_y + new_window->win_height;
window->win_height = height2;
- window->win_height_pct = 100 - pourcentage;
+ window->win_height_pct = 100 - percentage;
/* assign same buffer for new window (top window) */
new_window->buffer = window->buffer;
@@ -652,7 +652,7 @@ gui_window_split_horiz (struct t_gui_window *window, int pourcentage)
*/
void
-gui_window_split_vertic (struct t_gui_window *window, int pourcentage)
+gui_window_split_vertic (struct t_gui_window *window, int percentage)
{
struct t_gui_window *new_window;
int width1, width2;
@@ -660,19 +660,19 @@ gui_window_split_vertic (struct t_gui_window *window, int pourcentage)
if (!gui_ok)
return;
- width1 = (window->win_width * pourcentage) / 100;
+ width1 = (window->win_width * percentage) / 100;
width2 = window->win_width - width1 - 1;
- if ((pourcentage > 0) && (pourcentage <= 100))
+ if ((percentage > 0) && (percentage <= 100))
{
if ((new_window = gui_window_new (window,
window->win_x + width1 + 1, window->win_y,
width2, window->win_height,
- pourcentage, 100)))
+ percentage, 100)))
{
/* reduce old window height (left window) */
window->win_width = width1;
- window->win_width_pct = 100 - pourcentage;
+ window->win_width_pct = 100 - percentage;
/* assign same buffer for new window (right window) */
new_window->buffer = window->buffer;
@@ -695,11 +695,11 @@ gui_window_split_vertic (struct t_gui_window *window, int pourcentage)
*/
void
-gui_window_resize (struct t_gui_window *window, int pourcentage)
+gui_window_resize (struct t_gui_window *window, int percentage)
{
/* TODO: write this function for Gtk */
(void) window;
- (void) pourcentage;
+ (void) percentage;
}
/*
diff --git a/src/gui/gui-window.h b/src/gui/gui-window.h
index b47da4082..564528d34 100644
--- a/src/gui/gui-window.h
+++ b/src/gui/gui-window.h
@@ -171,10 +171,10 @@ extern void gui_window_nicklist_end (struct t_gui_window *window);
extern void gui_window_init_subwindows (struct t_gui_window *window);
extern void gui_window_refresh_windows ();
extern void gui_window_split_horiz (struct t_gui_window *window,
- int pourcentage);
+ int percentage);
extern void gui_window_split_vertic (struct t_gui_window *window,
- int pourcentage);
-extern void gui_window_resize (struct t_gui_window *window, int pourcentage);
+ int percentage);
+extern void gui_window_resize (struct t_gui_window *window, int percentage);
extern int gui_window_merge (struct t_gui_window *window);
extern void gui_window_merge_all (struct t_gui_window *window);
extern void gui_window_switch_up (struct t_gui_window *window);
diff --git a/src/plugins/xfer/xfer-buffer.c b/src/plugins/xfer/xfer-buffer.c
index 5ec2ebf38..836e155ad 100644
--- a/src/plugins/xfer/xfer-buffer.c
+++ b/src/plugins/xfer/xfer-buffer.c
@@ -169,7 +169,7 @@ xfer_buffer_refresh (const char *hotlist)
strcat (progress_bar, "] ");
}
- /* computes pourcentage */
+ /* computes percentage */
if (ptr_xfer->size < 1024*10)
num_unit = 0;
else if (ptr_xfer->size < 1024*1024)