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