added i18n.rb and modified authorization function