Make function descriptions for dynamically loaded functions translatable

darcs-hash:20060215175925-ac50b-5dc52c615650779771a6c4a3c5d006b72dbca67d.gz
This commit is contained in:
axel 2006-02-16 03:59:25 +10:00
parent 143602e5f6
commit e6e287ae1f
18 changed files with 20 additions and 20 deletions

View file

@ -2,7 +2,7 @@
# The following functions add support for a directory history # The following functions add support for a directory history
# #
function cd -d "Change directory" function cd -d (_ "Change directory")
# Skip history in subshells # Skip history in subshells
if status --is-command-substitution if status --is-command-substitution

View file

@ -5,7 +5,7 @@
# internally by fish. # internally by fish.
# #
function contains -d "Test if a key is contained in a set of values" function contains -d (_ "Test if a key is contained in a set of values")
while set -q argv while set -q argv
switch $argv[1] switch $argv[1]
case '-h' '--h' '--he' '--hel' '--help' case '-h' '--h' '--he' '--hel' '--help'

View file

@ -1,5 +1,5 @@
function dirh -d "Print the current directory history (the back- and fwd- lists)" function dirh -d (_ "Print the current directory history (the back- and fwd- lists)")
# Avoid set comment # Avoid set comment
set -l current (command pwd) set -l current (command pwd)
set -l separator " " set -l separator " "

View file

@ -1,4 +1,4 @@
function dirs -d "Print directory stack" function dirs -d (_ "Print directory stack")
echo -n (command pwd)" " echo -n (command pwd)" "
for i in $dirstack for i in $dirstack
echo -n $i" " echo -n $i" "

View file

@ -7,7 +7,7 @@
# theoretical problem. # theoretical problem.
# #
function help -d "Show help for the fish shell" function help -d (_ "Show help for the fish shell")
# Declare variables to set correct scope # Declare variables to set correct scope
set -l fish_browser set -l fish_browser

View file

@ -1,7 +1,7 @@
# #
# These are very common and useful # These are very common and useful
# #
function la -d "List contents, including hidden fiels in directory using long format" function la -d (_ "List contents of directory, including hidden files in directory using long format")
ls -lah $argv ls -lah $argv
end end

View file

@ -1,7 +1,7 @@
# #
# These are very common and useful # These are very common and useful
# #
function ll -d "List contents of directory using long format" function ll -d (_ "List contents of directory using long format")
ls -lh $argv ls -lh $argv
end end

View file

@ -4,13 +4,13 @@
if ls --version 1>/dev/null 2>/dev/null if ls --version 1>/dev/null 2>/dev/null
# This is GNU ls # This is GNU ls
function ls -d "List contents of directory" function ls -d (_ "List contents of directory")
command ls --color=auto --indicator-style=classify $argv command ls --color=auto --indicator-style=classify $argv
end end
else else
# BSD, OS X and a few more support colors through the -G switch instead # BSD, OS X and a few more support colors through the -G switch instead
if ls / -G 1>/dev/null 2>/dev/null if ls / -G 1>/dev/null 2>/dev/null
function ls -d "List contents of directory" function ls -d (_ "List contents of directory")
command ls -G $argv command ls -G $argv
end end
end end

View file

@ -1,5 +1,5 @@
function nextd -d "Move forward in the directory history" function nextd -d (_ "Move forward in the directory history")
# Parse arguments # Parse arguments
set -l show_hist 0 set -l show_hist 0
set -l times 1 set -l times 1

View file

@ -5,7 +5,7 @@
# #
if not test (uname) = Darwin if not test (uname) = Darwin
function open -d "Open file in default application" function open -d (_ "Open file in default application")
mimedb -l -- $argv mimedb -l -- $argv
end end
end end

View file

@ -1,5 +1,5 @@
function popd -d "Pop dir from stack" function popd -d (_ "Pop dir from stack")
if test $dirstack[1] if test $dirstack[1]
cd $dirstack[1] cd $dirstack[1]
else else

View file

@ -1,5 +1,5 @@
function prevd -d "Move back in the directory history" function prevd -d (_ "Move back in the directory history")
# Parse arguments # Parse arguments
set -l show_hist 0 set -l show_hist 0
set -l times 1 set -l times 1

View file

@ -1,6 +1,6 @@
function psub -d "Read from stdin into a file and output the filename. Remove the file when the command that calles psub exits." function psub -d (_ "Read from stdin into a file and output the filename. Remove the file when the command that called psub exits.")
set -l filename set -l filename
set -l funcname set -l funcname

View file

@ -1,6 +1,6 @@
function pushd -d "Push directory to stack" function pushd -d (_ "Push directory to stack")
# Comment to avoid set completions # Comment to avoid set completions
set -g dirstack (command pwd) $dirstack set -g dirstack (command pwd) $dirstack
cd $argv[1] cd $argv[1]

View file

@ -2,6 +2,6 @@
# Make pwd print out the home directory as a tilde. # Make pwd print out the home directory as a tilde.
# #
function pwd -d "Print working directory" function pwd -d (_ "Print working directory")
command pwd | sed -e 's|/private||' -e "s|^$HOME|~|" command pwd | sed -e 's|/private||' -e "s|^$HOME|~|"
end end

View file

@ -1,5 +1,5 @@
function type -d "Print the type of a command" function type -d (_ "Print the type of a command")
# Initialize # Initialize
set -l status 1 set -l status 1

View file

@ -1,5 +1,5 @@
function __fish_umask_parse -d "Parses a file permission specification as into an octal version" function __fish_umask_parse -d "Internal umask function"
# Test if already a valid octal mask, and pad it with zeros # Test if already a valid octal mask, and pad it with zeros
if echo $argv | grep -E '^(0|)[0-7]{1,3}$' >/dev/null if echo $argv | grep -E '^(0|)[0-7]{1,3}$' >/dev/null
for i in (seq (echo 5-(echo $argv|wc -c)|bc)); set argv 0$argv; end for i in (seq (echo 5-(echo $argv|wc -c)|bc)); set argv 0$argv; end
@ -132,7 +132,7 @@ function __fish_umask_print_symbolic
echo $res|cut -c 2- echo $res|cut -c 2-
end end
function umask -d "Set default file permission mask" function umask -d (_ "Set default file permission mask")
set -l as_command 0 set -l as_command 0
set -l symbolic 0 set -l symbolic 0

View file

@ -4,7 +4,7 @@
# value of a variable interactively. # value of a variable interactively.
# #
function vared -d "Edit variable value" function vared -d (_ "Edit variable value")
if test (count $argv) = 1 if test (count $argv) = 1
switch $argv switch $argv