mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05:46:38 +02:00
Added charset conversion in infobar
This commit is contained in:
@@ -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 <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\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"
|
||||
|
||||
|
||||
+4
-4
@@ -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 <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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 ""
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+5
-5
@@ -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 <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\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"
|
||||
|
||||
|
||||
@@ -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 <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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 ""
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user