rubycas-server 国际化出现问题,<span style="color: red">[label.central_login_title]</span>
修改如下文件即可:/program/ruby/lib/ruby/gems/1.8/gems/rubycas-server-1.1.1/lib/casserver/localization.rb
将:
set :translations, File.dirname(__FILE__) + "/../../locales"
替换为:
#set :translations, File.dirname(__FILE__) + "/../../locales"
R18n.default_places { File.dirname(__FILE__) + "/../../locales" }
转载于:https://blog.51cto.com/tianbymy/960658