diff --git a/po/fr.po b/po/fr.po index fb0d1baa7..462616110 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.1.0-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-01-19 07:22+0100\n" +"POT-Creation-Date: 2005-01-19 17:52+0100\n" "PO-Revision-Date: 2005-01-01 13:00+0100\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" @@ -1432,7 +1432,7 @@ msgstr "%s impossible d'analyser la commande \"%s\"\n" #: src/irc/irc-recv.c:1266 #, c-format msgid "Private %s> %s" -msgstr "Privé %s> %s" +msgstr "Prive %s> %s" #: src/irc/irc-recv.c:1342 msgid "has quit" @@ -1809,17 +1809,17 @@ msgstr " [R] Retirer" msgid "server" msgstr "serveur" -#: src/gui/gui-common.c:322 +#: src/gui/gui-common.c:326 #, c-format msgid "%s not enough memory for infobar message\n" msgstr "%s pas assez de mémoire pour un message de la barre d'infos\n" -#: src/gui/gui-common.c:465 +#: src/gui/gui-common.c:471 #, c-format msgid "%s not enough memory for new line!\n" msgstr "%s pas assez de mémoire pour une nouvelle ligne !\n" -#: src/gui/gui-common.c:508 +#: src/gui/gui-common.c:514 msgid "not enough memory!\n" msgstr "pas assez de mémoire !\n" diff --git a/po/weechat.pot b/po/weechat.pot index e4f2ebab6..3bbeb8075 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-01-19 07:22+0100\n" +"POT-Creation-Date: 2005-01-19 17:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1697,17 +1697,17 @@ msgstr "" msgid "server" msgstr "" -#: src/gui/gui-common.c:322 +#: src/gui/gui-common.c:326 #, c-format msgid "%s not enough memory for infobar message\n" msgstr "" -#: src/gui/gui-common.c:465 +#: src/gui/gui-common.c:471 #, c-format msgid "%s not enough memory for new line!\n" msgstr "" -#: src/gui/gui-common.c:508 +#: src/gui/gui-common.c:514 msgid "not enough memory!\n" msgstr "" diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c index 36cb5dda0..842bf4c74 100644 --- a/src/gui/gui-common.c +++ b/src/gui/gui-common.c @@ -299,17 +299,21 @@ gui_infobar_printf (int time_displayed, int color, char *message, ...) static char buffer[1024]; va_list argptr; t_gui_infobar *ptr_infobar; - char *pos; + char *pos, *buf2; va_start (argptr, message); vsnprintf (buffer, sizeof (buffer) - 1, message, argptr); va_end (argptr); + buf2 = weechat_convert_encoding (cfg_look_charset_decode, + local_charset, + buffer); + ptr_infobar = (t_gui_infobar *)malloc (sizeof (t_gui_infobar)); if (ptr_infobar) { ptr_infobar->color = color; - ptr_infobar->text = strdup (buffer); + ptr_infobar->text = strdup (buf2); pos = strchr (ptr_infobar->text, '\n'); if (pos) pos[0] = '\0'; @@ -321,6 +325,8 @@ gui_infobar_printf (int time_displayed, int color, char *message, ...) else wee_log_printf (_("%s not enough memory for infobar message\n"), WEECHAT_ERROR); + + free (buf2); } /* diff --git a/weechat/po/fr.po b/weechat/po/fr.po index fb0d1baa7..462616110 100644 --- a/weechat/po/fr.po +++ b/weechat/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.1.0-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-01-19 07:22+0100\n" +"POT-Creation-Date: 2005-01-19 17:52+0100\n" "PO-Revision-Date: 2005-01-01 13:00+0100\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" @@ -1432,7 +1432,7 @@ msgstr "%s impossible d'analyser la commande \"%s\"\n" #: src/irc/irc-recv.c:1266 #, c-format msgid "Private %s> %s" -msgstr "Privé %s> %s" +msgstr "Prive %s> %s" #: src/irc/irc-recv.c:1342 msgid "has quit" @@ -1809,17 +1809,17 @@ msgstr " [R] Retirer" msgid "server" msgstr "serveur" -#: src/gui/gui-common.c:322 +#: src/gui/gui-common.c:326 #, c-format msgid "%s not enough memory for infobar message\n" msgstr "%s pas assez de mémoire pour un message de la barre d'infos\n" -#: src/gui/gui-common.c:465 +#: src/gui/gui-common.c:471 #, c-format msgid "%s not enough memory for new line!\n" msgstr "%s pas assez de mémoire pour une nouvelle ligne !\n" -#: src/gui/gui-common.c:508 +#: src/gui/gui-common.c:514 msgid "not enough memory!\n" msgstr "pas assez de mémoire !\n" diff --git a/weechat/po/weechat.pot b/weechat/po/weechat.pot index e4f2ebab6..3bbeb8075 100644 --- a/weechat/po/weechat.pot +++ b/weechat/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2005-01-19 07:22+0100\n" +"POT-Creation-Date: 2005-01-19 17:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1697,17 +1697,17 @@ msgstr "" msgid "server" msgstr "" -#: src/gui/gui-common.c:322 +#: src/gui/gui-common.c:326 #, c-format msgid "%s not enough memory for infobar message\n" msgstr "" -#: src/gui/gui-common.c:465 +#: src/gui/gui-common.c:471 #, c-format msgid "%s not enough memory for new line!\n" msgstr "" -#: src/gui/gui-common.c:508 +#: src/gui/gui-common.c:514 msgid "not enough memory!\n" msgstr "" diff --git a/weechat/src/gui/gui-common.c b/weechat/src/gui/gui-common.c index 36cb5dda0..842bf4c74 100644 --- a/weechat/src/gui/gui-common.c +++ b/weechat/src/gui/gui-common.c @@ -299,17 +299,21 @@ gui_infobar_printf (int time_displayed, int color, char *message, ...) static char buffer[1024]; va_list argptr; t_gui_infobar *ptr_infobar; - char *pos; + char *pos, *buf2; va_start (argptr, message); vsnprintf (buffer, sizeof (buffer) - 1, message, argptr); va_end (argptr); + buf2 = weechat_convert_encoding (cfg_look_charset_decode, + local_charset, + buffer); + ptr_infobar = (t_gui_infobar *)malloc (sizeof (t_gui_infobar)); if (ptr_infobar) { ptr_infobar->color = color; - ptr_infobar->text = strdup (buffer); + ptr_infobar->text = strdup (buf2); pos = strchr (ptr_infobar->text, '\n'); if (pos) pos[0] = '\0'; @@ -321,6 +325,8 @@ gui_infobar_printf (int time_displayed, int color, char *message, ...) else wee_log_printf (_("%s not enough memory for infobar message\n"), WEECHAT_ERROR); + + free (buf2); } /*