Deduplicate and fix broken translations

Co-authored-by: Johannes Altmanninger <aclopte@gmail.com>
This commit is contained in:
Juho Kuisma
2025-11-16 11:07:46 +01:00
committed by Johannes Altmanninger
parent e77b1c9744
commit 302c33e377
9 changed files with 15 additions and 39 deletions

View File

@@ -2325,10 +2325,7 @@ msgstr ""
msgid "foo=bar variable overrides"
msgstr ""
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr ""
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
msgid "funced: The value for $%s '%s' could not be used because the command '%s' could not be found"
msgstr ""
msgid "help: %s is not a valid command: %s\\n"

View File

@@ -2323,10 +2323,7 @@ msgstr ""
msgid "foo=bar variable overrides"
msgstr ""
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr ""
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
msgid "funced: The value for $%s '%s' could not be used because the command '%s' could not be found"
msgstr ""
msgid "help: %s is not a valid command: %s\\n"

View File

@@ -2454,10 +2454,7 @@ msgstr ""
msgid "foo=bar variable overrides"
msgstr ""
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr ""
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
msgid "funced: The value for $%s '%s' could not be used because the command '%s' could not be found"
msgstr ""
msgid "help: %s is not a valid command: %s\\n"

View File

@@ -2319,10 +2319,7 @@ msgstr ""
msgid "foo=bar variable overrides"
msgstr ""
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr ""
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
msgid "funced: The value for $%s '%s' could not be used because the command '%s' could not be found"
msgstr ""
msgid "help: %s is not a valid command: %s\\n"

View File

@@ -2324,10 +2324,7 @@ msgstr ""
msgid "foo=bar variable overrides"
msgstr ""
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr ""
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
msgid "funced: The value for $%s '%s' could not be used because the command '%s' could not be found"
msgstr ""
msgid "help: %s is not a valid command: %s\\n"

View File

@@ -2320,10 +2320,7 @@ msgstr ""
msgid "foo=bar variable overrides"
msgstr ""
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr ""
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
msgid "funced: The value for $%s '%s' could not be used because the command '%s' could not be found"
msgstr ""
msgid "help: %s is not a valid command: %s\\n"

View File

@@ -2352,11 +2352,8 @@ msgstr "fish: 未知的命令:%s\\n"
msgid "foo=bar variable overrides"
msgstr "foo=bar 变量覆盖"
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr "funced: 无法使用 $EDITOR '$editor' 的值,因为找不到命令 '$editor[1]'"
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr "funced: 无法使用 $VISUAL '$editor' 的值,因为找不到命令 '$editor[1]'"
msgid "funced: The value for $%s '%s' could not be used because the command '%s' could not be found"
msgstr "funced: 无法使用 $%s '%s' 的值,因为找不到命令 '%s'"
msgid "help: %s is not a valid command: %s\\n"
msgstr "help: %s 不是有效的命令:%s\\n"

View File

@@ -2327,11 +2327,8 @@ msgstr "fish未知命令%s\\n"
msgid "foo=bar variable overrides"
msgstr "foo=bar 變數覆寫"
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr "funced$EDITOR 的值「$editor」無法使用找不到命令「$editor[1]」"
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
msgstr "funced$VISUAL 的值「$editor」無法使用找不到命令「$editor[1]」"
msgid "funced: The value for $%s '%s' could not be used because the command '%s' could not be found"
msgstr ""
msgid "help: %s is not a valid command: %s\\n"
msgstr "help%s 不是有效的命令:%s\\n"

View File

@@ -39,11 +39,11 @@ function funced --description 'Edit function definition'
end
if not type -q -f "$editor[1]"
if set -q VISUAL
echo (_ "funced: The value for \$VISUAL '$editor' could not be used because the command '$editor[1]' could not be found") >&2
else
echo (_ "funced: The value for \$EDITOR '$editor' could not be used because the command '$editor[1]' could not be found") >&2
end
printf >&2 \
(_ "funced: The value for \$%s '%s' could not be used because the command '%s' could not be found") \
(set -q VISUAL && echo VISUAL || echo EDITOR) \
"$editor" \
$editor[1]
set editor fish
end