1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

core: display a message when a configuration file is updated to a newer version

This commit is contained in:
Sébastien Helleu
2023-09-11 09:53:17 +02:00
parent 71dfbdc419
commit 82372115ae
16 changed files with 135 additions and 115 deletions
+1
View File
@@ -15,6 +15,7 @@ For a list of important changes that require manual actions, please look at rele
New features::
* core: display a message when a configuration file is updated to a newer version
* core: add completion "eval_variables", used in completion of `/eval`
* core: add command `/sys` to show resource limits/usage and suspend WeeChat process, add key kbd:[Ctrl+z] to suspend WeeChat (issue #985)
* core: ignore key bindings with empty command
+7 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4544,6 +4544,12 @@ msgstr "%sChyba: nemohu vytvořit soubor \"%s\""
msgid "%sError writing configuration file \"%s\""
msgstr "%sChyba při zápisu konfiguračního souboru \"%s\""
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "%sVAROVÁNÍ: selhalo čtení konfiguračního souboru \"%s\" (%s)"
+13 -98
View File
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-11 08:41+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -5738,6 +5738,12 @@ msgid "%sError writing configuration file \"%s\""
msgstr ""
"%sEs ist ein Fehler beim Speichern der Konfigurationsdatei \"%s\" aufgetreten"
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "%sWARNUNG: Konfigurationsdatei \"%s\" konnte nicht geladen werden (%s)"
@@ -6825,87 +6831,6 @@ msgstr ""
msgid "bar item with list of buffers"
msgstr "Bar-Item mit der Liste von Buffern"
#| msgid ""
#| " enable: enable buflist\n"
#| "disable: disable buflist\n"
#| " toggle: toggle buflist\n"
#| " bar: add the \"buflist\" bar\n"
#| "refresh: force the refresh of the bar items (buflist, buflist2 and "
#| "buflist3)\n"
#| "\n"
#| "The lines with buffers are displayed using string evaluation (see /help "
#| "eval for the format), with these options:\n"
#| " - buflist.look.display_conditions: conditions to display a buffer in "
#| "the list\n"
#| " - buflist.format.buffer: format for a buffer which is not current "
#| "buffer\n"
#| " - buflist.format.buffer_current: format for the current buffer\n"
#| "\n"
#| "The following variables can be used in these options:\n"
#| " - bar item data (see hdata \"bar_item\" in API doc for a complete "
#| "list), for example:\n"
#| " - ${bar_item.name}\n"
#| " - window data, where the bar item is displayed (there's no window in "
#| "root bars, see hdata \"window\" in API doc for a complete list), for "
#| "example:\n"
#| " - ${window.number}\n"
#| " - ${window.buffer.full_name}\n"
#| " - buffer data (see hdata \"buffer\" in API doc for a complete list), "
#| "for example:\n"
#| " - ${buffer.number}\n"
#| " - ${buffer.name}\n"
#| " - ${buffer.full_name}\n"
#| " - ${buffer.short_name}\n"
#| " - ${buffer.nicklist_nicks_count}\n"
#| " - irc_server: IRC server data, defined only on an IRC buffer (see hdata "
#| "\"irc_server\" in API doc)\n"
#| " - irc_channel: IRC channel data, defined only on an IRC channel buffer "
#| "(see hdata \"irc_channel\" in API doc)\n"
#| " - extra variables added by buflist for convenience:\n"
#| " - ${format_buffer}: the evaluated value of option buflist.format."
#| "buffer; this can be used in option buflist.format.buffer_current to just "
#| "change the background color for example\n"
#| " - ${current_buffer}: a boolean (\"0\" or \"1\"), \"1\" if this is the "
#| "current buffer; it can be used in a condition: ${if:"
#| "${current_buffer}?...:...}\n"
#| " - ${merged}: a boolean (\"0\" or \"1\"), \"1\" if the buffer is "
#| "merged with at least another buffer; it can be used in a condition: ${if:"
#| "${merged}?...:...}\n"
#| " - ${format_number}: indented number with separator (evaluation of "
#| "option buflist.format.number)\n"
#| " - ${number}: indented number, for example \" 1\" if there are between "
#| "10 and 99 buffers; for merged buffers, this variable is set with number "
#| "for the first buffer and spaces for the next buffers with same number\n"
#| " - ${number2}: indented number, for example \" 1\" if there are "
#| "between 10 and 99 buffers\n"
#| " - ${number_displayed}: \"1\" if the number is displayed, otherwise "
#| "\"0\"\n"
#| " - ${indent}: indentation for name (channel, private and list buffers "
#| "are indented) (evaluation of option buflist.format.indent)\n"
#| " - ${format_nick_prefix}: colored nick prefix for a channel "
#| "(evaluation of option buflist.format.nick_prefix)\n"
#| " - ${color_nick_prefix}: color of nick prefix for a channel (set only "
#| "if the option buflist.look.nick_prefix is enabled)\n"
#| " - ${nick_prefix}: nick prefix for a channel (set only if the option "
#| "buflist.look.nick_prefix is enabled)\n"
#| " - ${format_name}: formatted name (evaluation of option buflist.format."
#| "name)\n"
#| " - ${name}: the short name (if set), with a fallback on the name\n"
#| " - ${color_hotlist}: the color depending on the highest hotlist level "
#| "for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx "
#| "is the level)\n"
#| " - ${format_hotlist}: the formatted hotlist (evaluation of option "
#| "buflist.format.hotlist)\n"
#| " - ${hotlist}: the raw hotlist\n"
#| " - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or "
#| "\"highlight\"\n"
#| " - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = "
#| "private, 3 = highlight\n"
#| " - ${format_lag}: the lag for an IRC server buffer, empty if there's "
#| "no lag (evaluation of option buflist.format.lag)\n"
#| " - ${format_tls_version}: indicator of TLS version for a server "
#| "buffer, empty for channels (evaluation of option buflist.format."
#| "tls_version)"
msgid ""
" enable: enable buflist\n"
"disable: disable buflist\n"
@@ -6989,9 +6914,8 @@ msgstr ""
"disable: buflist deaktivieren\n"
" toggle: buflist umschalten\n"
" bar: fügt eine \"buflist\" Bar hinzu\n"
"refresh: erzwingt eine Aktualisierung der Bar-Item (buflist, buflist2,"
" buflist3, buflist4 und "
"buflist5)\n"
"refresh: erzwingt eine Aktualisierung der Bar-Item (buflist, buflist2, "
"buflist3, buflist4 und buflist5)\n"
"\n"
"Jede Zeile die einen Buffer anzeigt, wird mittels Zeichenketten-Evaluation "
"dargestellt (siehe /help eval für das Format), dazu werden folgende Optionen "
@@ -7208,13 +7132,6 @@ msgstr ""
"\"buflist5\"; Seien Sie vorsichtig, wenn Sie mehr als ein Bar-Item "
"verwenden, wird die Anzeige der Bufferliste verlangsamt"
#| msgid ""
#| "format of each line with a buffer (note: content is evaluated, see /help "
#| "buflist); example: standard format for bar item \"buflist\" and only the "
#| "buffer number between square brackets for other bar items (\"buflist2\" "
#| "and \"buflist3\"): \"${if:${bar_item.name}==buflist?"
#| "${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}:"
#| "[${number}]}\""
msgid ""
"format of each line with a buffer (note: content is evaluated, see /help "
"buflist); example: standard format for bar item \"buflist\" and only the "
@@ -7226,8 +7143,8 @@ msgstr ""
"Format für eine Zeile mit einem Buffer (Hinweis: Inhalt wird evaluiert, "
"siehe /help buflist); Beispiel: Standardformat für Bar-Item \"buflist\" "
"anwenden und nur die Buffernummer in eckigen Klammern für die anderen Bar-"
"Items (\"buflist2 bis \"buflist5\") anzeigen:"
" \"${if:${bar_item.name}==buflist?"
"Items (\"buflist2 bis \"buflist5\") anzeigen: \"${if:${bar_item.name}"
"==buflist?"
"${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}:"
"[${number}]}\""
@@ -16623,8 +16540,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat"
msgid ""
"list [-o|-ol|-i|-il] || 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 "
@@ -16633,8 +16549,7 @@ msgid ""
msgstr ""
"list [-o|-ol|-i|-il] || 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 "
+7 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5175,6 +5175,12 @@ msgstr "%sError: no es posible crear el archivo \"%s\""
msgid "%sError writing configuration file \"%s\""
msgstr "%sError al escribir el archivo de configuración \"%s\""
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, fuzzy, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "Guardando archivo de configuración %s %s"
+10 -2
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"PO-Revision-Date: 2023-09-11 07:53+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-11 09:52+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -5610,6 +5610,14 @@ msgstr "%sImpossible de créer le fichier \"%s\""
msgid "%sError writing configuration file \"%s\""
msgstr "%sErreur d'écriture du fichier de configuration \"%s\""
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
"%sImportant : le fichier %s a été mis à jour de la version %d à %d, il n'est "
"plus compatible et ne peut plus être chargé avec toute version plus ancienne"
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "%sATTENTION : échec de lecture du fichier de configuration \"%s\" (%s)"
+7 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4085,6 +4085,12 @@ msgstr "%s nem sikerült a \"%s\" fájlt létrehozni\n"
msgid "%sError writing configuration file \"%s\""
msgstr "szerver konfigurációs fájljának újraolvastatása"
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, fuzzy, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "beállítások mentése kilépéskor"
+7 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4811,6 +4811,12 @@ msgstr "%sErrore: impossibile creare il file \"%s\""
msgid "%sError writing configuration file \"%s\""
msgstr "%sErrore: impossibile scrivere sul file di configurazione \"%s\""
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, fuzzy, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "Salvataggio del file di configurazione %s %s"
+7 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -5457,6 +5457,12 @@ msgstr "%sエラー: ファイル \"%s\" の作成に失敗"
msgid "%sError writing configuration file \"%s\""
msgstr "%s設定ファイル \"%s\" の書き込み中にエラー"
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "%s警告: 設定ファイル \"%s\" (%s) の読み込みに失敗"
+7 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -6023,6 +6023,12 @@ msgstr "%sNie można utworzyć pliku \"%s\""
msgid "%sError writing configuration file \"%s\""
msgstr "%sBłąd podczas zapisu pliku konfiguracyjnego \"%s\""
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "%sUWAGA: nie powiódł się odczyt pliku konfiguracyjnego \"%s\" (%s)"
+7 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -5446,6 +5446,12 @@ msgstr "%sErro: não é possível criar o ficheiro \"%s\""
msgid "%sError writing configuration file \"%s\""
msgstr "%sErro ao escrever o ficheiro de configuração \"%s\""
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "%sAVISO: falha ao ler o ficheiro de configuração \"%s\" (%s)"
+7 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4820,6 +4820,12 @@ msgstr "%sErro: não foi possível criar arquivo \"%s\""
msgid "%sError writing configuration file \"%s\""
msgstr "%sErro escrevendo arquivo de configuração \"%s\""
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, fuzzy, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "Escrevendo arquivo de configurações %s %s"
+7 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4115,6 +4115,12 @@ msgstr "%s не могу создать файл \"%s\"\n"
msgid "%sError writing configuration file \"%s\""
msgstr "перезагрузить конфигурационный файл сервера"
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, fuzzy, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "сохранять конфигурационный файл при выходе"
+7 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5469,6 +5469,12 @@ msgstr "%sНе може да се креира фајл „%s”"
msgid "%sError writing configuration file \"%s\""
msgstr "%sГрешка при уписивању конфигурационог фајла „%s”"
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "%sУПОЗОРЕЊЕ: није могао да се прочита конфигурациони фајл „%s” (%s)"
+7 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5589,6 +5589,12 @@ msgstr "%s\"%s\" dosyası oluşturulamıyor"
msgid "%sError writing configuration file \"%s\""
msgstr "%s\"%s\" yapılandırma dosyası yazılırken hata"
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr "%sUYARI: \"%s\" yapılandırma dosyası okunamadı (%s)"
+7 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-09-11 07:52+0200\n"
"POT-Creation-Date: 2023-09-11 09:52+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"
@@ -3735,6 +3735,12 @@ msgstr ""
msgid "%sError writing configuration file \"%s\""
msgstr ""
#, c-format
msgid ""
"%sImportant: file %s has been updated from version %d to %d, it is not "
"compatible and can not be loaded any more with any older version"
msgstr ""
#, c-format
msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgstr ""
+27 -3
View File
@@ -3273,6 +3273,10 @@ config_file_parse_version (const char *version)
*
* Section can be updated only if option and value are NULL (ie if we are
* reading a section line like "[section]").
*
* Integer warning_update_displayed is set to 1 if a warning is displayed,
* when the file is updated to a newer version (then it's not compatible any
* more with previous versions).
*/
void
@@ -3282,7 +3286,8 @@ config_file_update_data_read (struct t_config_file *config_file,
const char *value,
char **ret_section,
char **ret_option,
char **ret_value)
char **ret_value,
int *warning_update_displayed)
{
struct t_hashtable *data_read, *hashtable;
const char *ptr_section, *ptr_option, *ptr_value;
@@ -3292,6 +3297,21 @@ config_file_update_data_read (struct t_config_file *config_file,
if (config_file->version_read >= config_file->version)
return;
if (!*warning_update_displayed
&& (config_file->version_read < config_file->version))
{
gui_chat_printf (
NULL,
_("%sImportant: file %s has been updated from version %d to %d, "
"it is not compatible and can not be loaded any more with any "
"older version"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
config_file->filename,
config_file->version_read,
config_file->version);
*warning_update_displayed = 1;
}
/* do nothing if there's no update callback */
if (!config_file->callback_update)
return;
@@ -3389,6 +3409,7 @@ int
config_file_read_internal (struct t_config_file *config_file, int reload)
{
int filename_length, line_number, rc, length, version;
int warning_update_displayed;
char *filename, *section, *option, *value;
struct t_config_section *ptr_section;
struct t_config_option *ptr_option;
@@ -3398,6 +3419,7 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
return WEECHAT_CONFIG_READ_FILE_NOT_FOUND;
config_file->version_read = 1;
warning_update_displayed = 0;
/* build filename */
filename_length = strlen (weechat_config_dir) + strlen (DIR_SEPARATOR) +
@@ -3498,7 +3520,8 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
{
config_file_update_data_read (config_file,
section, NULL, NULL,
&section, NULL, NULL);
&section, NULL, NULL,
&warning_update_displayed);
ptr_section = config_file_search_section (config_file,
section);
if (!ptr_section)
@@ -3616,7 +3639,8 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
config_file_update_data_read (config_file,
ptr_section->name, option, value,
NULL, &option, &value);
NULL, &option, &value,
&warning_update_displayed);
/* option has been ignored by the update callback? */
if (!option || !option[0])