From 28c1fd63fb37e0203e270df249a6f9d3b3f1f6af Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 26 Dec 2013 11:01:57 +0100 Subject: [PATCH] add translation for CliSSH --- i18n/en.yml | 3 +++ i18n/fr.yml | 3 +++ lib/CliSSH.rb | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) 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