summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-06-17 13:13:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-06-17 13:13:11 +0200
commite1d1831fa8aa06e9c7968792b3d1b8f656ec9903 (patch)
treefbd611583b603d3db488a79fbadff22295fcb7d3
parent3e42d95f4083243782217b7d0d209e2219372058 (diff)
downloadweechat-e1d1831fa8aa06e9c7968792b3d1b8f656ec9903.zip
core: ignore rest of config file if config version is invalid or not supported
-rw-r--r--po/cs.po21
-rw-r--r--po/de.po41
-rw-r--r--po/es.po22
-rw-r--r--po/fr.po20
-rw-r--r--po/hu.po21
-rw-r--r--po/it.po22
-rw-r--r--po/ja.po22
-rw-r--r--po/pl.po22
-rw-r--r--po/pt.po22
-rw-r--r--po/pt_BR.po22
-rw-r--r--po/ru.po21
-rw-r--r--po/sr.po24
-rw-r--r--po/tr.po22
-rw-r--r--po/weechat.pot10
-rw-r--r--src/core/wee-config-file.c25
15 files changed, 153 insertions, 184 deletions
diff --git a/po/cs.po b/po/cs.po
index 4a18ced2a..4485b5f31 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-05-01 20:23+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: cs\n"
@@ -4447,14 +4447,16 @@ msgstr "%sUpozornění: %s, řádek %d: nevalidní syntaxe, chybí \"]\""
msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%sUpozornění: %s, řádek %d: neznámý identifikátor sekce (\"%s\")"
-#, fuzzy, c-format
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sUpozornění: %s, řádek %d: nevalidní syntaxe, chybí \"]\""
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, fuzzy, c-format
@@ -14149,8 +14151,3 @@ msgstr "%s%s: vypršel časový limit \"%s\" pro %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "poslat zprávu přezdívce nebo kanálu"
diff --git a/po/de.po b/po/de.po
index 61b673f61..b3f965784 100644
--- a/po/de.po
+++ b/po/de.po
@@ -26,8 +26,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-06-16 14:30+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
"Language: de_DE\n"
@@ -5601,13 +5601,18 @@ msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%sWarnung: %s, Zeile %d: unbekannte Sektion (\"%s\")"
#, c-format
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sWarnung: %s, Zeile %d: ungültige Konfigurationsversion: %s"
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
-#, c-format
+#, fuzzy, c-format
+#| msgid ""
+#| "%sWarning: %s, version read (%d) is newer than supported version (%d), "
+#| "options may be broken!"
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
"%sWarnung: %s, verwendete Version (%d) ist neuer als die unterstützte "
"Version (%d), Optionen sind möglicherweise defekt!"
@@ -14456,18 +14461,15 @@ msgstr ""
"noch nicht authentifiziert ist und der Clientstatus auf \"Authentifizierung "
"fehlgeschlagen\" gesetzt ist (0 = ewig warten)"
-#| msgid ""
-#| "address for bind (if empty, connection is possible on all interfaces, use "
-#| "\"127.0.0.1\" to allow connections from local machine only)"
msgid ""
"address for bind (if empty, connection is possible on all interfaces, use "
"\"127.0.0.1\" to allow connections from local machine only with IPv4 and \"::"
"ffff:127.0.0.1\" with IPv6)"
msgstr ""
-"Adresse für bind (falls nicht gesetzt, ist die Verbindung auf allen"
-" Schnittstellen möglich. Wird die Adresse \"127.0.0.1\" verwendet, können"
-" Verbindungen von einem lokalen Computer über IPv4 genutzt werden und mittels"
-" \"ffff:127.0.0.1\" via IPv6)"
+"Adresse für bind (falls nicht gesetzt, ist die Verbindung auf allen "
+"Schnittstellen möglich. Wird die Adresse \"127.0.0.1\" verwendet, können "
+"Verbindungen von einem lokalen Computer über IPv4 genutzt werden und mittels "
+"\"ffff:127.0.0.1\" via IPv6)"
msgid ""
"delay for purging disconnected clients (in minutes, 0 = purge clients "
@@ -16021,8 +16023,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat"
msgid ""
"list|listfull|listdefault || add|addoff|addreplace <name> <hook> "
-"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<"
-"return_code>\" [\"<post_action>\"]]]]]] "
+"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
"|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
"<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|-"
"all [<name>...]] || restart <name>|-all [<name>...] || show <name> || del "
@@ -16030,8 +16031,7 @@ msgid ""
"monitor [<filter>]"
msgstr ""
"list|listfull|listdefault || add|addoff|addreplace <name> <hook> "
-"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<"
-"return_code>\" [\"<post_action>\"]]]]]] "
+"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
"|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
"<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|-"
"all [<name>...]] || restart <name>|-all [<name>...] || show <name> || del "
@@ -16930,8 +16930,3 @@ msgstr "%s%s: Zeitüberschreitung für \"%s\" mit %s"
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr ""
"%s%s: Verbindung konnte nicht hergestellt werden: unerwarteter Fehler (%d)"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "Nachricht an Nick/Kanal verschicken"
diff --git a/po/es.po b/po/es.po
index 11b4b5d6d..9e77eb0e3 100644
--- a/po/es.po
+++ b/po/es.po
@@ -22,8 +22,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-05-01 20:23+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: es\n"
@@ -5071,15 +5071,16 @@ msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr ""
"%sAtención: %s, línea %d: identificador de sección desconocido (\"%s\")"
-#, fuzzy, c-format
-#| msgid "%sWarning: %s, line %d: invalid value for option: %s"
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sAtención: %s, línea %d: valor inválido para la opción: %s"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, c-format
@@ -14821,8 +14822,3 @@ msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: no es posible conectarse: error (%d)"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "envía mensaje a un usuario o canal"
diff --git a/po/fr.po b/po/fr.po
index 3187b2203..80a79c6e8 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: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-06-15 22:05+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:46+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -5469,16 +5469,20 @@ msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%sAttention : %s, ligne %d : section inconnue (\"%s\")"
#, c-format
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sAttention : %s, ligne %d : version de configuration invalide : %s"
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
+"%sErreur : %s, linge %d : version de configuration invalide : \"%s\" => le "
+"reste du fichier est IGNORÉ, les options par défaut sont utilisées"
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
-"%sAttention : %s, la version lue (%d) est plus récente que la version "
-"supportée (%d), les options peuvent être cassées !"
+"%sErreur : %s, la version lue (%d) est plus récente que la version supportée "
+"(%d) => le reste du fichier est IGNORÉ, les options par défaut sont utilisées"
#, c-format
msgid "%sWarning: %s, line %d: option outside section: %s"
diff --git a/po/hu.po b/po/hu.po
index c21bf95dd..e92e5f465 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-05-01 20:23+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: hu\n"
@@ -3990,14 +3990,16 @@ msgstr "%s %s, %d. sor: érvénytelen szintaxis, hiányzó \"]\"\n"
msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%s %s, %d. sor: ismeretlen csoportazonosító (\"%s\")\n"
-#, fuzzy, c-format
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%s %s, %d. sor: érvénytelen opció: \"%s\"\n"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, fuzzy, c-format
@@ -13413,8 +13415,3 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: nem sikerült kapcsolódni a küldőhöz\n"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "üzenet küldése egy felhasználónak vagy szobának"
diff --git a/po/it.po b/po/it.po
index c0fc62b19..697039d30 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-05-01 20:23+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: it\n"
@@ -4708,15 +4708,16 @@ msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr ""
"%sAttenzione: %s, riga %d: identificatore di sezione sconosciuto (\"%s\")"
-#, fuzzy, c-format
-#| msgid "%sWarning: %s, line %d: invalid value for option: %s"
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sAttenzione: %s, riga %d: valore non valido per l'opzione: %s"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, c-format
@@ -14593,8 +14594,3 @@ msgstr "%s%s: timeout per \"%s\" con %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: impossibile connettersi al mittente"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "invia un messaggio ad un nick o a un canale"
diff --git a/po/ja.po b/po/ja.po
index 1f8319250..3032126bf 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-05-01 20:23+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
"translation/ja_JP>\n"
@@ -5314,15 +5314,16 @@ msgstr "%s警告: %s、行 %d: 無効な構文、\"]\" が足りません"
msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%s警告: %s、行 %d: セクションインジケータ (\"%s\") は未定義"
-#, fuzzy, c-format
-#| msgid "%sWarning: %s, line %d: invalid value for option: %s"
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%s警告: %s、行 %d: オプションに対する無効な値: %s"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, c-format
@@ -16045,8 +16046,3 @@ msgstr "%s%s: \"%s\" のタイムアウト %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: 接続できません: 未定義のエラー (%d)"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "ニックネームかチャンネルにメッセージを送る"
diff --git a/po/pl.po b/po/pl.po
index 96185e22c..1e4d5209c 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -22,8 +22,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-06-15 22:06+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
"Language: pl\n"
@@ -5751,15 +5751,16 @@ msgstr "%sOstrzeżenie: %s, w linii %d: błędna składnia, brakuje \"]\""
msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%sOstrzeżenie: %s, w linii %d: nieznany identyfikator sekcji (\"%s\")"
-#, fuzzy, c-format
-#| msgid "%sWarning: %s, line %d: invalid value for option: %s"
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sOstrzeżenie: %s, linai %d: nieprawidłowa wartość dla opcji: %s"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, c-format
@@ -17220,8 +17221,3 @@ msgstr "%s%s: przekroczono czas na \"%s\" z %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nie można połączyć: niespodziewany błąd (%d)"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "wysyła wiadomość do użytkownika albo kanału"
diff --git a/po/pt.po b/po/pt.po
index b512b13ca..2b6b83061 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-05-01 20:23+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
"Language: pt\n"
@@ -5345,15 +5345,16 @@ msgstr "%sAviso: %s, linha %d: sintaxe inválida, falta ']'"
msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%sAviso: %s, linha %d: identificador de secção desconhecido (\"%s\")"
-#, fuzzy, c-format
-#| msgid "%sWarning: %s, line %d: invalid value for option: %s"
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sAviso: %s, linha %d: valor inválido na opção: %s"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, c-format
@@ -15813,8 +15814,3 @@ msgstr "%s%s: tempo limite de \"%s\" com %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: não foi possível conectar: erro inesperado (%d)"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "enviar mensagem para um nick ou canal"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 9ee86dfe2..be1a383ce 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-05-01 20:23+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: pt_BR\n"
@@ -4716,15 +4716,16 @@ msgstr "%sAviso: %s, linha %d: sintaxe inválida, faltando \"]\""
msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%sAviso: %s, linha %d: identificador de seção desconhecido (\"%s\")"
-#, fuzzy, c-format
-#| msgid "%sWarning: %s, line %d: invalid value for option: %s"
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sAviso: %s, linha %d: valor \"%s\" inválido para opção"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, c-format
@@ -14016,8 +14017,3 @@ msgstr "%s%s: tempo esgotado para \"%s\" com %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: não foi possível conectar ao remetente"
-
-#, fuzzy
-#~| msgid "send a private message to a nick"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "enviar mensagem privada a um nick"
diff --git a/po/ru.po b/po/ru.po
index 0ed5ed689..e25c5ca74 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-05-01 20:23+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: ru\n"
@@ -4018,14 +4018,16 @@ msgstr "%s %s, строка %d: некорректный синтаксис, н
msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%s %s, строка %d: неизвестный идентификатор секции (\"%s\")\n"
-#, fuzzy, c-format
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%s %s, строка %d: некорректный параметр \"%s\"\n"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, fuzzy, c-format
@@ -13447,8 +13449,3 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: не могу соединиться с отправителем\n"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "отправить сообщение нику или на канал"
diff --git a/po/sr.po b/po/sr.po
index 7ef9773f1..d8953c182 100644
--- a/po/sr.po
+++ b/po/sr.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-06-15 22:06+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: sr\n"
@@ -5334,13 +5334,18 @@ msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%sУпозорење: %s, линија %d: непознати идентификатор одељка („%s”)"
#, c-format
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sУпозорење: %s, линија %d: неважећа конфиг верзија: %s"
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
-#, c-format
+#, fuzzy, c-format
+#| msgid ""
+#| "%sWarning: %s, version read (%d) is newer than supported version (%d), "
+#| "options may be broken!"
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
"%sУпозорење: %s, прочитана верзија (%d) је новија од подржане верзије (%d), "
"опције можда неће радити!"
@@ -16216,8 +16221,3 @@ msgstr "%s%s: тајмаут за „%s” са %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: повезивање није успело: неочекивана грешка (%d)"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "слање поруке надимку или каналу"
diff --git a/po/tr.po b/po/tr.po
index ff185c6db..f1b79eeec 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-06-15 22:05+0200\n"
-"PO-Revision-Date: 2023-06-15 22:07+0200\n"
+"POT-Creation-Date: 2023-06-17 11:44+0200\n"
+"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: tr\n"
@@ -5395,15 +5395,16 @@ msgstr "%sUyarı: %s, %d. satır: Geçersiz sözdizim, \"!\" eksik"
msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr "%sUyarı: %s, %d. satır: Bilinmeyen bölüm tanımlayıcısı (\"%s\")"
-#, fuzzy, c-format
-#| msgid "%sWarning: %s, line %d: invalid value for option: %s"
-msgid "%sWarning: %s, line %d: invalid config version: %s"
-msgstr "%sUyarı: %s, %d. satır: Seçenek için geçersiz değer: %s"
+#, c-format
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
+msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, c-format
@@ -16697,8 +16698,3 @@ msgstr "%s%s: \"%s\" için %s ile zaman aşımı"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: Bağlanılamıyor: Beklenmedik hata (%d)"
-
-#, fuzzy
-#~| msgid "send message to a nick or channel"
-#~ msgid "send action message to a nick or channel"
-#~ msgstr "bir takma ada veya kanala ileti gönder"
diff --git a/po/weechat.pot b/po/weechat.pot
index 520b3bed7..a59fce0f0 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: 2023-06-15 22:05+0200\n"
+"POT-Creation-Date: 2023-06-17 11: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"
@@ -3643,13 +3643,15 @@ msgid "%sWarning: %s, line %d: unknown section identifier (\"%s\")"
msgstr ""
#, c-format
-msgid "%sWarning: %s, line %d: invalid config version: %s"
+msgid ""
+"%sError: %s, line %d: invalid config version: \"%s\" => rest of file is "
+"IGNORED, default options are used"
msgstr ""
#, c-format
msgid ""
-"%sWarning: %s, version read (%d) is newer than supported version (%d), "
-"options may be broken!"
+"%sError: %s, version read (%d) is newer than supported version (%d) => rest "
+"of file is IGNORED, default options are used"
msgstr ""
#, c-format
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c
index 327587855..fc2123ffa 100644
--- a/src/core/wee-config-file.c
+++ b/src/core/wee-config-file.c
@@ -3474,25 +3474,29 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
{
gui_chat_printf (
NULL,
- _("%sWarning: %s, line %d: invalid config "
- "version: %s"),
+ _("%sError: %s, line %d: invalid config "
+ "version: \"%s\" => "
+ "rest of file is IGNORED, default options are used"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
filename, line_number,
line);
+ goto end_file;
}
else
{
config_file->version_read = version;
if (config_file->version_read > config_file->version)
{
- gui_chat_printf (NULL,
- _("%sWarning: %s, version read (%d) is "
- "newer than supported version (%d), "
- "options may be broken!"),
- gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
- filename,
- config_file->version_read,
- config_file->version);
+ gui_chat_printf (
+ NULL,
+ _("%sError: %s, version read (%d) is newer than "
+ "supported version (%d) => "
+ "rest of file is IGNORED, default options are used"),
+ gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
+ filename,
+ config_file->version_read,
+ config_file->version);
+ goto end_file;
}
}
goto end_line;
@@ -3582,6 +3586,7 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
free (value);
}
+end_file:
fclose (config_file->file);
config_file->file = NULL;
free (filename);