Refinery CMS is an Rails-based CMS that supports Rails 3.2 and 4.1. We can make Refinary CMS Multilingual with i18n Translations.
For this add the gem to Gemfile
ruby
Run the generator
ruby
Change the language settings
In Refinery’s settings find I18n Translation Frontend Locales (Refinery) and add the ISO country name.
config/initializers/refinery/i18n.rbruby
That’s it! Visit the Pages tab and you should see flags indicating the page language in the tree.
Edit a page and you’ll see the available languages at the top. Simply select one to add content for that language.
Now we need to add multi language support for our extensions. For this we need to specify this when we create extension with –i18n attribute.ruby
We can add link to toggle between languages in Frontend web site using following code
For this add the gem to Gemfile
1
|
|
1
|
|
config/initializers/refinery/i18n.rb
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Edit a page and you’ll see the available languages at the top. Simply select one to add content for that language.
Now we need to add multi language support for our extensions. For this we need to specify this when we create extension with –i18n attribute.
1
|
|
1 2 3 4 5 |
|