summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-05-27 21:46:24 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-05-27 21:46:24 +0200
commitbd8e0d8bfa482a99fb6396c6458eba19ac9ed2c7 (patch)
treee9cda9a811063daad0103f56c7de7801e81c0dbe
parent3d39f7e86cb666ba7e28ec83fb0f05bce5b867f3 (diff)
downloadweechat-bd8e0d8bfa482a99fb6396c6458eba19ac9ed2c7.zip
relay/remote: add translations for some messages displayed
-rw-r--r--po/cs.po15
-rw-r--r--po/de.po17
-rw-r--r--po/es.po15
-rw-r--r--po/fr.po17
-rw-r--r--po/hu.po14
-rw-r--r--po/it.po15
-rw-r--r--po/ja.po17
-rw-r--r--po/pl.po17
-rw-r--r--po/pt.po17
-rw-r--r--po/pt_BR.po15
-rw-r--r--po/ru.po14
-rw-r--r--po/sr.po17
-rw-r--r--po/tr.po17
-rw-r--r--po/weechat.pot14
-rw-r--r--src/plugins/relay/api/remote/relay-remote-event.c22
-rw-r--r--src/plugins/relay/api/remote/relay-remote-network.c149
16 files changed, 306 insertions, 86 deletions
diff --git a/po/cs.po b/po/cs.po
index bdd32523e..5002ada93 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13637,6 +13637,19 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: nekorektní znaková sada: \"%s\""
+
+#, fuzzy, c-format
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s%s: TLS handshake selhal"
+
+#, fuzzy, c-format
+#| msgid "%s%s: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%s%s: spojení odmítnuto"
+
#, fuzzy
#| msgid "invalid priorities"
msgid "invalid response from remote relay"
diff --git a/po/de.po b/po/de.po
index c014c3aab..c342d2577 100644
--- a/po/de.po
+++ b/po/de.po
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-05-24 10:45+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -15044,6 +15044,21 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+#| msgid "%s%s: invalid trigger name: \"%s\""
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: ungültiger Trigger-Name: \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%s%s: failed to copy trigger \"%s\""
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s%s: Trigger \"%s\" konnte nicht kopiert werden"
+
+#, fuzzy, c-format
+#| msgid "%sremote[%s]: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%sremote[%s]: Verbindungsaufbau verweigert"
+
msgid "invalid response from remote relay"
msgstr "ungültige Antwort vom Remote-Relay"
diff --git a/po/es.po b/po/es.po
index 14fe9dd63..fc22a81b7 100644
--- a/po/es.po
+++ b/po/es.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13958,6 +13958,19 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: set de caracteres inválido: \"%s\""
+
+#, fuzzy, c-format
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%sError: no se pudo crear la barra \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%s%s: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%s%s: conexión rechazada"
+
#, fuzzy
#| msgid "invalid priorities"
msgid "invalid response from remote relay"
diff --git a/po/fr.po b/po/fr.po
index bc18be242..00c703a99 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
-"PO-Revision-Date: 2024-05-26 10:36+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
+"PO-Revision-Date: 2024-05-27 21:45+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -14750,6 +14750,19 @@ msgstr ""
"%sremote[%s] : incompatibilité de version d'API : l'API distance est %s "
"(WeeChat %s), l'API locale est %s (WeeChat %s)"
+#, c-format
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%sremote[%s] : données invalides reçues du relai distant : \"%s\""
+
+#, c-format
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr ""
+"%sremote[%s] : la fonction de rappel a échoué pour le type de body \"%s\""
+
+#, c-format
+msgid "remote[%s]: disconnected"
+msgstr "remote[%s] : déconnecté"
+
msgid "invalid response from remote relay"
msgstr "réponse invalide du relai distant"
diff --git a/po/hu.po b/po/hu.po
index 2581529f9..19ca081f8 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13096,6 +13096,18 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
+
+#, fuzzy, c-format
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s nem sikerült a modul opciókat elmenteni\n"
+
+#, fuzzy, c-format
+msgid "remote[%s]: disconnected"
+msgstr "%s a csatlakozás elutasítva\n"
+
msgid "invalid response from remote relay"
msgstr ""
diff --git a/po/it.po b/po/it.po
index e0273a0e4..d5b2e5433 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13972,6 +13972,19 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: set di caratter invalido: \"%s\""
+
+#, fuzzy, c-format
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%sErrore: creazione della barra \"%s\" fallita"
+
+#, fuzzy, c-format
+#| msgid "%s%s: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%s%s: connessione rifiutata"
+
#, fuzzy
#| msgid "invalid priorities"
msgid "invalid response from remote relay"
diff --git a/po/ja.po b/po/ja.po
index e1b1602c0..2469a8661 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -14390,6 +14390,21 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+#| msgid "%s%s: invalid trigger name: \"%s\""
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: トリガ名が間違っています: \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%s%s: failed to copy trigger \"%s\""
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s%s: トリガ \"%s\" のコピーに失敗しました"
+
+#, fuzzy, c-format
+#| msgid "%s%s: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%s%s: 接続拒否"
+
#, fuzzy
#| msgid "invalid priorities"
msgid "invalid response from remote relay"
diff --git a/po/pl.po b/po/pl.po
index 0261fa7c2..231f969cf 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-05-25 13:34+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -14338,6 +14338,21 @@ msgstr ""
"%sremote[%s]: niepasujące wersje AtoPI: zdalne API is %s (WeeChat %s), "
"lokalne api API %s (WeeChat %s)"
+#, fuzzy, c-format
+#| msgid "%s%s: invalid trigger name: \"%s\""
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: nieprawidłowe nazwa triggera: \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%s%s: failed to copy trigger \"%s\""
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s%s: nieudane kopiowanie triggera \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%sremote[%s]: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%sremote[%s]: połączenie odrzucone"
+
msgid "invalid response from remote relay"
msgstr "nieprawidłowa odpowiedź od pośrednika"
diff --git a/po/pt.po b/po/pt.po
index 58d1c6419..e558b8df7 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -14309,6 +14309,21 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+#| msgid "%s%s: invalid trigger name: \"%s\""
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: nome de acionador inválido: \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%s%s: failed to copy trigger \"%s\""
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s%s: falha ao copiar o acionador \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%s%s: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%s%s: conexão recusada"
+
#, fuzzy
#| msgid "invalid priorities"
msgid "invalid response from remote relay"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 68de15cb1..de789bf4a 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13497,6 +13497,19 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: charset inválido: \"%s\""
+
+#, fuzzy, c-format
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%sErro: falha ao criar a barra \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%s%s: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%s%s: conexão recusada"
+
msgid "invalid response from remote relay"
msgstr ""
diff --git a/po/ru.po b/po/ru.po
index 66058a128..f6ad0ef6e 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -13148,6 +13148,18 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "Не могу записать лог-файл \"%s\"\n"
+
+#, fuzzy, c-format
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s не могу сохранить конфигурационный файл pluginов\n"
+
+#, fuzzy, c-format
+msgid "remote[%s]: disconnected"
+msgstr "%s в подключении отказано\n"
+
msgid "invalid response from remote relay"
msgstr ""
diff --git a/po/sr.po b/po/sr.po
index a6e430dde..81d022745 100644
--- a/po/sr.po
+++ b/po/sr.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-05-07 14:00+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -14323,6 +14323,21 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+#| msgid "%s%s: invalid trigger name: \"%s\""
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: неважеће име окидача: „%s”"
+
+#, fuzzy, c-format
+#| msgid "%s%s: failed to copy trigger \"%s\""
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s%s: није успело копирање окидача „%s”"
+
+#, fuzzy, c-format
+#| msgid "%sremote[%s]: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%sудаљени[%s]: веза је одбијена"
+
msgid "invalid response from remote relay"
msgstr "неважећи одговор од удаљеног релеја"
diff --git a/po/tr.po b/po/tr.po
index 3e4a53b06..0a5efbbc9 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -14557,6 +14557,21 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, fuzzy, c-format
+#| msgid "%s%s: invalid trigger name: \"%s\""
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr "%s%s: Geçersiz tetik adı: \"%s\""
+
+#, fuzzy, c-format
+#| msgid "%s%s: failed to copy trigger \"%s\""
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr "%s%s: \"%s\" tetiği kopyalanamadı"
+
+#, fuzzy, c-format
+#| msgid "%s%s: connection refused"
+msgid "remote[%s]: disconnected"
+msgstr "%s%s: Bağlantı reddedildi"
+
#, fuzzy
#| msgid "invalid priorities"
msgid "invalid response from remote relay"
diff --git a/po/weechat.pot b/po/weechat.pot
index 78f3bed63..9fe18ffe3 100644
--- a/po/weechat.pot
+++ b/po/weechat.pot
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-26 10:37+0200\n"
+"POT-Creation-Date: 2024-05-27 21:44+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11968,6 +11968,18 @@ msgid ""
"%s (WeeChat %s)"
msgstr ""
+#, c-format
+msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
+msgstr ""
+
+#, c-format
+msgid "%sremote[%s]: callback failed for body type \"%s\""
+msgstr ""
+
+#, c-format
+msgid "remote[%s]: disconnected"
+msgstr ""
+
msgid "invalid response from remote relay"
msgstr ""
diff --git a/src/plugins/relay/api/remote/relay-remote-event.c b/src/plugins/relay/api/remote/relay-remote-event.c
index 587ccaf38..ba20a29bd 100644
--- a/src/plugins/relay/api/remote/relay-remote-event.c
+++ b/src/plugins/relay/api/remote/relay-remote-event.c
@@ -1006,18 +1006,20 @@ relay_remote_event_recv (struct t_relay_remote *remote, const char *data)
return;
error_data:
- weechat_printf (NULL,
- "%sremote[%s]: invalid data received from remote: \"%s\"",
- weechat_prefix ("error"),
- remote->name,
- data);
+ weechat_printf (
+ NULL,
+ _("%sremote[%s]: invalid data received from remote relay: \"%s\""),
+ weechat_prefix ("error"),
+ remote->name,
+ data);
return;
error_cb:
- weechat_printf (NULL,
- "%sremote[%s]: callback failed for body type \"%s\"",
- weechat_prefix ("error"),
- remote->name,
- body_type);
+ weechat_printf (
+ NULL,
+ _("%sremote[%s]: callback failed for body type \"%s\""),
+ weechat_prefix ("error"),
+ remote->name,
+ body_type);
return;
}
diff --git a/src/plugins/relay/api/remote/relay-remote-network.c b/src/plugins/relay/api/remote/relay-remote-network.c
index 673096772..8cb054e2c 100644
--- a/src/plugins/relay/api/remote/relay-remote-network.c
+++ b/src/plugins/relay/api/remote/relay-remote-network.c
@@ -126,7 +126,7 @@ relay_remote_network_disconnect (struct t_relay_remote *remote)
relay_remote_network_close_connection (remote);
relay_remote_set_status (remote, RELAY_STATUS_DISCONNECTED);
- weechat_printf (NULL, "remote[%s]: disconnected", remote->name);
+ weechat_printf (NULL, _("remote[%s]: disconnected"), remote->name);
}
/*
@@ -716,7 +716,8 @@ relay_remote_network_connect_ws_auth (struct t_relay_remote *remote)
if (!str_auth[0])
{
- weechat_printf (NULL, _("%sremote[%s]: failed to build authentication"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: failed to build authentication"),
weechat_prefix ("error"), remote->name);
relay_remote_network_disconnect (remote);
goto end;
@@ -792,7 +793,8 @@ relay_remote_network_connect_cb (const void *pointer, void *data, int status,
switch (status)
{
case WEECHAT_HOOK_CONNECT_OK:
- weechat_printf (NULL, _("remote[%s]: connected to %s/%d (%s)"),
+ weechat_printf (NULL,
+ _("remote[%s]: connected to %s/%d (%s)"),
remote->name, remote->address, remote->port,
ip_address);
remote->hook_fd = weechat_hook_fd (remote->sock, 1, 0, 0,
@@ -802,30 +804,36 @@ relay_remote_network_connect_cb (const void *pointer, void *data, int status,
relay_remote_network_connect_ws_auth (remote);
break;
case WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND:
- weechat_printf (NULL, _("%sremote[%s]: address \"%s\" not found"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: address \"%s\" not found"),
weechat_prefix ("error"), remote->name,
remote->address);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
case WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND:
- weechat_printf (NULL, _("%sremote[%s]: IP address not found"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: IP address not found"),
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
case WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED:
- weechat_printf (NULL, _("%sremote[%s]: connection refused"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: connection refused"),
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
@@ -838,61 +846,74 @@ relay_remote_network_connect_cb (const void *pointer, void *data, int status,
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
case WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR:
- weechat_printf (NULL, _("%sremote[%s]: unable to set local hostname/IP"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: unable to set local hostname/IP"),
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
case WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR:
- weechat_printf (NULL, _("%sremote[%s]: TLS init error"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: TLS init error"),
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
case WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR:
- weechat_printf (NULL, _("%sremote[%s]: TLS handshake failed"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: TLS handshake failed"),
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
case WEECHAT_HOOK_CONNECT_MEMORY_ERROR:
- weechat_printf (NULL, _("%sremote[%s]: not enough memory"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: not enough memory"),
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
case WEECHAT_HOOK_CONNECT_TIMEOUT:
- weechat_printf (NULL, _("%sremote[%s]: timeout"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: timeout"),
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
case WEECHAT_HOOK_CONNECT_SOCKET_ERROR:
- weechat_printf (NULL, _("%sremote[%s]: unable to create socket"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: unable to create socket"),
weechat_prefix ("error"), remote->name);
if (error && error[0])
{
- weechat_printf (NULL, _("%sremote[%s]: error: %s"),
+ weechat_printf (NULL,
+ _("%sremote[%s]: error: %s"),
weechat_prefix ("error"), remote->name, error);
}
break;
@@ -1159,12 +1180,13 @@ relay_remote_network_url_handshake_cb (const void *pointer,
ptr_resp_code = weechat_hashtable_get (output, "response_code");
if (ptr_resp_code && ptr_resp_code[0] && (strcmp (ptr_resp_code, "200") != 0))
{
- weechat_printf (NULL,
- _("%sremote[%s]: handshake failed with URL %s, response code: %s"),
- weechat_prefix ("error"),
- remote->name,
- weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
- ptr_resp_code);
+ weechat_printf (
+ NULL,
+ _("%sremote[%s]: handshake failed with URL %s, response code: %s"),
+ weechat_prefix ("error"),
+ remote->name,
+ weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
+ ptr_resp_code);
relay_remote_set_status (remote, RELAY_STATUS_DISCONNECTED);
return WEECHAT_RC_OK;
}
@@ -1172,12 +1194,13 @@ relay_remote_network_url_handshake_cb (const void *pointer,
ptr_error = weechat_hashtable_get (output, "error");
if (ptr_error && ptr_error[0])
{
- weechat_printf (NULL,
- _("%sremote[%s]: handshake failed with URL %s, error: %s"),
- weechat_prefix ("error"),
- remote->name,
- weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
- ptr_error);
+ weechat_printf (
+ NULL,
+ _("%sremote[%s]: handshake failed with URL %s, error: %s"),
+ weechat_prefix ("error"),
+ remote->name,
+ weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
+ ptr_error);
relay_remote_set_status (remote, RELAY_STATUS_DISCONNECTED);
return WEECHAT_RC_OK;
}
@@ -1208,51 +1231,55 @@ relay_remote_network_url_handshake_cb (const void *pointer,
if (remote->password_hash_algo < 0)
{
- weechat_printf (NULL,
- _("%sremote[%s]: handshake failed with URL %s, error: %s"),
- weechat_prefix ("error"),
- remote->name,
- weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
- _("hash algorithm not found"));
+ weechat_printf (
+ NULL,
+ _("%sremote[%s]: handshake failed with URL %s, error: %s"),
+ weechat_prefix ("error"),
+ remote->name,
+ weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
+ _("hash algorithm not found"));
relay_remote_set_status (remote, RELAY_STATUS_DISCONNECTED);
return WEECHAT_RC_OK;
}
if (remote->password_hash_iterations < 0)
{
- weechat_printf (NULL,
- _("%sremote[%s]: handshake failed with URL %s, error: %s"),
- weechat_prefix ("error"),
- remote->name,
- weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
- _("unknown number of hash iterations"));
+ weechat_printf (
+ NULL,
+ _("%sremote[%s]: handshake failed with URL %s, error: %s"),
+ weechat_prefix ("error"),
+ remote->name,
+ weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
+ _("unknown number of hash iterations"));
relay_remote_set_status (remote, RELAY_STATUS_DISCONNECTED);
return WEECHAT_RC_OK;
}
if (remote->totp < 0)
{
- weechat_printf (NULL,
- _("%sremote[%s]: handshake failed with URL %s, error: %s"),
- weechat_prefix ("error"),
- remote->name,
- weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
- _("unknown TOTP status"));
+ weechat_printf (
+ NULL,
+ _("%sremote[%s]: handshake failed with URL %s, error: %s"),
+ weechat_prefix ("error"),
+ remote->name,
+ weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
+ _("unknown TOTP status"));
relay_remote_set_status (remote, RELAY_STATUS_DISCONNECTED);
return WEECHAT_RC_OK;
}
if (weechat_relay_plugin->debug >= 1)
{
- weechat_printf (NULL,
- _("%sremote[%s]: successful handshake with URL %s: "
- "hash_algo=%s, iterations=%d, totp=%d"),
- RELAY_PLUGIN_NAME,
- remote->name,
- weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
- relay_auth_password_hash_algo_name[remote->password_hash_algo],
- remote->password_hash_iterations,
- remote->totp);
+ weechat_printf (
+ NULL,
+ _("%sremote[%s]: successful handshake with URL %s: "
+ "hash_algo=%s, iterations=%d, totp=%d"),
+ RELAY_PLUGIN_NAME,
+ remote->name,
+ weechat_config_string (remote->options[RELAY_REMOTE_OPTION_URL]),
+ relay_auth_password_hash_algo_name[remote->password_hash_algo],
+ remote->password_hash_iterations,
+ remote->totp);
}
proxy_type = NULL;