A simple Rails 3 application in which the Enrichments (e9s) gem is demonstrated.
E9s was created due to the need of simply implementing I18n within a Rails application. This simplifies internationalization of your Rails application making a Rails developers life much easier. E9s is divided into modules (as gem and plugin): Rich-CMS , Rich-i18n and Rich-pluralization.
Clone the git repository:
git clone git://github.com/archan937/e9s-demo.git && cd e9s-demo
Run the following in your console to install with Bundler:
sudo bundle install
Run the Rails server:
rails s
Clone the git repository:
git clone git://github.com/archan937/e9s-demo.git && cd e9s-demo
Check out the rails2
branch:
git checkout origin/rails2
Run the following in your console to install gem dependencies:
sudo rake gems:install
Run the Rails server:
script/server
Visit http://localhost:3000/cms and log in with [email protected] and test. Click on Mark content and start translating! ^^
Easy setup
– Rich-CMS only has a two-liner setupAuthentication
– Easily specify the authentication logic to be usedAdd editable content
– Easily specify content available within the CMS by registering them
Translate on-site
– Just specify you want to use Rich-CMS and you are set to translate in the front-endLocalized pluralization
– Translations only in singular form are sufficient enough as E9s can pluralize in foreign languagesDefault values
– Use the translation key (or a portion) as default value:"continue".t
returns"continue"
and"text.Welcome_to_our_site".t
returns"Welcome to our site"
An easy interface
– Just call thet
method on string or symbols to translate andpl
to pluralizeCombine translations
– Joining keys with spaces combines translations:"More houses".t
returns"Meer huizen"
in DutchPreserve i18n meta data
– Rich-i18n preserves the translationkey
,value
,locale
andderivative key
(the argument passed for translation). Enquiring this can come in handy when implementing an internationalization CMS (see Rich-CMS).
Labels, seatholders and default values
– Not only translate labels, but also hint text (so calledseatholders
) and even translate default valuesUnobtrusive implementation
– Translate labels and seatholders unobtrusively, in other words: leave yoursemantic_form_for
(view) code completely untouchedSpecific translations
– Not only specify general translations for labels and seatholders, but make them model or even form specific
Preserve character casing
– E9s preserves the casing in your translations:"save".t
returns"bewaar"
,"Save".t
returns"Bewaar"
and"SAVE".t
returns"BEWAAR"
in DutchPreserve pluralization
– E9s singularizes or pluralizes your translations depending on the key:"house".t
returns"huis"
and"Houses".t
returns"Huizen"
in Dutch
For support, remarks and requests please mail me at [email protected].
The all-in-one gem at – http://codehero.es/rails_gems_plugins/e9s – http://github.com/archan937/e9s
- Rich-CMS
http://codehero.es/rails_gems_plugins/rich_cms
http://github.com/archan937/rich_cms - Rich-i18n
http://codehero.es/rails_gems_plugins/rich_i18n
http://github.com/archan937/rich_i18n - Rich-pluralization
http://codehero.es/rails_gems_plugins/rich_pluralization
http://github.com/archan937/rich_pluralization
Copyright © 2010 Paul Engel, released under the MIT license
http://holder.nl – http://codehero.es – http://gettopup.com – http://twitter.com/archan937 – [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.