I'm use the RefineryCMS based on rails. Where is Refinery CMS save site name? How can I make mul开发者_如何学Ctilanguage site name? Thanks.
You can change your site name in settings (yoursite/refinery/settings).
For multilang you can do something like this:
if I18n.locale.to_s == 'fr'
# sets sitename to "My Site name in French"
RefinerySetting.set(:site_name, "My Site name in French")
else
# displays site name from settings if defined otherwise displays "My site"
RefinerySetting.find_or_set(:site_name, "My site")
end
To set the company name open the file app/controllers/application_controller.rb and add this to it:
Refinery::Core.configure do |config|
config.site_name = "my site name"
end
精彩评论