Refinerycms-translations is a project mainly written in Ruby, based on the MIT license.
Translations engine for Refinery CMS Rails 3 compatible
=RefineryCMS Translations
A simple approach to content translation for RefineryCMS.
Features:
==Install
Install the plugin
Add this line to your Gemfile:
For the latest version use gem 'refinerycms-translations', :git => '[email protected]:seasonlabs/refinerycms-translations.git'
For stable version gem 'refinerycms-translations', '~> 0.3'
Install the gem bundle install
Copy the migration file rails generate refinerycms_translations
Run the migration
rake db:migrate
Make sure you have correctly set the following setting in Refinery: 'i18n_frontend_translation_locales', 'i18n_translation_default_frontend_locale'
==Usage
Given the following code in you view:
You can do:
Or for more complex text:
Using a block:
Note: for_string and for_block both take the option "wym" argument to edit the translation with the WYM editor. for_block default to true, for_string default to false.
Based on code from http://github.com/unixcharles