mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-26 22:21:16 -03:00
The overwhelming majority of localizable messages comes from
completions:
$ ls share/completions/ | wc -l
$ 1048
OTOH functions also contribute a small amount, mostly via their
descriptions (so usually just one per file).
$ ls share/functions/ | wc -l
$ 237
Most of these are private and almost never shown to the user, so it's
not worth bothering translators with them. So:
- Skip private (see the parent commit) and deprecated functions.
- Skip wrapper functions like grep (where the translation seems to
be provided by apropos), and even the English description is not
helpful.
- Assume that most real systems have "seq", "realpath" etc.,
so it's no use providing our own translations for our fallbacks.
- Mark fish's own functions as tier1, and some barely-used functiosn
and completions as tier3, so we can order them that way in
po/*.po. Most translators should only look at tier1 and tier2.
In future we could disable localization for tier3.
See the explanation at the bottom of
tests/checks/message-localization-tier-is-declared.fish
Part of #11833
64 lines
3.1 KiB
Fish
64 lines
3.1 KiB
Fish
# localization: tier3
|
|
function __fish_complete_ftp --argument-names ftp
|
|
# Common across all ftp implementations
|
|
complete -c $ftp -xa "(__fish_print_hostnames)" -d Hostname
|
|
complete -c $ftp -s 4 -d 'Use IPv4 only'
|
|
complete -c $ftp -s 6 -d 'Use IPv6 only'
|
|
complete -c $ftp -s A -d 'Use active mode for data transfers'
|
|
complete -c $ftp -s d -d 'Enable debugging'
|
|
complete -c $ftp -s e -d 'Disable command editing and history support'
|
|
complete -c $ftp -s g -d 'Disable file name globbing'
|
|
complete -c $ftp -s i -d 'Disable interactive prompting during multiple file transfers.'
|
|
complete -c $ftp -s p -d 'Use passive mode for data transfers'
|
|
complete -c $ftp -s t -d 'Enable packet tracing'
|
|
complete -c $ftp -s n -d 'Disable autologin'
|
|
|
|
switch (uname -s)
|
|
case FreeBSD NetBSD OpenBSD
|
|
complete -c $ftp -s o -d "Set output for auto-fetched files"
|
|
complete -c $ftp -s a -d "Anonymous login"
|
|
complete -c $ftp -s P -d 'Set port number' -x
|
|
complete -c $ftp -s r -d 'Time between retry attempts' -x
|
|
complete -c $ftp -s s -d 'Local address to bind to' -xa "(__fish_print_addresses)"
|
|
end
|
|
|
|
switch (uname -s)
|
|
case FreeBSD NetBSD Linux
|
|
complete -c $ftp -s N -d "Specify netrc file" -r
|
|
complete -c $ftp -s v -d 'Enable verbose and progress meter'
|
|
end
|
|
|
|
switch (uname -s)
|
|
case FreeBSD NetBSD
|
|
complete -c $ftp -s f -d "Force cache reload"
|
|
complete -c $ftp -s q -d "Seconds to wait before quitting stalled connection" -x
|
|
complete -c $ftp -s R -d 'Restart all non-proxied auto-fetches'
|
|
complete -c $ftp -s T -d 'Set max transfer rate' -x
|
|
complete -c $ftp -s u -d 'Upload file to URL' -r
|
|
complete -c $ftp -s V -d 'Disable verbose and progress meter'
|
|
end
|
|
|
|
switch (uname -s)
|
|
case NetBSD
|
|
complete -c $ftp -s x -d "Set buffer size" -x
|
|
case OpenBSD
|
|
complete -c $ftp -s N -d "Set command name for error reports" -x
|
|
complete -c $ftp -s V -d "Disable verbose"
|
|
complete -c $ftp -s v -d "Enable verbose"
|
|
complete -c $ftp -s M -d "Disable progress meter"
|
|
complete -c $ftp -s m -d "Enable progress meter"
|
|
complete -c $ftp -s C -d "Continue a previously interrupted file transfer"
|
|
complete -c $ftp -s c -d "Netscape-like cookiejar file" -r
|
|
complete -c $ftp -s D -d "Short title for start of progress meter" -x
|
|
complete -c $ftp -s E -d "Disable EPSC/EPRT command on IPv4 connections"
|
|
complete -c $ftp -s k -d "Keepalive interval in seconds" -x
|
|
complete -c $ftp -s S -d "SSL/TLS options"
|
|
complete -c $ftp -s U -d "Set useragent" -x
|
|
complete -c $ftp -s w -d "Time to wait before aborting slow connections" -x
|
|
case Linux
|
|
complete -c $ftp -s V -d "Print version"
|
|
complete -c $ftp -l prompt -d "Print a prompt even if not on a tty"
|
|
complete -c $ftp -s '?' -l help -d "Print help"
|
|
end
|
|
end
|