diff --git a/i18n/en.yml b/i18n/en.yml index 5619789..0b3339b 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -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' diff --git a/i18n/fr.yml b/i18n/fr.yml index 863b023..0b6b72d 100644 --- a/i18n/fr.yml +++ b/i18n/fr.yml @@ -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' diff --git a/lib/CliSSH.rb b/lib/CliSSH.rb index 41a83aa..6c99178 100644 --- a/lib/CliSSH.rb +++ b/lib/CliSSH.rb @@ -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