builtin function: fix a misleading error message

Issue introduced in 7914c92824 (replaced the functions '--rename'
option with '--copy'., 2010-09-09).
This commit is contained in:
Johannes Altmanninger
2025-09-29 21:08:56 +02:00
parent ab3c932903
commit a7f0138fc7
8 changed files with 21 additions and 14 deletions

View File

@@ -381,9 +381,10 @@ msgstr "%ls: Erwartete exakt zwei Namen (momentanen Funktionsnamen und den Neuen
msgid "%ls: Expected generic | variable | signal | exit | job-id for --handlers-type\n"
msgstr "%ls: Erwartete generic | variable | signal | exit | job-id für --handlers-type\n"
#
#, c-format
msgid "%ls: Function '%ls' already exists. Cannot create copy '%ls'\n"
msgstr "%ls: Funktion '%ls' existiert schon. Konnte Kopie '%ls' nicht anlegen\n"
msgid "%ls: Function '%ls' already exists. Cannot create copy of '%ls'\n"
msgstr ""
#, c-format
msgid "%ls: Function '%ls' does not exist\n"

View File

@@ -379,9 +379,10 @@ msgstr "%ls: Expected exactly two names (current function name, and new function
msgid "%ls: Expected generic | variable | signal | exit | job-id for --handlers-type\n"
msgstr ""
#
#, c-format
msgid "%ls: Function '%ls' already exists. Cannot create copy '%ls'\n"
msgstr "%ls: Function “%ls” already exists. Cannot create copy “%ls”\n"
msgid "%ls: Function '%ls' already exists. Cannot create copy of '%ls'\n"
msgstr ""
#, c-format
msgid "%ls: Function '%ls' does not exist\n"

View File

@@ -480,9 +480,10 @@ msgstr "%ls : Exactement deux noms attendus (noms de fonctions actuel et projet
msgid "%ls: Expected generic | variable | signal | exit | job-id for --handlers-type\n"
msgstr ""
#
#, c-format
msgid "%ls: Function '%ls' already exists. Cannot create copy '%ls'\n"
msgstr "%ls : La fonction '%ls' existe déjà. Impossible de créer la copie '%ls'\n"
msgid "%ls: Function '%ls' already exists. Cannot create copy of '%ls'\n"
msgstr ""
#, c-format
msgid "%ls: Function '%ls' does not exist\n"

View File

@@ -375,9 +375,10 @@ msgstr "%ls: Oczekiwano dokładnie dwóch nazw (nazwa obecnej funkcji i nazwa no
msgid "%ls: Expected generic | variable | signal | exit | job-id for --handlers-type\n"
msgstr ""
#
#, c-format
msgid "%ls: Function '%ls' already exists. Cannot create copy '%ls'\n"
msgstr "%ls: Funkcja '%ls' już istnieje. Nie można utworzyć kopii '%ls'\n"
msgid "%ls: Function '%ls' already exists. Cannot create copy of '%ls'\n"
msgstr ""
#, c-format
msgid "%ls: Function '%ls' does not exist\n"

View File

@@ -380,9 +380,10 @@ msgstr "%ls: Esperava exatamente dois nomes (nome atual da função, e novo nome
msgid "%ls: Expected generic | variable | signal | exit | job-id for --handlers-type\n"
msgstr ""
#
#, c-format
msgid "%ls: Function '%ls' already exists. Cannot create copy '%ls'\n"
msgstr "%ls: Função “%ls” já existe. Não é possivel criar cópia “%ls”\n"
msgid "%ls: Function '%ls' already exists. Cannot create copy of '%ls'\n"
msgstr ""
#, c-format
msgid "%ls: Function '%ls' does not exist\n"

View File

@@ -376,8 +376,9 @@ msgstr ""
msgid "%ls: Expected generic | variable | signal | exit | job-id for --handlers-type\n"
msgstr ""
#
#, c-format
msgid "%ls: Function '%ls' already exists. Cannot create copy '%ls'\n"
msgid "%ls: Function '%ls' already exists. Cannot create copy of '%ls'\n"
msgstr ""
#, c-format

View File

@@ -373,9 +373,10 @@ msgstr "%ls: 预期有两个确切的名称(当前函数名称, 和新函数名
msgid "%ls: Expected generic | variable | signal | exit | job-id for --handlers-type\n"
msgstr "%ls: 对于 --handlers-type 选项,预期 generic | variable | signal | exit | job-id \n"
#
#, c-format
msgid "%ls: Function '%ls' already exists. Cannot create copy '%ls'\n"
msgstr "%ls: 函数 '%ls' 已经存在 . 无法创建复制 '%ls'\n"
msgid "%ls: Function '%ls' already exists. Cannot create copy of '%ls'\n"
msgstr ""
#, c-format
msgid "%ls: Function '%ls' does not exist\n"

View File

@@ -351,7 +351,7 @@ pub fn functions(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) -
if function::exists(new_func, parser) {
streams.err.append(wgettext_fmt!(
"%ls: Function '%ls' already exists. Cannot create copy '%ls'\n",
"%ls: Function '%ls' already exists. Cannot create copy of '%ls'\n",
cmd,
new_func,
current_func