mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:23:13 +02:00
relay: add status "data synchronization" on remote buffers
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
### Added
|
||||
|
||||
- relay: redefine bar item "input_prompt" to display the connection status on remote buffers, if different from "connected"
|
||||
- relay: display connection status in input prompt of remote buffers, if not connected or if synchronizing data with the remote
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-12 21:35+0200\n"
|
||||
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14024,6 +14024,9 @@ msgstr "%s%s: nemohu se připojit k odesílateli"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: nedostatek paměti pro rozdělení zprávy"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Akce (písmeno+enter):"
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-24 10:45+0200\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <kde-i18n-de@kde.org>\n"
|
||||
@@ -15390,6 +15390,9 @@ msgstr ""
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: Nicht genug Speicher vorhanden um Nachricht zu parsen"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Aktion (Zeichen+Enter):"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14366,6 +14366,9 @@ msgstr "%s%s: no es posible conectarse al transmisor"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: memoria insuficiente para analizar el mensaje"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Acciones (letra+enter):"
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"PO-Revision-Date: 2024-08-24 10:37+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-24 11:00+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -15079,6 +15079,9 @@ msgstr "remote[%s] : impossible de se connecter, pas assez de mémoire"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s : pas assez de mémoire pour analyser le message"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr "synchronisation des données"
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Actions (lettre+entrée) :"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13422,6 +13422,9 @@ msgstr "%s DCC: nem sikerült kapcsolódni a küldőhöz\n"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s nincs elegendő memória a fogadott IRC üzenet számára\n"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-12 21:35+0200\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14376,6 +14376,9 @@ msgstr "%s%s: impossibile connettersi al mittente"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: memoria non sufficiente per verificare il messaggio"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Azioni (lettera+invio):"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-12 21:35+0200\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
|
||||
@@ -14823,6 +14823,9 @@ msgstr "%s%s: 送信者に接続できません"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: メッセージ解析用のメモリが足りません"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Actions (文字+enter):"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-23 08:27+0200\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14792,6 +14792,9 @@ msgstr "remote[%s]: połączenie nie powiodło się, za mało pamięci"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: za mało pamięci na przetworzenie otrzymanych wiadomości"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Akcje (litera+enter):"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-12 21:35+0200\n"
|
||||
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
@@ -14727,6 +14727,9 @@ msgstr "%s%s: não foi possível conectar para enviar"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: memória insuficiente para analisar a mensagem"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Ações (letra+enter):"
|
||||
|
||||
|
||||
+4
-1
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13878,6 +13878,9 @@ msgstr "%s%s: não foi possível conectar ao remetente"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: memória insuficiente para interpretar mensagem"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Ações (letra+ENTER):"
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13475,6 +13475,9 @@ msgstr "%s DCC: не могу соединиться с отправителем
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s недостаточно памяти для полученного сообщения\n"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-24 10:56+0200\n"
|
||||
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14684,6 +14684,9 @@ msgstr "удаљени[%s]: није успело повезивање, нема
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: нема довољно слободне меморије за парсирање поруке"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Акције (слово+ентер):"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+0200\n"
|
||||
"PO-Revision-Date: 2024-08-12 21:36+0200\n"
|
||||
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14997,6 +14997,9 @@ msgstr "%s%s: Göndericiye bağlanılamıyor"
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr "%s%s: ayrıştırma iletisi için bellek yetersiz"
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr "Eylemler (harf+enter):"
|
||||
|
||||
|
||||
+4
-1
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:27+0200\n"
|
||||
"POT-Creation-Date: 2024-08-24 10:59+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"
|
||||
@@ -12271,6 +12271,9 @@ msgstr ""
|
||||
msgid "%s%s: not enough memory for parsing message"
|
||||
msgstr ""
|
||||
|
||||
msgid "data synchronization"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions (letter+enter):"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -1221,6 +1221,8 @@ relay_remote_event_sync_with_remote (struct t_relay_remote *remote)
|
||||
|
||||
remote->synced = 1;
|
||||
|
||||
weechat_bar_item_update ("input_prompt");
|
||||
|
||||
end:
|
||||
cJSON_Delete (json);
|
||||
}
|
||||
|
||||
@@ -56,12 +56,21 @@ relay_bar_item_input_prompt (const void *pointer, void *data,
|
||||
|
||||
str_status[0] = '\0';
|
||||
ptr_remote = relay_remote_search (weechat_buffer_get_string (buffer, "localvar_relay_remote"));
|
||||
if (ptr_remote && (ptr_remote->status != RELAY_STATUS_CONNECTED))
|
||||
if (ptr_remote)
|
||||
{
|
||||
snprintf (str_status, sizeof (str_status),
|
||||
"%s<%s>",
|
||||
weechat_color (weechat_config_string (relay_config_color_status[ptr_remote->status])),
|
||||
_(relay_status_string[ptr_remote->status]));
|
||||
if ((ptr_remote->status == RELAY_STATUS_CONNECTED) && !ptr_remote->synced)
|
||||
{
|
||||
snprintf (str_status, sizeof (str_status),
|
||||
"<%s>", _("data synchronization"));
|
||||
}
|
||||
else if (ptr_remote->status != RELAY_STATUS_CONNECTED)
|
||||
{
|
||||
snprintf (
|
||||
str_status, sizeof (str_status),
|
||||
"%s<%s>",
|
||||
weechat_color (weechat_config_string (relay_config_color_status[ptr_remote->status])),
|
||||
_(relay_status_string[ptr_remote->status]));
|
||||
}
|
||||
}
|
||||
|
||||
ptr_input_prompt = weechat_buffer_get_string (buffer, "input_prompt");
|
||||
|
||||
Reference in New Issue
Block a user