From 666032abbdcf2ca4e9cd5c6fbebed7f946f1374d Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 17 Mar 2022 18:14:36 +0100 Subject: [PATCH] Translate command-not-found message I have no idea why this function is defined twice. --- share/config.fish | 2 +- share/functions/fish_command_not_found.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/config.fish b/share/config.fish index c0b663065..f811b3aa0 100644 --- a/share/config.fish +++ b/share/config.fish @@ -12,7 +12,7 @@ or set -g __fish_added_user_paths # Create the default command_not_found handler # function __fish_default_command_not_found_handler - printf "fish: Unknown command: %s\n" (string escape -- $argv[1]) >&2 + printf (_ "fish: Unknown command: %s\n") (string escape -- $argv[1]) >&2 for file in $PATH/$argv[1] if test -e $file -a ! -x $file printf (_ "fish: %s exists but isn't executable\n") (string escape -- $file) >&2 diff --git a/share/functions/fish_command_not_found.fish b/share/functions/fish_command_not_found.fish index d6fd6cdc6..d5f5b3f73 100644 --- a/share/functions/fish_command_not_found.fish +++ b/share/functions/fish_command_not_found.fish @@ -12,7 +12,7 @@ if test -r /etc/os-release end function __fish_default_command_not_found_handler - printf "fish: Unknown command: %s\n" (string escape -- $argv[1]) >&2 + printf (_ "fish: Unknown command: %s\n") (string escape -- $argv[1]) >&2 for file in $PATH/$argv[1] if test -e $file -a ! -x $file printf (_ "fish: %s exists but isn't executable\n") (string escape -- $file) >&2