1
0
Fork 0
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:
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"
protocol: "Protocol"
server: "Server"
ssh:
connect: "Connection to:"
nothing: "Nothing result!"
formats:
default: ! '%Y-%m-%d'
long: ! '%B %d, %Y'

View file

@ -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'

View file

@ -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