From 6499d77e1deabad84ad87c91fd20b4adfca8f52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 9 Jun 2024 10:06:10 +0200 Subject: [PATCH] alias: add options `addreplace` and `addreplacecompletion` in command `/alias` (issue #2095) The commands `/alias add` and `/alias addcompletion` now return an error if the alias already exists. --- CHANGELOG.md | 1 + po/cs.po | 55 ++++++++------ po/de.po | 70 ++++++++++++------ po/es.po | 55 ++++++++------ po/fr.po | 66 ++++++++++------- po/hu.po | 49 ++++++++----- po/it.po | 55 ++++++++------ po/ja.po | 57 +++++++++------ po/pl.po | 62 +++++++++++----- po/pt.po | 57 +++++++++------ po/pt_BR.po | 55 ++++++++------ po/ru.po | 49 ++++++++----- po/sr.po | 63 +++++++++++----- po/tr.po | 57 +++++++++------ po/weechat.pot | 43 +++++++---- src/plugins/alias/alias-command.c | 116 +++++++++++++++++++++++------- 16 files changed, 605 insertions(+), 305 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b4c1b298..50cdba2c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changed +- **breaking:** alias: display an error with `/alias add` or `/alias addcompletion` when the alias already exists, add options `addreplace` and `addreplacecompletion` in command `/alias` ([#2095](https://github.com/weechat/weechat/issues/2095)) - relay: enable websocket extension "permessage-deflate" with "api" relay only ([#1549](https://github.com/weechat/weechat/issues/1549)) ### Added diff --git a/po/cs.po b/po/cs.po index 882f25e3e..58634e9c7 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-06-09 09:07+0200\n" +"POT-Creation-Date: 2024-06-09 10:04+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -6429,8 +6429,14 @@ msgstr "%s%s: nekorektní znaková sada: \"%s\"" msgid "%s%s: error creating alias \"%s\" => \"%s\"" msgstr "%s%s: chyba vytváření aliasu \"%s\" => \"%s\"" -#, c-format -msgid "Alias \"%s\" => \"%s\" created" +#, fuzzy, c-format +#| msgid "Alias \"%s\" => \"%s\" created" +msgid "Alias updated: \"%s\" => \"%s\"" +msgstr "Alias \"%s\" => \"%s\" vytvořen" + +#, fuzzy, c-format +#| msgid "Alias \"%s\" => \"%s\" created" +msgid "Alias created: \"%s\" => \"%s\"" msgstr "Alias \"%s\" => \"%s\" vytvořen" #, c-format @@ -6450,6 +6456,10 @@ msgstr "Žádný alias odpovídající \"%s\" nenalezen" msgid "No alias defined" msgstr "Žádné aliasy nejsou definovány" +#, fuzzy, c-format +msgid "%sAlias \"%s\" already exists" +msgstr "%s%s: vzorec přesměrování \"%s\" již existuje" + #, c-format msgid "Alias \"%s\" removed" msgstr "Alias \"%s\" odebrán" @@ -6458,10 +6468,6 @@ msgstr "Alias \"%s\" odebrán" msgid "%sAlias \"%s\" not found" msgstr "%sAlias \"%s\" nenalezen" -#, fuzzy, c-format -msgid "%sAlias \"%s\" already exists" -msgstr "%s%s: vzorec přesměrování \"%s\" již existuje" - #, fuzzy, c-format #| msgid "Layout \"%s\" has been renamed to \"%s\"" msgid "Alias \"%s\" has been renamed to \"%s\"" @@ -6477,9 +6483,10 @@ msgstr "vypíše, přídá nebo odebere IRC servery" #| "list || add
[ []] || " #| "del |-all || set