mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-26 23:33:03 +00:00
add translation for CliSSH
This commit is contained in:
parent
3dcb465025
commit
28c1fd63fb
3 changed files with 8 additions and 2 deletions
|
@ -75,6 +75,9 @@ en:
|
|||
port: "Port"
|
||||
protocol: "Protocol"
|
||||
server: "Server"
|
||||
ssh:
|
||||
connect: "Connection to:"
|
||||
nothing: "Nothing result!"
|
||||
formats:
|
||||
default: ! '%Y-%m-%d'
|
||||
long: ! '%B %d, %Y'
|
||||
|
|
|
@ -75,6 +75,9 @@ fr:
|
|||
port: "Port"
|
||||
protocol: "Protocol"
|
||||
server: "Serveur"
|
||||
ssh:
|
||||
connect: "Connexion à:"
|
||||
nothing: "Aucun résultat!"
|
||||
formats:
|
||||
default: ! '%Y-%m-%d'
|
||||
long: ! '%B %d, %Y'
|
||||
|
|
|
@ -26,7 +26,7 @@ class CliSSH < Cli
|
|||
port = 22
|
||||
end
|
||||
|
||||
puts "Connect to: ssh #{login}@#{server} -p #{port}"
|
||||
puts "#{I18n.t('ssh.connect')} ssh #{login}@#{server} -p #{port}"
|
||||
if passwd.empty?
|
||||
system("ssh #{login}@#{server} -p #{port}")
|
||||
else
|
||||
|
@ -35,7 +35,7 @@ class CliSSH < Cli
|
|||
end
|
||||
|
||||
else
|
||||
puts "Nothing result!"
|
||||
puts I18n.t('ssh.nothing')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue