1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-27 07:33:05 +00:00
This commit is contained in:
adrien 2014-01-27 08:38:34 +01:00
parent 52c1554e90
commit 0c89715e3a

View file

@ -15,7 +15,7 @@ require "#{APP_ROOT}/lib/CliSSH.rb"
lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1] lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1]
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
I18n.load_path = Dir["#{APP_ROOT}/i18n/*.yml"] I18n.load_path = Dir["#{APP_ROOT}/i18n/cli/*.yml"]
I18n.default_locale = :en I18n.default_locale = :en
I18n.locale = lang.to_sym I18n.locale = lang.to_sym
@ -63,6 +63,8 @@ elsif ARGV.length < 1
puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]" puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]"
exit 2 exit 2
else else
cli.decrypt()
cli.sync()
cli.ssh(search) cli.ssh(search)
end end