1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-27 07:33:05 +00:00

add translation for CliSSH

This commit is contained in:
adrien 2013-12-26 11:01:57 +01:00
parent 3dcb465025
commit 28c1fd63fb
3 changed files with 8 additions and 2 deletions

View file

@ -75,6 +75,9 @@ en:
port: "Port" port: "Port"
protocol: "Protocol" protocol: "Protocol"
server: "Server" server: "Server"
ssh:
connect: "Connection to:"
nothing: "Nothing result!"
formats: formats:
default: ! '%Y-%m-%d' default: ! '%Y-%m-%d'
long: ! '%B %d, %Y' long: ! '%B %d, %Y'

View file

@ -75,6 +75,9 @@ fr:
port: "Port" port: "Port"
protocol: "Protocol" protocol: "Protocol"
server: "Serveur" server: "Serveur"
ssh:
connect: "Connexion à:"
nothing: "Aucun résultat!"
formats: formats:
default: ! '%Y-%m-%d' default: ! '%Y-%m-%d'
long: ! '%B %d, %Y' long: ! '%B %d, %Y'

View file

@ -26,7 +26,7 @@ class CliSSH < Cli
port = 22 port = 22
end end
puts "Connect to: ssh #{login}@#{server} -p #{port}" puts "#{I18n.t('ssh.connect')} ssh #{login}@#{server} -p #{port}"
if passwd.empty? if passwd.empty?
system("ssh #{login}@#{server} -p #{port}") system("ssh #{login}@#{server} -p #{port}")
else else
@ -35,7 +35,7 @@ class CliSSH < Cli
end end
else else
puts "Nothing result!" puts I18n.t('ssh.nothing')
end end
end end
end end