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
(cherry picked from commit d835c5252a)
115 lines
3.1 KiB
Fish
115 lines
3.1 KiB
Fish
# localization: tier3
|
|
function __fish_complete_ssh -d "common completions for ssh commands" --argument-names command
|
|
complete -c $command -s 4 -d "IPv4 only"
|
|
complete -c $command -s 6 -d "IPv6 only"
|
|
complete -c $command -s A -d "Enables forwarding of the authentication agent"
|
|
complete -c $command -s C -d "Compress all data"
|
|
complete -c $command -s c -d "Encryption algorithm" -xa "(__fish_stripprefix='^-\w*c' __fish_complete_list , __fish_ssh_ciphers)"
|
|
complete -c $command -s F -d "Configuration file" -rF
|
|
complete -c $command -s i -d "Identity key file" -rF
|
|
complete -c $command -s J -d 'ProxyJump host' -xa "(__fish_complete_user_at_hosts)"
|
|
complete -c $command -s o -d Options -xa "
|
|
AddKeysToAgent
|
|
AddressFamily
|
|
BatchMode
|
|
BindAddress
|
|
BindInterface
|
|
CanonicalDomains
|
|
CanonicalizeFallbackLocal
|
|
CanonicalizeHostname
|
|
CanonicalizeMaxDots
|
|
CanonicalizePermittedCNAMEs
|
|
CASignatureAlgorithms
|
|
CertificateFile
|
|
ChallengeResponseAuthentication
|
|
CheckHostIP
|
|
Ciphers
|
|
ClearAllForwardings
|
|
Compression
|
|
ConnectionAttempts
|
|
ConnectTimeout
|
|
ControlMaster
|
|
ControlPath
|
|
ControlPersist
|
|
DynamicForward
|
|
EscapeChar
|
|
ExitOnForwardFailure
|
|
FingerprintHash
|
|
ForwardAgent
|
|
ForwardX11
|
|
ForwardX11Timeout
|
|
ForwardX11Trusted
|
|
GatewayPorts
|
|
GlobalKnownHostsFile
|
|
GSSAPIAuthentication
|
|
GSSAPIClientIdentity
|
|
GSSAPIDelegateCredentials
|
|
GSSAPIKexAlgorithms
|
|
GSSAPIKeyExchange
|
|
GSSAPIRenewalForcesRekey
|
|
GSSAPIServerIdentity
|
|
GSSAPITrustDns
|
|
HashKnownHosts
|
|
Host
|
|
HostbasedAuthentication
|
|
HostbasedKeyTypes
|
|
HostKeyAlgorithms
|
|
HostKeyAlias
|
|
Hostname
|
|
IdentitiesOnly
|
|
IdentityAgent
|
|
IdentityFile
|
|
IPQoS
|
|
KbdInteractiveAuthentication
|
|
KbdInteractiveDevices
|
|
KexAlgorithms
|
|
LocalCommand
|
|
LocalForward
|
|
LogLevel
|
|
MACs
|
|
Match
|
|
NoHostAuthenticationForLocalhost
|
|
NumberOfPasswordPrompts
|
|
PasswordAuthentication
|
|
PermitLocalCommand
|
|
PKCS11Provider
|
|
Port
|
|
PreferredAuthentications
|
|
ProxyCommand
|
|
ProxyJump
|
|
ProxyUseFdpass
|
|
PubkeyAcceptedKeyTypes
|
|
PubkeyAuthentication
|
|
RekeyLimit
|
|
RemoteCommand
|
|
RemoteForward
|
|
RequestTTY
|
|
SendEnv
|
|
ServerAliveCountMax
|
|
ServerAliveInterval
|
|
SetEnv
|
|
StreamLocalBindMask
|
|
StreamLocalBindUnlink
|
|
StrictHostKeyChecking
|
|
TCPKeepAlive
|
|
Tunnel
|
|
TunnelDevice
|
|
UpdateHostKeys
|
|
User
|
|
UserKnownHostsFile
|
|
VerifyHostKeyDNS
|
|
VisualHostKey
|
|
XAuthLocation
|
|
"
|
|
complete -c $command -s q -d "Quiet mode"
|
|
complete -c $command -s v -d "Verbose mode"
|
|
end
|
|
|
|
function __fish_ssh_ciphers -d "List of possible SSH cipher algorithms"
|
|
ssh -Q cipher
|
|
end
|
|
|
|
function __fish_ssh_macs -d "List of possible SSH MAC algorithms"
|
|
ssh -Q mac
|
|
end
|