update syntax
This commit is contained in:
parent
af04b8761d
commit
4aa4a750cd
6 changed files with 59 additions and 59 deletions
8
mpw-ssh
8
mpw-ssh
|
@ -19,14 +19,14 @@ lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1]
|
|||
# Set local
|
||||
# --------------------------------------------------------- #
|
||||
|
||||
if defined? I18n.enforce_available_locales
|
||||
if defined?(I18n.enforce_available_locales)
|
||||
I18n.enforce_available_locales = true
|
||||
end
|
||||
|
||||
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
|
||||
I18n.load_path = Dir["#{APP_ROOT}/i18n/cli/*.yml"]
|
||||
I18n.load_path = Dir["#{APP_ROOT}/i18n/cli/*.yml"]
|
||||
I18n.default_locale = :en
|
||||
I18n.locale = lang.to_sym
|
||||
I18n.locale = lang.to_sym
|
||||
|
||||
# --------------------------------------------------------- #
|
||||
# Options
|
||||
|
@ -73,7 +73,7 @@ cli.port = options[:port]
|
|||
search = ARGV[0]
|
||||
|
||||
# Setup a new config
|
||||
if !check_error
|
||||
if not check_error
|
||||
cli.setup(lang)
|
||||
|
||||
elsif ARGV.length < 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue