fish-shell/share/functions/_.fish
liljencrantz 819c20e1d8 Fix bug causing some fish strings not to be translated
darcs-hash:20070923211111-75c98-3bac272b81c4af4e18968a532987d9a7be1c273a.gz
2007-09-24 07:11:11 +10:00

16 lines
309 B
Fish

#
# Alias for gettext (or a fallback if gettext isn't installed)
#
set -l path (which gettext ^/dev/null)
if test -x (echo $path)
function _ --description "Alias for the gettext command"
gettext fish $argv
end
else
function _ --description "Alias for the gettext command"
printf "%s" $argv
end
end