summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/cs.po19
-rw-r--r--po/de.po19
-rw-r--r--po/es.po19
-rw-r--r--po/fr.po23
-rw-r--r--po/hu.po19
-rw-r--r--po/ru.po19
-rw-r--r--po/weechat.pot18
-rw-r--r--src/plugins/irc/irc.c38
8 files changed, 159 insertions, 15 deletions
diff --git a/po/cs.po b/po/cs.po
index 1ff413614..ee7a06133 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2009-01-28 13:54+0100\n"
+"POT-Creation-Date: 2009-01-30 14:15+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1871,8 +1871,11 @@ msgstr "Obdržen signál %s, ukončuji WeeChat.."
msgid "Signal SIGHUP received, reloading configuration files"
msgstr "%s selhalo uložení konfiguračního souboru\n"
+#, fuzzy
msgid "server"
-msgstr "server"
+msgid_plural "servers"
+msgstr[0] "server"
+msgstr[1] "server"
#, c-format
msgid ""
@@ -2334,6 +2337,18 @@ msgstr ""
msgid "Lag"
msgstr ""
+#, c-format
+msgid ""
+"%s%s: disconnecting from server because upgrade can't work for servers "
+"connected via SSL"
+msgstr ""
+
+#. TRANSLATORS: %s after %d is "server" or "servers"
+#, c-format
+msgid ""
+"%s%s: disconnected from %d %s (SSL connection not supported with upgrade)"
+msgstr ""
+
#, fuzzy, c-format
msgid "%s%s: error with server from URL (\"%s\"), ignored"
msgstr "%s nevalidní syntaxe pro IRC server ('%s'), ignorován\n"
diff --git a/po/de.po b/po/de.po
index fe1a9ed38..2d396d14c 100644
--- a/po/de.po
+++ b/po/de.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2009-01-28 13:54+0100\n"
+"POT-Creation-Date: 2009-01-30 14:15+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1890,8 +1890,11 @@ msgstr ""
msgid "Signal SIGHUP received, reloading configuration files"
msgstr "%s konnte die Konfigurationsdatei nicht sichern\n"
+#, fuzzy
msgid "server"
-msgstr "Server"
+msgid_plural "servers"
+msgstr[0] "Server"
+msgstr[1] "Server"
#, c-format
msgid ""
@@ -2342,6 +2345,18 @@ msgstr ""
msgid "Lag"
msgstr ""
+#, c-format
+msgid ""
+"%s%s: disconnecting from server because upgrade can't work for servers "
+"connected via SSL"
+msgstr ""
+
+#. TRANSLATORS: %s after %d is "server" or "servers"
+#, c-format
+msgid ""
+"%s%s: disconnected from %d %s (SSL connection not supported with upgrade)"
+msgstr ""
+
# ???
#, fuzzy, c-format
msgid "%s%s: error with server from URL (\"%s\"), ignored"
diff --git a/po/es.po b/po/es.po
index 7db299068..fc4ad2188 100644
--- a/po/es.po
+++ b/po/es.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2009-01-28 13:54+0100\n"
+"POT-Creation-Date: 2009-01-30 14:15+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1869,8 +1869,11 @@ msgstr ""
msgid "Signal SIGHUP received, reloading configuration files"
msgstr "%s falló al salvar el archivo de configuración\n"
+#, fuzzy
msgid "server"
-msgstr "servidor"
+msgid_plural "servers"
+msgstr[0] "servidor"
+msgstr[1] "servidor"
#, c-format
msgid ""
@@ -2317,6 +2320,18 @@ msgstr ""
msgid "Lag"
msgstr ""
+#, c-format
+msgid ""
+"%s%s: disconnecting from server because upgrade can't work for servers "
+"connected via SSL"
+msgstr ""
+
+#. TRANSLATORS: %s after %d is "server" or "servers"
+#, c-format
+msgid ""
+"%s%s: disconnected from %d %s (SSL connection not supported with upgrade)"
+msgstr ""
+
#, fuzzy, c-format
msgid "%s%s: error with server from URL (\"%s\"), ignored"
msgstr "%s sintaxis inválida para el servidor IRC ('%s'), ignorado\n"
diff --git a/po/fr.po b/po/fr.po
index 80bb99aae..e164626ea 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2009-01-28 13:54+0100\n"
-"PO-Revision-Date: 2009-01-28 13:54+0100\n"
+"POT-Creation-Date: 2009-01-30 14:15+0100\n"
+"PO-Revision-Date: 2009-01-30 14:14+0100\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1967,7 +1967,9 @@ msgid "Signal SIGHUP received, reloading configuration files"
msgstr "Signal SIGHUP reçu, rechargement des fichiers de configuration"
msgid "server"
-msgstr "serveur"
+msgid_plural "servers"
+msgstr[0] "serveur"
+msgstr[1] "serveurs"
#, c-format
msgid ""
@@ -2435,6 +2437,21 @@ msgid "Lag"
msgstr "Lag"
#, c-format
+msgid ""
+"%s%s: disconnecting from server because upgrade can't work for servers "
+"connected via SSL"
+msgstr ""
+"%s%s: déconnexion du serveur car la mise à jour ne peut pas fonctionner avec "
+"les serveurs connectés via SSL"
+
+#. TRANSLATORS: %s after %d is "server" or "servers"
+#, c-format
+msgid ""
+"%s%s: disconnected from %d %s (SSL connection not supported with upgrade)"
+msgstr ""
+"%s%s: déconnecté de %d %s (connexion SSL non supportée avec la mise à jour)"
+
+#, c-format
msgid "%s%s: error with server from URL (\"%s\"), ignored"
msgstr "%s%s: erreur avec le serveur de l'URL (\"%s\"), ignoré"
diff --git a/po/hu.po b/po/hu.po
index 599b57c2b..be6d1d639 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2009-01-28 13:54+0100\n"
+"POT-Creation-Date: 2009-01-30 14:15+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1901,8 +1901,11 @@ msgstr ""
msgid "Signal SIGHUP received, reloading configuration files"
msgstr "%s nem sikerült a konfigurációs fájlt elmenteni\n"
+#, fuzzy
msgid "server"
-msgstr "szerver"
+msgid_plural "servers"
+msgstr[0] "szerver"
+msgstr[1] "szerver"
#, c-format
msgid ""
@@ -2351,6 +2354,18 @@ msgstr ""
msgid "Lag"
msgstr ""
+#, c-format
+msgid ""
+"%s%s: disconnecting from server because upgrade can't work for servers "
+"connected via SSL"
+msgstr ""
+
+#. TRANSLATORS: %s after %d is "server" or "servers"
+#, c-format
+msgid ""
+"%s%s: disconnected from %d %s (SSL connection not supported with upgrade)"
+msgstr ""
+
#, fuzzy, c-format
msgid "%s%s: error with server from URL (\"%s\"), ignored"
msgstr "%s érvénytelen szintaxis az IRC szervernek ('%s'), mellőzve\n"
diff --git a/po/ru.po b/po/ru.po
index 8fb24a05a..863b3503c 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2009-01-28 13:54+0100\n"
+"POT-Creation-Date: 2009-01-30 14:15+0100\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1903,8 +1903,11 @@ msgstr ""
msgid "Signal SIGHUP received, reloading configuration files"
msgstr "%s не могу сохранить конфигурационный файл\n"
+#, fuzzy
msgid "server"
-msgstr "сервер"
+msgid_plural "servers"
+msgstr[0] "сервер"
+msgstr[1] "сервер"
#, c-format
msgid ""
@@ -2355,6 +2358,18 @@ msgstr ""
msgid "Lag"
msgstr ""
+#, c-format
+msgid ""
+"%s%s: disconnecting from server because upgrade can't work for servers "
+"connected via SSL"
+msgstr ""
+
+#. TRANSLATORS: %s after %d is "server" or "servers"
+#, c-format
+msgid ""
+"%s%s: disconnected from %d %s (SSL connection not supported with upgrade)"
+msgstr ""
+
#, fuzzy, c-format
msgid "%s%s: error with server from URL (\"%s\"), ignored"
msgstr "%s некорректный синтаксис IRC сервра ('%s'), игнорируется\n"
diff --git a/po/weechat.pot b/po/weechat.pot
index 9673e9978..9dd4f17ab 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: 2009-01-28 13:54+0100\n"
+"POT-Creation-Date: 2009-01-30 14:15+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"
@@ -1610,7 +1610,9 @@ msgid "Signal SIGHUP received, reloading configuration files"
msgstr ""
msgid "server"
-msgstr ""
+msgid_plural "servers"
+msgstr[0] ""
+msgstr[1] ""
#, c-format
msgid ""
@@ -2021,6 +2023,18 @@ msgid "Lag"
msgstr ""
#, c-format
+msgid ""
+"%s%s: disconnecting from server because upgrade can't work for servers "
+"connected via SSL"
+msgstr ""
+
+#. TRANSLATORS: %s after %d is "server" or "servers"
+#, c-format
+msgid ""
+"%s%s: disconnected from %d %s (SSL connection not supported with upgrade)"
+msgstr ""
+
+#, c-format
msgid "%s%s: error with server from URL (\"%s\"), ignored"
msgstr ""
diff --git a/src/plugins/irc/irc.c b/src/plugins/irc/irc.c
index b9ee5ae04..f272e002e 100644
--- a/src/plugins/irc/irc.c
+++ b/src/plugins/irc/irc.c
@@ -25,6 +25,7 @@
#include "../weechat-plugin.h"
#include "irc.h"
#include "irc-bar-item.h"
+#include "irc-buffer.h"
#include "irc-command.h"
#include "irc-completion.h"
#include "irc-config.h"
@@ -86,6 +87,9 @@ int
irc_signal_upgrade_cb (void *data, const char *signal, const char *type_data,
void *signal_data)
{
+ struct t_irc_server *ptr_server;
+ int disconnected;
+
/* make C compiler happy */
(void) data;
(void) signal;
@@ -94,6 +98,40 @@ irc_signal_upgrade_cb (void *data, const char *signal, const char *type_data,
irc_signal_upgrade_received = 1;
+ /* FIXME: it's not possible to upgrade with SSL servers connected (GnuTLS
+ lib can't reload data after upgrade), so we close connection for
+ all SSL servers currently connected */
+ disconnected = 0;
+ for (ptr_server = irc_servers; ptr_server;
+ ptr_server = ptr_server->next_server)
+ {
+ if (ptr_server->is_connected && ptr_server->ssl_connected)
+ {
+ disconnected++;
+ weechat_printf (ptr_server->buffer,
+ _("%s%s: disconnecting from server because upgrade "
+ "can't work for servers connected via SSL"),
+ irc_buffer_get_server_prefix (ptr_server, "error"),
+ IRC_PLUGIN_NAME);
+ irc_server_disconnect (ptr_server, 0);
+ /* schedule reconnection: WeeChat will reconnect to this server
+ after restart */
+ ptr_server->index_current_address = 0;
+ ptr_server->reconnect_start = time (NULL) -
+ IRC_SERVER_OPTION_INTEGER(ptr_server, IRC_SERVER_OPTION_AUTORECONNECT_DELAY) - 1;
+ }
+ }
+ if (disconnected > 0)
+ {
+ weechat_printf (NULL,
+ /* TRANSLATORS: %s after %d is "server" or "servers" */
+ _("%s%s: disconnected from %d %s (SSL connection "
+ "not supported with upgrade)"),
+ weechat_prefix ("error"), IRC_PLUGIN_NAME,
+ disconnected,
+ NG_("server", "servers", disconnected));
+ }
+
return WEECHAT_RC_OK;
}