From 9d98dee7d924696ee589b1ccc85170f3c842caad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 6 Jul 2024 11:57:26 +0200 Subject: [PATCH] spell: improve error displayed when a word can not be added to the dictionary (closes #2144) --- CHANGELOG.md | 1 + po/cs.po | 17 ++++- po/de.po | 123 ++++++++++++++++-------------- po/es.po | 17 ++++- po/fr.po | 16 +++- po/hu.po | 16 +++- po/it.po | 17 ++++- po/ja.po | 17 ++++- po/pl.po | 17 ++++- po/pt.po | 17 ++++- po/pt_BR.po | 16 +++- po/ru.po | 16 +++- po/sr.po | 17 ++++- po/tr.po | 17 ++++- po/weechat.pot | 12 ++- src/plugins/spell/spell-command.c | 37 +++++---- 16 files changed, 260 insertions(+), 113 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a77cbed2e..7b1fb1f3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ - relay/api: fix read of one buffer line - relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters ([#1549](https://github.com/weechat/weechat/issues/1549)) - relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure ([#1549](https://github.com/weechat/weechat/issues/1549)) +- spell: improve error displayed when a word can not be added to the dictionary ([#2144](https://github.com/weechat/weechat/issues/2144)) - core: fix completion of command `/item refresh` - core: fix detection of libgcrypt ≥ 1.11 ([debian #1071960](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071960)) - core, relay: fix include directory of libcjson and libzstd diff --git a/po/cs.po b/po/cs.po index 82b1a454a..575371e3a 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-07-01 21:19+0200\n" +"POT-Creation-Date: 2024-07-06 11:05+0200\n" "PO-Revision-Date: 2024-06-11 07:49+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -15660,6 +15660,16 @@ msgstr "%s: \"%s\" odebrán" msgid "%s: error: dictionary \"%s\" is not available on your system" msgstr "%s: chyba: slovník \"%s\" není ve vašem systému dostupný" +#, fuzzy, c-format +#| msgid "%s%s: unable to create new interpreter" +msgid "%s%s: unable to create new speller" +msgstr "%s%s: nemohu vytvořit nový interpretr" + +#, fuzzy, c-format +#| msgid "%s%s: ignore not found" +msgid "%s%s: no speller found" +msgstr "%s%s: ignorování nenalezeno" + #, c-format msgid "%s%s: no dictionary on this buffer for adding word" msgstr "%s%s: není žádný slovník pro přidání slova pro tento buffer" @@ -15675,8 +15685,9 @@ msgstr "" msgid "%s: word \"%s\" added to personal dictionary" msgstr "%s: slovo \"%s\" přidáno do soukromého slovníku" -#, c-format -msgid "%s%s: failed to add word to personal dictionary" +#, fuzzy, c-format +#| msgid "%s%s: failed to add word to personal dictionary" +msgid "%s%s: failed to add word to personal dictionary: %s" msgstr "%s%s: selhalo přidání slova do vlastního slovníku" #. TRANSLATORS: second "%s" is "aspell" or "enchant" diff --git a/po/de.po b/po/de.po index 04f2a4a85..92dd71d5a 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-07-01 21:19+0200\n" +"POT-Creation-Date: 2024-07-06 11:05+0200\n" "PO-Revision-Date: 2024-07-04 11:23+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -2129,11 +2129,11 @@ msgstr "" "undOperatoren (+, -, *, /, //, %, **)" msgid "" -" - ${random:min,max}: a random integer number between \"min\" and " -"\"max\" (inclusive)" +" - ${random:min,max}: a random integer number between \"min\" and \"max\" " +"(inclusive)" msgstr "" -" - ${random:min,max}: eine zufällige ganze Zahl zwischen \"min\" " -"und\"max\" (einschließlich)" +" - ${random:min,max}: eine zufällige ganze Zahl zwischen \"min\" und\"max\" " +"(einschließlich)" msgid " - ${translate:string}: the translated string" msgstr " - ${translate:string}: die übersetzte Zeichenkette" @@ -2827,10 +2827,6 @@ msgid "manage custom bar items" msgstr "Verwalten von benutzerdefinierten Bar-Items" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -#| msgid "" -#| "list || add|addreplace \"\" \"\" || rename " -#| " || refresh [...] || recreate || del " -#| "| [|...]" msgid "" "list || add|addreplace \"\" \"\" || rename " " || refresh | [|...] || recreate " @@ -3077,8 +3073,8 @@ msgid "" " raw[chat(xxx)]: chat area for buffer with name \"xxx\" (full name " "including plugin)" msgstr "" -" raw[chat(xxx)]: Chatbereich für einen Buffer mit dem Namen " -"\"xxx\" (vollständiger Name, mit Erweiterung)" +" raw[chat(xxx)]: Chatbereich für einen Buffer mit dem Namen \"xxx\" " +"(vollständiger Name, mit Erweiterung)" msgid " raw[bar(*)]: any bar" msgstr " raw[bar(*)]: beliebige Bar" @@ -5028,8 +5024,8 @@ msgstr "" "\"-yes\" ausgeführt werden (siehe /help quit)" msgid "" -"if set, /upgrade command must be confirmed with extra argument \"-" -"yes\" (see /help upgrade)" +"if set, /upgrade command must be confirmed with extra argument \"-yes\" " +"(see /help upgrade)" msgstr "" "ist diese Einstellung aktiviert, muss der \"/upgrade\" Befehl mit dem " "Argument \"-yes\" ausgeführt werden (siehe /help upgrade)" @@ -5085,10 +5081,10 @@ msgid "" "weechat.color.emphasized* are used" msgstr "" "Attribute um Textpassagen hervorzuheben: Das setzen von ein- oder mehreren " -"Attributen ist möglich (\"%\" für blinkenden Text, \".\" zum " -"\"dimmen\" (halbe Helligkeit),\"*\" für fett, \"!\" für invertiert, \"/\" " -"für kursiv, \"_\" für unterstrichen); wenn die Zeichenkette leer ist, werden " -"die Farben genutzt die durch weechat.color.emphasized* definiert sind" +"Attributen ist möglich (\"%\" für blinkenden Text, \".\" zum \"dimmen\" " +"(halbe Helligkeit),\"*\" für fett, \"!\" für invertiert, \"/\" für kursiv, " +"\"_\" für unterstrichen); wenn die Zeichenkette leer ist, werden die Farben " +"genutzt die durch weechat.color.emphasized* definiert sind" msgid "" "comma separated list of words to highlight; case insensitive comparison (use " @@ -7061,24 +7057,24 @@ msgstr "" "Bedingungen um eine Infobar anzuzeigen. Eine einfache Bedingung: \"active\", " "\"inactive\", \"nicklist\" (Fenster muss aktiv/inaktiv sein oder der Buffer " "enthält eine Benutzerliste), oder man nutzt einen Ausdruck mit Bedingungen " -"(siehe /help eval). Beispiele: \"${nicklist} && ${info:term_width} > " -"100\" (lokale Variablen für den Ausdruck sind ${active}, ${inactive} und " +"(siehe /help eval). Beispiele: \"${nicklist} && ${info:term_width} > 100\" " +"(lokale Variablen für den Ausdruck sind ${active}, ${inactive} und " "${nicklist})" msgid "bar position (bottom, top, left, right)" msgstr "Position der Infobar (unten, oben, links, rechts)" msgid "" -"bar filling direction (\"horizontal\" (from left to right) or " -"\"vertical\" (from top to bottom)) when bar position is top or bottom" +"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" " +"(from top to bottom)) when bar position is top or bottom" msgstr "" "Darstellung innerhalb der Infobar, falls die Infobar oben/unten angezeigt " "wird (\"horizontal\" (von links nach rechts) oder \"vertikal\" (von oben " "nach unten))" msgid "" -"bar filling direction (\"horizontal\" (from left to right) or " -"\"vertical\" (from top to bottom)) when bar position is left or right" +"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" " +"(from top to bottom)) when bar position is left or right" msgstr "" "Darstellung innerhalb der Infobar, falls die Infobar links/rechts angezeigt " "wird (\"horizontal\" (von links nach rechts) oder \"vertikal\" (von oben " @@ -7118,9 +7114,9 @@ msgid "separator line between bar and other bars/windows" msgstr "Trennzeichen zwischen verschieden Infobars und Fenstern" msgid "" -"items of bar, they can be separated by comma (space between items) or \"+" -"\" (glued items); special syntax \"@buffer:item\" can be used to force " -"buffer used when displaying the bar item" +"items of bar, they can be separated by comma (space between items) or \"+\" " +"(glued items); special syntax \"@buffer:item\" can be used to force buffer " +"used when displaying the bar item" msgstr "" "Items einer Bar können entweder durch Kommata (\",\") voneinander getrennt " "(setzt ein Leerzeichen zwischen die Items), oder durch ein \"+\" Zeichen " @@ -8878,8 +8874,8 @@ msgid " - ${description}: option description (translated)" msgstr " - ${description}: Beschreibung der Option (übersetzt)" msgid "" -" - ${description2}: option description (translated), \"(no " -"description)\" (translated) if there's no description" +" - ${description2}: option description (translated), \"(no description)\" " +"(translated) if there's no description" msgstr "" " - ${description2}: Beschreibung der Option (übersetzt), \"(keine " "Beschreibung)\" (übersetzt) falls keine Beschreibung vorhanden" @@ -9570,8 +9566,8 @@ msgstr "" #, c-format msgid "" -"%s%s: if you want to add a standard server, use the command \"/server " -"add\" (see /help server); if you really want to add a temporary server (NOT " +"%s%s: if you want to add a standard server, use the command \"/server add\" " +"(see /help server); if you really want to add a temporary server (NOT " "SAVED), turn on the option irc.look.temporary_servers" msgstr "" "%s%s: falls ein Standardserver erstellt werden soll, muss der Befehl \"/" @@ -12796,8 +12792,8 @@ msgid "" "interval between two checks for notify with IRC command \"whois\" (in " "minutes)" msgstr "" -"Intervall zwischen zwei notify Überprüfungen mit dem IRC Befehl " -"\"whois\" (in Minuten)" +"Intervall zwischen zwei notify Überprüfungen mit dem IRC Befehl \"whois\" " +"(in Minuten)" msgid "" "cause SASL authentication failure when SASL is requested but unavailable on " @@ -15154,19 +15150,19 @@ msgstr "%s%s: Interpreter kann nicht freigeben werden" #, c-format msgid "" -"%s%s: too few arguments received from client %s%s%s for resource " -"\"%s\" (received: %d arguments, expected: at least %d)" +"%s%s: too few arguments received from client %s%s%s for resource \"%s\" " +"(received: %d arguments, expected: at least %d)" msgstr "" "%s%s: Zu wenige Argumente von Client %s%s%s für die Ressource \"%s\" " "erhalten (Empfangen: %d Argumente, mindestens erwartet: %d)" #, c-format msgid "" -"%s%s: too many arguments received from client %s%s%s for resource " -"\"%s\" (received: %d arguments, expected: at most %d)" +"%s%s: too many arguments received from client %s%s%s for resource \"%s\" " +"(received: %d arguments, expected: at most %d)" msgstr "" -"%s%s: Zu viele Argumente von Client erhalten %s%s%s für die Ressource " -"\"%s\" (Empfangen: %d Argumente, höchstens erwartet: %d)" +"%s%s: Zu viele Argumente von Client erhalten %s%s%s für die Ressource \"%s\" " +"(Empfangen: %d Argumente, höchstens erwartet: %d)" #, c-format msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s" @@ -16307,8 +16303,8 @@ msgid "" "%s%s: error: file with TLS certificate/key is not readable: \"%s\" (option " "relay.network.tls_cert_key)" msgstr "" -"%s%s: Fehler: Datei mit TLS Zertifikat/Schlüssel ist nicht lesbar: " -"\"%s\" (Option relay.network.tls_cert_key)" +"%s%s: Fehler: Datei mit TLS Zertifikat/Schlüssel ist nicht lesbar: \"%s\" " +"(Option relay.network.tls_cert_key)" #, c-format msgid "%s%s: unable to initialize priority for TLS" @@ -16452,8 +16448,8 @@ msgstr "" #, c-format msgid "" -"%s%s: too few arguments received from client %s%s%s for command " -"\"%s\" (received: %d arguments, expected: at least %d)" +"%s%s: too few arguments received from client %s%s%s for command \"%s\" " +"(received: %d arguments, expected: at least %d)" msgstr "" "%s%s: Zu wenige Argumente von Client %s%s%s für den Befehl \"%s\" erhalten " "(Empfangen: %d Argumente, mindestens Erwartet: %d)" @@ -17160,6 +17156,16 @@ msgid "%s: error: dictionary \"%s\" is not available on your system" msgstr "" "%s: Fehler: das Wörterbuch \"%s\" ist auf diesem Rechner nicht verfügbar" +#, fuzzy, c-format +#| msgid "%s%s: unable to create new interpreter" +msgid "%s%s: unable to create new speller" +msgstr "%s%s: Neuer Interpreter kann nicht anlegt werden" + +#, fuzzy, c-format +#| msgid "%s%s: ignore not found" +msgid "%s%s: no speller found" +msgstr "%s%s: Ignorierung nicht gefunden" + #, c-format msgid "%s%s: no dictionary on this buffer for adding word" msgstr "" @@ -17178,8 +17184,9 @@ msgstr "" msgid "%s: word \"%s\" added to personal dictionary" msgstr "%s: Das Wort \"%s\" wurde dem persönlichen Wörterbuch hinzugefügt" -#, c-format -msgid "%s%s: failed to add word to personal dictionary" +#, fuzzy, c-format +#| msgid "%s%s: failed to add word to personal dictionary" +msgid "%s%s: failed to add word to personal dictionary: %s" msgstr "%s%s: Es kann kein Wort zum persönlichen Wörterbuch hinzugefügt werden" #. TRANSLATORS: second "%s" is "aspell" or "enchant" @@ -17622,22 +17629,22 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated msgid "" "list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace " -" " -"[\"\" [\"\" [\"\" [\"\" [\"\" [\"\"]]]]]] " -"|| addinput [] || input|output|recreate || set